Add a check for the length of the line, it should be a number not less than 0.
Fixes:#17935
https://github.com/vim/vim/pull/18953
(1 file)
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
@xiaoge1001 pushed 1 commit.
—
View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
Hm, that indicates an overflow. Looking at your reproduction:
dd if=/dev/zero bs=1M count=10240 | tr '\0' 'A' > bigline.txt
that indicates 1 single line of 1,048,576 bytes * 10,240 = 10,737,418,240 bytes (without newlines).
colnr_T is int. So are you using 32bit arch? Don't you see an error message for such a long error with your patch?
I guess it makes sense. @zeertzjq what do you think?
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()