Commit 40862c6
committed
Fix overflow when resizing path-to-string buffer.
The int version of the buffer size was not updated when the buffer was
resized. It's there to prevent a signed/unsigned comparison warning, but
it's simpler just to cast the other side of the comparison. There's no
problem with the signed-to-unsigned cast since we already know that the
result is positive due to the previous check.
Fixes #10889.1 parent a9a495e commit 40862c6
1 file changed
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1047 | 1047 | | |
1048 | 1048 | | |
1049 | 1049 | | |
1050 | | - | |
1051 | | - | |
1052 | 1050 | | |
1053 | 1051 | | |
1054 | 1052 | | |
1055 | 1053 | | |
1056 | 1054 | | |
1057 | | - | |
1058 | | - | |
| 1055 | + | |
| 1056 | + | |
1059 | 1057 | | |
1060 | 1058 | | |
1061 | 1059 | | |
| |||
0 commit comments