kopia lustrzana https://gitlab.com/sane-project/backends
Merge branch '708-possible-segv-null-pointer-deref-in-sanei_configure_attach' into 'master'
Resolve "Possible SEGV (null pointer deref) in sanei_configure_attach()" Closes #708 See merge request sane-project/backends!802merge-requests/569/head
commit
fd7b83c8f7
|
@ -295,6 +295,12 @@ sanei_configure_attach (const char *config_file, SANEI_Config * config,
|
|||
* So we parse the line 2 time to find an option */
|
||||
/* check if it is an option */
|
||||
lp = sanei_config_get_string (lp, &token);
|
||||
if (NULL == token)
|
||||
{
|
||||
// Invalid format?
|
||||
continue;
|
||||
}
|
||||
|
||||
if (strncmp (token, "option", 6) == 0)
|
||||
{
|
||||
/* skip the "option" token */
|
||||
|
|
Ładowanie…
Reference in New Issue