cvs commit: src/lib/libc/stdlib malloc.c

Jason Evans jasone at FreeBSD.org
Thu Mar 29 21:07:19 UTC 2007


jasone      2007-03-29 21:07:17 UTC

  FreeBSD src repository

  Modified files:
    lib/libc/stdlib      malloc.c 
  Log:
  Use size_t instead of unsigned for pagesize-related values, in order to
  avoid downcasting issues.  In particular, this change fixes
  posix_memalign(3) for alignments greater than 2^31 on LP64 systems.
  
  Make sure that NDEBUG is always set to be compatible with MALLOC_DEBUG. [1]
  
  Reported by:    [1] Lee Hyo geol <hyogeollee at gmail.com>
  
  Revision  Changes    Path
  1.146     +8 -4      src/lib/libc/stdlib/malloc.c


More information about the cvs-src mailing list