https://bugs.openldap.org/show_bug.cgi?id=9579

          Issue ID: 9579
           Summary: ldif_read_record(): incorrect parsing of EOF
           Product: OpenLDAP
           Version: unspecified
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: ---
         Component: libraries
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

libraries/libldap/ldif.c:829
>  /* Squash \r\n to \n */
>  if ( len > 1 && line[len-2] == '\r' ) {
>    len--;
>    line[len-1] = '\n';
>  }
assumes “line” buffer has always been terminated by \n, and makes invalid
transforms of these ends of file:

...X\r  ~> ...X\r\n
...X\rY ~> ...X\n

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

Reply via email to