On 08/05/2016 12:29 PM, Todd Lewis wrote:
The diff below works around the problem, at least for re_search(), which is the only regex function I'm using. The problem seems to be mixing signed math -- 'range' is negative for backward searches -- with unsigned "Idx"-typed variables 'length' and 'start'. "Idx" is an unsigned type when _REGEX_LARGE_OFFSETS is defined.
Thanks, but Idx is now always a signed type, as of Gnulib commit f97745b0f632a9ddae3e48cec083dd71099d37c2 dated 2016-02-19. I guess you're using an older version of Gnulib. Does the current Gnulib version fix your bug in a different way?
