Commit 90c85ab
authored
fix(simplestorage): use lower helper for safe pointer dereferencing (#21)
Replace unsafe raw pointer dereferencing with the lower helper function
to prevent potential panics when AWS SDK response fields are nil.
Affected functions:
- Put: Etag and VersionId fields
- List: NextContinuationToken field
- ListBuckets: bucket Name and ContinuationToken fields
This makes the code consistent with other methods like Get and Head
which already use the lower helper for optional pointer fields.
Assisted-by: GLM 4.7 via Claude Code
Release-status: cut
Signed-off-by: Xe Iaso <xe@tigrisdata.com>1 parent c5cf14a commit 90c85ab
2 files changed
Lines changed: 5 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
165 | | - | |
| 165 | + | |
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
170 | | - | |
171 | | - | |
172 | | - | |
| 170 | + | |
173 | 171 | | |
174 | 172 | | |
175 | 173 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
267 | 267 | | |
268 | 268 | | |
269 | 269 | | |
270 | | - | |
271 | | - | |
| 270 | + | |
| 271 | + | |
272 | 272 | | |
273 | 273 | | |
274 | 274 | | |
| |||
329 | 329 | | |
330 | 330 | | |
331 | 331 | | |
332 | | - | |
333 | | - | |
334 | | - | |
| 332 | + | |
335 | 333 | | |
336 | 334 | | |
337 | 335 | | |
| |||
0 commit comments