Control: found -1 590-1

On 2020-12-15 18:48:10 +0100, Vincent Lefevre wrote:
> The code that parses the number in the command buffer does not check
> integer overflow.

This is still the case.

> I'm attaching a patch, which saturates the value to INT_MAX, since
> there are conversions to int in some parts of the code.

Note, however, that this means that one cannot use command P on
values larger than INT_MAX (for files that would be larger than
2 GB). I think that the code needs a better cleanup. I'm going
to report a bug upstream.

-- 
Vincent Lefèvre <vinc...@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

Reply via email to