Commit e1755878 authored by Erkki Seppälä's avatar Erkki Seppälä Committed by Ulrich Sibiller

Dereferencing possibly NULL "str" in call to function "memcpy" (Deref assumed on…

Dereferencing possibly NULL "str" in call to function "memcpy" (Deref assumed on the basis of 'nonnull' parameter attribute.) If _XkbGetReadBufferPtr returns NULL, goto BAILOUT Reviewed-by: 's avatarDirk Wallenstein <halsmit@t-online.de> Reviewed-by: 's avatarAnder Conselvan de Oliveira <ander.conselvan-de-oliveira@nokia.com> Signed-off-by: 's avatarErkki Seppälä <erkki.seppala@vincit.fi> Backported-to-NX-by: 's avatarUlrich Sibiller <uli42@gmx.de>
parent 8aacb3fa
......@@ -79,6 +79,8 @@ char * str;
if (!this->name)
goto BAILOUT;
str= (char *)_XkbGetReadBufferPtr(buf,wlen);
if (!str)
goto BAILOUT;
memcpy(this->name,str,slen);
}
return first;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment