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-12-26 13:01:24 -05:00
committed by Tim Edwards
parent 26d6af464a
commit da80d5c75d
+2
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)
{