CodeQL InconsistentNullnessTest.ql ourgl != NULL

ourgl local variable is set to a non-NULL value (first initialization)
in code that is in lines below where it is dereferenced in a loop.
Somewhere in the loop there is a point where the precondition of ourgl
being set to non-null is expected.
ASSERT added.
This commit is contained in:
Darryl L. Miles
2025-02-22 21:31:22 -05:00
committed by Tim Edwards
parent d18b40d401
commit 38b25c5d34
+2
View File
@@ -140,6 +140,8 @@ GrReadGlyphs(filename, path, libPath, gl)
/* an interesting line */
if (sizeline)
{
/* this section appears to expect ourgl to be */
ASSERT(ourgl, "ourgl");
if (y > 0)
y--; /* scan from top down */
else