Skip to content

Commit

Permalink
Merge pull request #252 from brada4/master
Browse files Browse the repository at this point in the history
avoid unitialized access in nasl parsing
  • Loading branch information
kroosec authored Feb 6, 2019
2 parents b211b3b + 4aae35b commit ed07eca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nasl/nasl_isotime.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@

/* The type used to represent the time here is a string with a fixed
length. */
#define ISOTIME_SIZE 16
#define ISOTIME_SIZE 19
typedef char my_isotime_t[ISOTIME_SIZE];

/* Correction used to map to real Julian days. */
Expand Down
2 changes: 1 addition & 1 deletion nasl/nasl_ssh.c
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ nasl_ssh_close_hook (int sock)
break;
}
}
if (!session_id)
if (!session_id || tbl_slot >= DIM(session_table))
return -1;
do_nasl_ssh_disconnect (tbl_slot);
return 0;
Expand Down

0 comments on commit ed07eca

Please sign in to comment.