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:
Darryl L. Miles 2024-10-04 20:23:57 +01:00 committed by Tim Edwards
parent 26d6af464a
commit da80d5c75d
1 changed files with 2 additions and 0 deletions

View File

@ -527,6 +527,8 @@ pipehandler()
entry = HashLookOnly(&grOGLWindowTable, (char *)VisEvent->window);
mw = (entry)?(MagWindow *)HashGetValue(entry):0;
if (!mw)
break;
switch(VisEvent->state)
{