bb11445 - fixing edge case where a null terminator was unintentionally written into an adjacent buffer.

This commit is contained in:
Mickey Sola
2015-12-15 10:53:05 -05:00
parent b8af0f70f5
commit 2e67cefc17

View File

@@ -718,6 +718,8 @@ static void handle_df(const yystype *tokens, size_t start, struct decode_result
if(!str)
return;
len = strlen(str);
if(!len)
return;
clast = str[len-1] - '0';
str[len-1] = '\0';