[exim-dev] [Bug 1119] New: src/src/string.c:string_printing2…

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Christian Aistleitner
Dátum:  
Címzett: exim-dev
Új témák: [exim-dev] [Bug 1119] src/src/string.c:string_printing2 allocating too much memory, [exim-dev] [Bug 1119] src/src/string.c:string_printing2 allocating too much memory, [exim-dev] [Bug 1119] src/src/string.c:string_printing2 allocating too much memory, [exim-dev] [Bug 1119] src/src/string.c:string_printing2 allocating too much memory
Tárgy: [exim-dev] [Bug 1119] New: src/src/string.c:string_printing2 allocating too much memory
------- 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: nigel@???
        ReportedBy: christian@???
                CC: exim-dev@???



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