Commit 33800a2
🐛 Fix nil pointer dereferences in EC2, Elasticsearch, Config, Inspector (#6924)
- EC2: guard device.Ebs, instance.Monitoring, instance.State against nil
- Elasticsearch: nil-check EncryptionAtRestOptions and
NodeToNodeEncryptionOptions (matching OpenSearch pattern)
- Config: nil-check RecordingGroup before accessing fields
- Inspector: nil-check ScanStatus and AmiId before dereferencing
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 0cdb80c commit 33800a2
File tree
4 files changed
+44
-12
lines changed- providers/aws/resources
4 files changed
+44
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
77 | | - | |
78 | | - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
79 | 85 | | |
80 | 86 | | |
81 | 87 | | |
82 | 88 | | |
83 | 89 | | |
84 | | - | |
85 | | - | |
| 90 | + | |
| 91 | + | |
86 | 92 | | |
87 | 93 | | |
88 | 94 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1084 | 1084 | | |
1085 | 1085 | | |
1086 | 1086 | | |
| 1087 | + | |
| 1088 | + | |
| 1089 | + | |
1087 | 1090 | | |
1088 | 1091 | | |
1089 | 1092 | | |
| |||
1112 | 1115 | | |
1113 | 1116 | | |
1114 | 1117 | | |
| 1118 | + | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
1115 | 1126 | | |
1116 | 1127 | | |
1117 | 1128 | | |
1118 | 1129 | | |
1119 | | - | |
| 1130 | + | |
1120 | 1131 | | |
1121 | 1132 | | |
1122 | 1133 | | |
| |||
1134 | 1145 | | |
1135 | 1146 | | |
1136 | 1147 | | |
1137 | | - | |
| 1148 | + | |
1138 | 1149 | | |
1139 | 1150 | | |
1140 | 1151 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
142 | | - | |
143 | | - | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
144 | 152 | | |
145 | 153 | | |
146 | 154 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
76 | 81 | | |
77 | 82 | | |
78 | 83 | | |
79 | 84 | | |
80 | 85 | | |
81 | 86 | | |
82 | | - | |
83 | | - | |
| 87 | + | |
| 88 | + | |
84 | 89 | | |
85 | 90 | | |
86 | 91 | | |
| |||
131 | 136 | | |
132 | 137 | | |
133 | 138 | | |
134 | | - | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
135 | 142 | | |
136 | 143 | | |
137 | 144 | | |
| |||
0 commit comments