[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#39432: Long line issue in sed 4.8
From: |
Assaf Gordon |
Subject: |
bug#39432: Long line issue in sed 4.8 |
Date: |
Wed, 5 Feb 2020 12:15:08 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 |
tag 39432 notabug
close 39432
stop
Hello,
On 2020-02-05 1:11 a.m., Paul Fox wrote:
Seems there are bugs in sed handling long lines. You can reproduce by:
1. generate file > 2GB - must be a single line.
2. sed -e s/xxx/yyy/ <file
[...]
reg_exp: INT_MAX overflow
This is indeed the intended behavior, as the regular-expression module
can't handle strings larger than 2GB.
This was reported in https://bugs.gnu.org/30520
and the error was added in
https://git.savannah.gnu.org/cgit/sed.git/commit/?id=5433dc245b222f6c98ab1436e170fd5e3e6e3907
If in the future gnulib's regex module is improved
to handle large buffers, we can revisit this issue and
remove the message.
As such I'm closing this as "not a bug", but discussion
can continue by replying to this thread.
regards,
- assaf