aboutsummaryrefslogtreecommitdiff
path: root/nx-X11
diff options
context:
space:
mode:
authorErkki Seppälä <erkki.seppala@vincit.fi>2011-01-27 09:54:00 +0200
committerUlrich Sibiller <uli42@gmx.de>2016-10-19 21:40:24 +0200
commite175587865ccd01f1771f61cc05735158c8ba6df (patch)
treeddd83ba1a95296d77207a8d95bb9ffbef1f92aab /nx-X11
parent8aacb3fab5824e20e07699cef93c5a20daaff368 (diff)
downloadnx-libs-e175587865ccd01f1771f61cc05735158c8ba6df.tar.gz
nx-libs-e175587865ccd01f1771f61cc05735158c8ba6df.tar.bz2
nx-libs-e175587865ccd01f1771f61cc05735158c8ba6df.zip
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: Dirk Wallenstein <halsmit@t-online.de> Reviewed-by: Ander Conselvan de Oliveira <ander.conselvan-de-oliveira@nokia.com> Signed-off-by: Erkki Seppälä <erkki.seppala@vincit.fi> Backported-to-NX-by: Ulrich Sibiller <uli42@gmx.de>
Diffstat (limited to 'nx-X11')
-rw-r--r--nx-X11/lib/X11/XKBList.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/nx-X11/lib/X11/XKBList.c b/nx-X11/lib/X11/XKBList.c
index 569e732b4..cdbb27063 100644
--- a/nx-X11/lib/X11/XKBList.c
+++ b/nx-X11/lib/X11/XKBList.c
@@ -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;