Commit 7207310
committed
Fix two cases of signed integer overflow.
This tweaks two cases where there is potential for signed integer overflow:
* in `rewind_scanlines`, we switch to unsigned ints
* in `not_equal`, we switch for operations which cannot overflow.
These cases were caught by matplotlib-using tests being run under
[ASan](https://github.com/google/sanitizers) with a check for signed integer
overflow.1 parent 6a91a4e commit 7207310
File tree
2 files changed
+5
-5
lines changed- extern/agg24-svn/include
2 files changed
+5
-5
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
720 | 720 | | |
721 | 721 | | |
722 | 722 | | |
723 | | - | |
724 | | - | |
725 | | - | |
726 | | - | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
727 | 727 | | |
728 | 728 | | |
729 | 729 | | |
| |||
0 commit comments