CVS commit by ossi: 

work around glibc bug: printf("%.*s", INT_MAX, s) tries to allocate 2G.


  M +1 -1      drv_maildir.c   1.8.2.1
  M +1 -1      mdconvert.c   1.1.2.1


--- isync/src/drv_maildir.c  #1.8:1.8.2.1
@@ -641,5 +641,5 @@ maildir_scan( maildir_store_t *ctx, msgl
                                        ml = u - entry->base;
                                else
-                                       ru = "", ml = INT_MAX;
+                                       ru = "", ml = sizeof(buf);
                                fnl = nfsnprintf( buf + bl, sizeof(buf) - bl, 
"%s/%.*s,U=%d%s", subdirs[entry->recent], ml, entry->base, uid, ru ) + 1 - 4;
                                memcpy( nbuf, buf, bl + 4 );

--- isync/src/mdconvert.c  #1.1:1.1.2.1
@@ -155,5 +155,5 @@ convert( const char *box, int altmap )
                                ml = u - e->d_name;
                        else
-                               ru = "", ml = INT_MAX;
+                               ru = "", ml = sizeof(buf);
                        if (altmap) {
                                if (!p)



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
isync-devel mailing list
isync-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/isync-devel

Reply via email to