Update of bug #36883 (project grep):

                  Status:                    None => Fixed                  
             Open/Closed:                    Open => Closed                 

    _______________________________________________________

Follow-up Comment #1:

Thanks for reporting the problem.  This is a bug on s390 and any other
platform where ptrdiff_t and size_t have different representations for
nonnegative values.  I installed the attached patch into the 'grep' trunk.

There could still be a problem on the s390 if a buffer gets larger than 2 GiB,
since that will exceed what ptrdiff_t can represent.  Fixing this will be
trickier, though, as we'd have to make sure we never allocate an array with
more than PTRDIFF_MAX bytes.  That is a different bug, though, so I'll close
the current bug report.

(file #26227)
    _______________________________________________________

Additional Item Attachment:

File name: grep-patch.txt                 Size:2 KB


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?36883>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/


Reply via email to