Displaying 1 result from an estimated 1 matches for "g1cda2".
Did you mean:
  0xcda2
  
2009 Nov 03
1
[PATCH libguestfs] hivex: fail upon integer overflow
...p, &outlen);
   if (r == (size_t) -1) {
     if (errno == E2BIG) {
+      size_t prev = outalloc;
       /* Try again with a larger output buffer. */
       free (out);
       outalloc *= 2;
+      if (outalloc < prev)
+        return NULL
       goto again;
     }
     else {
--
1.6.5.2.292.g1cda2