Commit 137855d
committed
fix potential IV overflow in do_sv_dump()
Coverity says:
CID 584102: Insecure data handling (INTEGER_OVERFLOW)
The cast of "S_sequence_num(my_perl, ((XPVCV *)({...; p_;}))->xcv_start_u.xcv_start)" to a signed type could result in a negative number.
Avoid the issue by taking the UV returned by sequence_num and printing
it directly (without going through IV conversion).1 parent bcdfea7 commit 137855d
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2765 | 2765 | | |
2766 | 2766 | | |
2767 | 2767 | | |
2768 | | - | |
| 2768 | + | |
2769 | 2769 | | |
2770 | | - | |
| 2770 | + | |
2771 | 2771 | | |
2772 | 2772 | | |
2773 | 2773 | | |
| |||
0 commit comments