[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #36883] ptrdiff_t / size_t mixture
From: |
Paul Eggert |
Subject: |
[bug #36883] ptrdiff_t / size_t mixture |
Date: |
Thu, 19 Jul 2012 21:08:46 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:14.0) Gecko/20100101 Firefox/14.0.1 |
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/