Commit 624538b
committed
dtoa.c: Check integer underflow
Reported at https://hackerone.com/reports/3288162
This underflow does not occur in Ruby because:
* This function is `static` and not accessible other than from ruby
internal.
* Ruby uses mode 0 when calling this function directly.
* For `%f` in vsnprintf.c using mode 3, this parameter comes from the
precision, but negative precision is meaningless and ignored.1 parent f047174 commit 624538b
1 file changed
+27
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
213 | 236 | | |
214 | 237 | | |
215 | 238 | | |
| |||
2841 | 2864 | | |
2842 | 2865 | | |
2843 | 2866 | | |
2844 | | - | |
| 2867 | + | |
| 2868 | + | |
| 2869 | + | |
| 2870 | + | |
2845 | 2871 | | |
2846 | 2872 | | |
2847 | 2873 | | |
| |||
0 commit comments