Commit 8829554
committed
src: resolve various cov-scan warnings
pdu_processor_init:
CID 1635250: (#1 of 1): Using a moved object (USE_AFTER_MOVE)
3. return_with_moved_parameter: Returning while reference parameter
names is in a moved state.
do_perftest:
CID 1635246: (#2 of 2): Division or modulo by zero (DIVIDE_BY_ZERO)
4. divide_by_zero: In function call operator /, division by
expression fcount which may be zero has undefined behavior.
timeindex_delete:
CID 1635249: (#1 of 1): Use of auto that causes a copy (AUTO_CAUSES_COPY)
auto_causes_copy: Using the auto keyword without an & causes the copy
of an object of type std::string.
[False positive; there is copy elision happening here.]
oxcmail_export:
CID 1635241: (#1 of 1): Unchecked return value (CHECKED_RETURN)
106. check_return: Calling set_field without checking return value
(as is done elsewhere 56 out of 70 times).
mt2exm:
CID 1635240: (#2 of 2): Using a moved object (USE_AFTER_MOVE)
19. use_after_move: digest is used after it has been already moved.1 parent 3ceef79 commit 8829554
File tree
6 files changed
+10
-6
lines changed- exch
- exmdb
- http
- lib/mapi
- tools
6 files changed
+10
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4720 | 4720 | | |
4721 | 4721 | | |
4722 | 4722 | | |
4723 | | - | |
| 4723 | + | |
4724 | 4724 | | |
4725 | 4725 | | |
4726 | 4726 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
189 | | - | |
| 189 | + | |
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
| 106 | + | |
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3619 | 3619 | | |
3620 | 3620 | | |
3621 | 3621 | | |
3622 | | - | |
| 3622 | + | |
| 3623 | + | |
3623 | 3624 | | |
3624 | 3625 | | |
3625 | 3626 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
380 | 380 | | |
381 | 381 | | |
382 | 382 | | |
383 | | - | |
| 383 | + | |
384 | 384 | | |
385 | 385 | | |
386 | 386 | | |
| |||
421 | 421 | | |
422 | 422 | | |
423 | 423 | | |
| 424 | + | |
424 | 425 | | |
425 | 426 | | |
426 | 427 | | |
| |||
562 | 563 | | |
563 | 564 | | |
564 | 565 | | |
565 | | - | |
| 566 | + | |
566 | 567 | | |
567 | 568 | | |
568 | 569 | | |
| |||
0 commit comments