소스 검색

r18783@catbus: nickm | 2008-03-13 11:06:45 -0400
Oops, do a better fix for that.


svn:r14001

Nick Mathewson 17 년 전
부모
커밋
cad3d651d0
2개의 변경된 파일8개의 추가작업 그리고 9개의 파일을 삭제
  1. 1 1
      ChangeLog
  2. 7 8
      src/common/OpenBSD_malloc_Linux.c

+ 1 - 1
ChangeLog

@@ -19,7 +19,7 @@ Changes in version 0.2.1.1-alpha - 2008-??-??
       could result in write counts on the order of ULONG_MAX.  Fix for bug
       614.  Bugfix on 0.1.2.x.
     - Make --enable-openbsd-malloc work correctly on Linux with alpha CPUs.
-      Bugfix on 0.2.0.x.
+      Fixes bug 625.  Bugfix on 0.2.0.x.
 
   o Minor features:
     - Allow separate log levels to be configured for different logging

+ 7 - 8
src/common/OpenBSD_malloc_Linux.c

@@ -1928,14 +1928,13 @@ realloc(void *ptr, size_t size)
 	return (r);
 }
 
-#if 0
-#if defined(__i386__)||defined(__arm__)||defined(__powerpc__)
-#define SIZE_MAX 0xffffffff
-#endif
-#if defined(__x86_64__)
-#define SIZE_MAX 0xffffffffffffffff
-#endif
-#else
+#ifndef SIZE_MAX
+//#if defined(__i386__)||defined(__arm__)||defined(__powerpc__)
+//#define SIZE_MAX 0xffffffff
+//#endif
+//#if defined(__x86_64__)
+//#define SIZE_MAX 0xffffffffffffffff
+//#endif
 #define SIZE_MAX SIZE_T_MAX
 #endif