Commit 5a85aa3
authored
Coverity Fixes (#12843)
* Fix Coverity CID 1644785: COPY_INSTEAD_OF_MOVE in conditions.cc
Use std::move() when assigning sub_qual to _query_param since
sub_qual is not used after the assignment.
* Fix Coverity suppression comments for CID 1644338, 1644327, 1644312
These issues were already addressed in PR #12821 but Coverity did not
recognize the suppression comments due to incorrect tags or placement.
CID 1644338 (UNCAUGHT_EXCEPT in Stripe.cc):
- Changed tag from fun_call_w_exception to exn_spec_violation
- Moved comment before destructor definition (line 173) where Coverity
reports the root_function event
CID 1644327 (UNCAUGHT_EXCEPT in test_AIO.cc):
- Changed tag from fun_call_w_exception to exn_spec_violation
- Moved comment before main() definition (line 460) where Coverity
reports the root_function event
CID 1644312 (RESOURCE_LEAK in test_HeaderValidator.cc):
- Changed tag from resource_leak to leaked_storage
- Moved comment from allocation site (line 59) to leak detection
point (line 250) where Coverity reports the leaked_storage event1 parent 074671f commit 5a85aa3
4 files changed
Lines changed: 5 additions & 5 deletions
File tree
- plugins/header_rewrite
- src
- iocore
- aio
- cache
- proxy/hdrs/unit_tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
293 | 293 | | |
294 | 294 | | |
295 | 295 | | |
296 | | - | |
| 296 | + | |
297 | 297 | | |
298 | 298 | | |
299 | 299 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
456 | 456 | | |
457 | 457 | | |
458 | 458 | | |
| 459 | + | |
459 | 460 | | |
460 | 461 | | |
461 | 462 | | |
462 | | - | |
463 | 463 | | |
464 | 464 | | |
465 | 465 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
| 173 | + | |
173 | 174 | | |
174 | 175 | | |
175 | 176 | | |
176 | | - | |
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
60 | | - | |
61 | 59 | | |
62 | 60 | | |
63 | 61 | | |
| |||
249 | 247 | | |
250 | 248 | | |
251 | 249 | | |
| 250 | + | |
| 251 | + | |
252 | 252 | | |
0 commit comments