search for: size_t_max

Displaying 14 results from an estimated 14 matches for "size_t_max".

Did you mean: ssize_t_max
2013 Apr 06
2
Circular preprocessor define with MSVC
Hi, in include/share/alloc.h there is this section: #ifndef SIZE_MAX # ifndef SIZE_T_MAX # ifdef _MSC_VER # define SIZE_T_MAX SIZE_MAX # else # error # endif # endif # define SIZE_MAX SIZE_T_MAX #endif So, if we are on MSVC and have neither SIZE_MAX nor SIZE_T_MAX, we'll define SIZE_T_MAX to mean SIZE_MAX and SIZE_MAX to mean SIZE_T_MAX. I'm afraid this won't wo...
2008 Aug 13
4
MinGW Patch
Hello, I was trying to compile Flac on MinGW/Msys but got an error stating SIZE_T_MAX is undefined. To fix this error I edited the file "flac-1.2.1/include/share/alloc.h" and made the following change: Starting at line #36 I changed: #ifndef SIZE_MAX # ifndef SIZE_T_MAX # ifdef _MSC_VER # define SIZE_T_MAX UINT_MAX # else # error # endif # endif # define SIZE_MAX...
2003 Sep 05
3
[Bug 458] sshd crashes with "fatal: mm_malloc: size too big"
...atform|MIPS |All ------- Additional Comments From dtucker at zip.com.au 2003-09-05 14:23 ------- I had to reformat Guido's post to read it: "Same Problem on Solaris 8 Build 32-Bit, gcc 2.95-3 It seems that line 170 in monitor_mm.c is the problem: if (size > SIZE_T_MAX - MM_MINSIZE + 1) fatal("mm_malloc: size too big"); size seems to be a different type (uint32) in defines.h: #ifndef SIZE_T_MAX # define SIZE_T_MAX ULONG_MAX #endif /* SIZE_T_MAX */ #ifndef HAVE_SIZE_T typedef unsigned int size_t; # define HAVE_SIZE_T #endif /* HAVE_SIZE_T */ the li...
2002 Aug 20
2
Solaris 7 w/ current CVS.
Not sure about any other version, but I know sol7 lacks SIZE_T_MAX which we are now using in -current. OpenBSD defines it as ULONG_MAX. Pawing through the Solaris /usr/include it stated it could be 'u_int' or 'u_long'. Depends on if your are compiling legacy stuff. I'm sure other OSes may encounter this issue (not tried Linux, but Redhat 7...
2002 Dec 18
1
[Bug 458] sshd crashes with "fatal: mm_malloc: size too big"
http://bugzilla.mindrot.org/show_bug.cgi?id=458 ------- Additional Comments From us- at gmx.de 2002-12-19 03:16 ------- Sorry, typo: The irix version is 6.5.17 not 6.5.18 ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
2008 Aug 13
0
MinGW Patch
will surgent wrote: > Hello, I was trying to compile Flac on MinGW/Msys but got an error stating > SIZE_T_MAX is undefined. > To fix this error I edited the file "flac-1.2.1/include/share/alloc.h" and > made the following change: <snip> > #ifndef SIZE_MAX > # ifndef SIZE_T_MAX > # ifdef _MSC_VER > # define SIZE_T_MAX UINT_MAX > # elif defined(__MINGW_H) > # d...
2011 Sep 28
1
Compiling - Win - GNU Compiler
Hi, I went in big trouble compiling Flac (Windows). With configure (msys and mingw32-make 4.5.2) I didn't have success to compile. Makefile.lite the same. I used also the patches for SIZE_T_MAX UINT_MAX . Then I could compile every (!) project in flac with MSVC 2008 and I got all libraries, *.dll and *.exe. The libraries are passing all test-programs. With my own tools I see the *.dlls inside are working. So I tried to compile "examples\cpp\decode\file\main.cpp" and "...
2007 Dec 04
0
Compilation of flac-1.2.1 fails under MinGW
...ream_ decoder.c -DDLL_EXPORT -DPIC -o .libs/stream_decoder.o In file included from stream_decoder.c:56: ../../include/share/alloc.h:41:5: #error In file included from stream_decoder.c:56: ../../include/share/alloc.h: In function `safe_malloc_mul_2op_': ../../include/share/alloc.h:120: error: `SIZE_T_MAX' undeclared (first use in th is function) ../../include/share/alloc.h:120: error: (Each undeclared identifier is reported only once ../../include/share/alloc.h:120: error: for each function it appears in.) ../../include/share/alloc.h: In function `safe_malloc_mul_3op_': ../../include/sha...
2011 Feb 08
1
Build issues and fixes
...fixes. These aren't generally applicable - I'm taking a "shortest path to functionality" approach - but with a little work could probably be turned into general patches. First, I'm occasionally building under MingW, via the Windows headers. LibFlac makes use of a constant SIZE_T_MAX, which, under MSVC, is defined as UINT_MAX. Unfortunately MSVC isn't the determining factor here, the Windows headers are, and so MingW results in an error. My simple fix was to remove the MSVC check - if SIZE_T_MAX doesn't exist, it *always* defines it as UINT_MAX. That's line 38 i...
2002 Dec 18
0
[Bug 458] New: sshd crashes with "fatal: mm_malloc: size too big"
...sh-3.5p1 on a 32bit worksation running irix 6.5.18 sshd will crash with the error message "fatal: mm_malloc: size too big" on each login attempt. When I build it on a 64bit orign200 with the same OS version it works fine. The problem seems to be the constant ULONG_MAX which is assigned to SIZE_T_MAX in defines.h. I played around with the code and it seems like ULONG_MAX evaluates to -1 even though it is defined as 4294967295U (by the way: what does the U mean?) in /usr/include/limits.h. I worked around this problem by replacing #define SIZE_T_MAX ULONG_MAX with #define SIZE_T_MAX 4294967295 in...
2007 Sep 26
1
Patches for building of flac 1.2.1
...ectly ranlib, ac, strip when you cross-compile. We especially use the patch when compiling for Windows under GNU/Linux. http://trac.videolan.org/vlc/browser/trunk/extras/contrib/src/Patches/flac-cross.patch The other one fixes an issue when compiling for Windows under Cygwin, that can't find SIZE_T_MAX. The patch is attached to that mail. I hope that those patches might help some people. Best Regards, -- Jean-Baptiste Kempf http://www.jbkempf.com/
2008 Oct 02
1
MinGW Patch
Erik de Castro Lopo wrote: > will surgent wrote: > > > Hello, I was trying to compile Flac on MinGW/Msys but got an error stating > > SIZE_T_MAX is undefined. > > To fix this error I edited the file "flac-1.2.1/include/share/alloc.h" and > > made the following change: Would it be possible to get this patch applied? I still hit this every time I try to compile with MinGW. Cheers, Erik -- -----------------------------...
2002 Nov 04
0
[Bug 425] New: Integer overflow in mm_zalloc
...:02 2002 +++ openssh-3.5p1/monitor.c Mon Nov 4 18:06:24 2002 @@ -1551,7 +1551,7 @@ void * mm_zalloc(struct mm_master *mm, u_int ncount, u_int size) { - size_t len = size * ncount; + size_t len = (size_t) size * ncount; void *address; if (len == 0 || ncount > SIZE_T_MAX / size) ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
2003 Dec 30
8
[Bug 651] SCO 3.2v4.2 and OpenSSH 3.7.1p1 --> connection hangs and does not close (ssh2 only)
...not found." ../defines.h:167: #error "32 bit int type not found." ../defines.h:183: #error "8 bit int type not found." ../defines.h:195: #error "16 bit int type not found." ../defines.h:204: #error "32 bit int type not found." ../defines.h:243: warning: `SIZE_T_MAX' redefined ../defines.h:237: warning: this is the location of the previous definition In file included from ../openbsd-compat/getrrsetbyname.h:57, from ../openbsd-compat/openbsd-compat.h:40, from ../includes.h:173, from bsd-arc4random.c:25: /us...