You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: refs.c
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -350,7 +350,7 @@ int refname_is_safe(const char *refname)
350
350
* For example: refs/foo/../bar is safe but refs/foo/../../bar
351
351
* is not.
352
352
*/
353
-
buf=xmallocz(restlen);
353
+
buf=xmallocz(restlen);// CodeQL [SM01952] justification: CodeQL fails to recognize that xmallocz() accounts for the NUL terminator, instead assuming malloc() semantics
0 commit comments