Skip to content

Commit

Permalink
fixed overflow vulnerability
Browse files Browse the repository at this point in the history
  • Loading branch information
oXis committed Jan 28, 2015
1 parent 3cc9b68 commit ee2eef3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion validator/my_validator.cpp
Expand Up @@ -55,7 +55,8 @@ int init_result(RESULT & result, void*& data) {
log_messages.printf(MSG_DEBUG, "Check result\n");

char buff[256];
n = fscanf(f, "%s", buff);
//n = fscanf(f, "%s", buff);
fgets(buff, 256, f);
char * pch;
pch = strtok(buff, " ,");
if (pch != NULL) {
Expand Down

0 comments on commit ee2eef3

Please sign in to comment.