grOGL1.c: pipehandler() XEvent processing NULL deref
SonarCloud Access to field 'w_flags' results in a dereference of a null pointer (loaded from variable 'mw') https://sonarcloud.io/project/issues?open=AZJB16z6NGfDNup0Risq&id=dlmiles_magic
This commit is contained in:
parent
26d6af464a
commit
da80d5c75d
|
|
@ -527,6 +527,8 @@ pipehandler()
|
||||||
|
|
||||||
entry = HashLookOnly(&grOGLWindowTable, (char *)VisEvent->window);
|
entry = HashLookOnly(&grOGLWindowTable, (char *)VisEvent->window);
|
||||||
mw = (entry)?(MagWindow *)HashGetValue(entry):0;
|
mw = (entry)?(MagWindow *)HashGetValue(entry):0;
|
||||||
|
if (!mw)
|
||||||
|
break;
|
||||||
|
|
||||||
switch(VisEvent->state)
|
switch(VisEvent->state)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue