Timo Juhani Lindfors wrote:

> Michael Gilbert <michael.s.gilb...@gmail.com> writes:
> > Is there any reason to keep this bug open just for an innocuous
> > message?
> 
> Not sure but hmm, what makes you think this is innocuous?  Now that I
> grep the code I find only two fragments that mention it but both have
> exit(1) after them:
> 
> void *gmallocn(int nObjs, int objSize) GMEM_EXCEP {
>   int n;
> 
>   if (nObjs == 0) {
>     return NULL;
>   }
>   n = nObjs * objSize;
>   if (objSize <= 0 || nObjs < 0 || nObjs >= INT_MAX / objSize) {
> #if USE_EXCEPTIONS
>     throw GMemException();
> #else
>     fprintf(stderr, "Bogus memory allocation size\n");
>     exit(1);
> #endif
>   }
>   return gmalloc(n);
> }
> 
> void *greallocn(void *p, int nObjs, int objSize) GMEM_EXCEP {
>   int n;
> 
>   if (nObjs == 0) {
>     if (p) {
>       gfree(p);
>     }
>     return NULL;
>   }
>   n = nObjs * objSize;
>   if (objSize <= 0 || nObjs < 0 || nObjs >= INT_MAX / objSize) {
> #if USE_EXCEPTIONS
>     throw GMemException();
> #else
>     fprintf(stderr, "Bogus memory allocation size\n");
>     exit(1);
> #endif
>   }
>   return grealloc(p, n);
> }
> 
> strace does not show exit(1) so this warning must be coming from
> something else?

poppler.



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to