238d8fe Ticket #47746 - ldap/servers/slapd/back-ldbm/dblayer.c: possible minor problem with sscanf

Authored and Committed by nhosoi 9 years ago
    Ticket #47746 - ldap/servers/slapd/back-ldbm/dblayer.c: possible minor problem with sscanf
    
    Description: Warning in read_metadata (dblayer.c):
    > sscanf(thisline,"%[a-z]%c%s",attribute,&delimiter,value);
      (warning) scanf without field width limits can crash with huge input data.
    Adding the size of the buffer to the sscanf format.
    
    Thanks to dcb for reporting the bug and fix.
    
    Reviewed by nhosoi@redhat.com.