diff options
| author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2016-01-01 11:23:09 -0800 |
|---|---|---|
| committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2016-01-01 11:23:09 -0800 |
| commit | 4a7626b5127c0eb597cd2b8d0ae3de0286b74d7c (patch) | |
| tree | 70c4ffce50cee7cb16935c4aa6c1141fed4338bf | |
| parent | 8c82c47a770274c50944f002b97369c4e30872d8 (diff) | |
editres can trigger sigsegv in inspected application (Debian bug 790325)
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=790325
Reported-by: Yuriy M. Kaminskiy <yumkam@gmail.com>
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
| -rw-r--r-- | src/TextSink.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/TextSink.c b/src/TextSink.c index 333701b..a1a6458 100644 --- a/src/TextSink.c +++ b/src/TextSink.c @@ -1808,6 +1808,14 @@ CvtPropertyListToString(Display *dpy, XrmValue *args, Cardinal *num_args, XawTextPropertyList *propl; propl = *(XawTextPropertyList**)fromVal[0].addr; + if (propl == NULL) { + XtAppWarningMsg(XtDisplayToApplicationContext(dpy), + "wrongParameters", "cvtPropertyListToString", + "ToolkitError", + "textProperties to String conversion needs property list argument", + NULL, NULL); + return (False); + } buffer = XrmQuarkToString(propl->identifier); size = strlen(buffer) + 1; |
