Skip to content

Commit

Permalink
ldap: Fix possible buffer overflow
Browse files Browse the repository at this point in the history
If gcc says "2050 chars can overflow a 2049 buffer", gcc is definitely
not wrong...
  • Loading branch information
liviuchircu authored and sobomax committed Mar 23, 2023
1 parent df0ca08 commit 7414203
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/ldap/iniparser.c
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ output file pointers.

/* iniparser.c.c following */
#define ASCIILINESZ 1024
#define LONGKEYBUFF 2*ASCIILINESZ+1
#define LONGKEYBUFF (2*ASCIILINESZ +1/*:*/ +1/*'\0'*/)
#define INI_INVALID_KEY ((char*)-1)

/* Private: add an entry to the dictionary */
Expand Down

0 comments on commit 7414203

Please sign in to comment.