[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: ordered indexing for integers



Howard Chu wrote:
Hallvard B Furuseth wrote:
Howard Chu writes:
Hallvard B Furuseth wrote:
Got crashes due to a write after 'tmp', incremented size by 1.
Haven't looked at why yet, or whether that's the complete fix.
That should never happen. Do you have the backtrace from when the
write occurred?
No, got memory corruption later.  Valgrind pointed out the tmp write,
but I don't see in the doc how to get valgrind to core at first error.

Never mind, I see. Your fix is fine. It's the final NUL-terminator in the call
to strtol().

I take that back. That's completely unrelated...

--
  -- Howard Chu
  Chief Architect, Symas Corp.  http://www.symas.com
  Director, Highland Sun        http://highlandsun.com/hyc/
  Chief Architect, OpenLDAP     http://www.openldap.org/project/