Fix for https://freedesktop.org/bugzilla/show_bug.cgi?id=1637 - Fix
problems in oid code which may cause the usage of an invalid string
pointer (original patch by Egbert Eich).
This commit is contained in:
10
Xprint/Oid.c
10
Xprint/Oid.c
@@ -2104,16 +2104,16 @@ const char* XpOidNotifyString(XpOidNotify notify)
|
|||||||
{
|
{
|
||||||
switch(notify)
|
switch(notify)
|
||||||
{
|
{
|
||||||
case XPOID_NOTIFY_UNSUPPORTED:
|
|
||||||
return (const char*)NULL;
|
|
||||||
break;
|
|
||||||
case XPOID_NOTIFY_NONE:
|
case XPOID_NOTIFY_NONE:
|
||||||
return NOTIFY_NONE_STR;
|
return NOTIFY_NONE_STR;
|
||||||
break;
|
|
||||||
case XPOID_NOTIFY_EMAIL:
|
case XPOID_NOTIFY_EMAIL:
|
||||||
return NOTIFY_EMAIL_STR;
|
return NOTIFY_EMAIL_STR;
|
||||||
break;
|
case XPOID_NOTIFY_UNSUPPORTED:
|
||||||
|
return (const char *)NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ErrorF("XpOidNotifyString: Unsupported notify=%ld\n", (long)notify);
|
||||||
|
return (const char *)NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user