Skip to content

Commit ee57946

Browse files
authored
Fix coverity high (#30)
1 parent 4f8f852 commit ee57946

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Library/Raisr_OpenCL.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ static RNLERRORTYPE buildProgram(RaisrOpenCLContext *raisrOpenCLContext,
133133
ret = RNLErrorBadParameter;
134134
goto fail;
135135
}
136+
filterShader[programSize] = '\0'; // Ensure null termination after reading
136137
fclose(programHandle);
137138
programHandle = NULL;
138139
} else

0 commit comments

Comments
 (0)