mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-10-06 01:43:00 +02:00
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:
committed by
Tim Edwards
parent
26d6af464a
commit
da80d5c75d
@@ -527,6 +527,8 @@ pipehandler()
|
||||
|
||||
entry = HashLookOnly(&grOGLWindowTable, (char *)VisEvent->window);
|
||||
mw = (entry)?(MagWindow *)HashGetValue(entry):0;
|
||||
if (!mw)
|
||||
break;
|
||||
|
||||
switch(VisEvent->state)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user