diff options
author | Ander Conselvan de Oliveira <ander.conselvan-de-oliveira@nokia.com> | 2011-01-31 14:02:12 +0200 |
---|---|---|
committer | Ulrich Sibiller <uli42@gmx.de> | 2016-10-19 21:40:24 +0200 |
commit | 698270c47b3b78e3e746c4767a277c5e1e73ec14 (patch) | |
tree | 367de75834877661b57448e22f35e934f56925df /nx-X11/xf86Date.h | |
parent | 7482afcaa71df7ed60909c3c3f995f4723190d4e (diff) | |
download | nx-libs-698270c47b3b78e3e746c4767a277c5e1e73ec14.tar.gz nx-libs-698270c47b3b78e3e746c4767a277c5e1e73ec14.tar.bz2 nx-libs-698270c47b3b78e3e746c4767a277c5e1e73ec14.zip |
XlibInt: info_list->watch_data was reallocated, but result was discarded
info_list->watch_data was being reallocated, but the return value of
the reallocation was stored only into a local variable. This might
cause some funky behavior and crashes.
Variable "wd_array" goes out of scope
Value "wd_array" is overwritten in "wd_array = (XPointer*)realloc((char*)info_list->watch_data, (((dpy->watcher_count + 1) * 4U == 0U) ? 1U : ((dpy->watcher_count + 1) * 4U)))"
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Erkki Seppälä <erkki.seppala@vincit.fi>
Signed-off-by: Ander Conselvan de Oliveira <ander.conselvan-de-oliveira@nokia.com>
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Backported-to-NX-by: Ulrich Sibiller <uli42@gmx.de>
Diffstat (limited to 'nx-X11/xf86Date.h')
0 files changed, 0 insertions, 0 deletions