[Erp5-report] r35047 nicolas.dumazet - /erp5/trunk/products/ERP5SyncML/Signature.py

nobody at svn.erp5.org nobody at svn.erp5.org
Thu May 6 11:09:05 CEST 2010


Author: nicolas.dumazet
Date: Thu May  6 11:09:03 2010
New Revision: 35047

URL: http://svn.erp5.org?rev=35047&view=rev
Log:
Avoid breakage if Pdata is shorter than wanted size

Modified:
    erp5/trunk/products/ERP5SyncML/Signature.py

Modified: erp5/trunk/products/ERP5SyncML/Signature.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5SyncML/Signature.py?rev=35047&r1=35046&r2=35047&view=diff
==============================================================================
--- erp5/trunk/products/ERP5SyncML/Signature.py [utf8] (original)
+++ erp5/trunk/products/ERP5SyncML/Signature.py [utf8] Thu May  6 11:09:03 2010
@@ -390,7 +390,7 @@
     chunk.append(self.partial_xml.data)
     size = chunk[0].count('\n')
     current = next = self.partial_xml.next
-    while size < size_lines:
+    while size < size_lines and next is not None:
       current = next
       size += current.data.count('\n')
       chunk.append(current.data)




More information about the Erp5-report mailing list