[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#291383: fix for buffer overflow



Package: spamoracle
Version: 1.4-11
Tags: patch

Spamoracle can fail when it scans a mailbox containing very long
messages.  The attached patch seems to fix the problem.

-- 
Eric Cooper             e c c @ c m u . e d u
--- mbox.ml~	2002-08-26 05:35:25.000000000 -0400
+++ mbox.ml	2008-03-07 09:53:32.000000000 -0500
@@ -55,7 +55,7 @@
     end in
   try
     read()
-  with End_of_file ->
+  with End_of_file | Failure "Buffer.add: cannot grow buffer" ->
     if Buffer.length t.buf > 0 then begin
       t.start <- "";
       Buffer.contents t.buf

Reply to: