------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=1119
           Summary: src/src/string.c:string_printing2 allocating too much
                    memory
           Product: Exim
           Version: N/A
          Platform: x86-64
        OS/Version: Linux
            Status: NEW
          Severity: bug
          Priority: low
         Component: Unfiled
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


Created an attachment (id=487)
 --> (http://bugs.exim.org/attachment.cgi?id=487)
corrects memory consumpition for espacing non printable characters

Within the function string_printing2 in src/src/string.c, a non printable
character typically requires 4 bytes (backslash and three octal characters)
after escaping. However the function reserves 5 bytes for escaping a non
printable character (1 due to the length variable and 4 due to the
nonprintcount variable), as can be seen in line 305 of the relevant file.

The attached patch corrects the memory requirement from 5 to 4 bytes for the
escaping of non printable characters.


-- 
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email

-- 
## List details at https://lists.exim.org/mailman/listinfo/exim-dev Exim 
details at http://www.exim.org/ ##

Reply via email to