Limit the profile sample count to INT_MAX to avoid both signed overflow and a potential division by zero when updating the stored mean value. Signed-off-by: Michael Brown <mcb30@ipxe.org>tags/v1.20.1
|
|
||
26 |
|
26 |
|
27 |
|
27 |
|
28 |
|
28 |
|
|
29 |
|
|
29 |
|
30 |
|
30 |
|
31 |
|
31 |
|
32 |
|
|
|
||
122 |
|
123 |
|
123 |
|
124 |
|
124 |
|
125 |
|
125 |
|
|
|
126 |
|
|
|
|
126 |
|
|
|
127 |
|
|
|
128 |
|
|
127 |
|
129 |
|
128 |
|
130 |
|
129 |
|
131 |
|