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
@@ -396,7 +396,7 @@ int refname_is_safe(const char *refname)
396
396
* For example: refs/foo/../bar is safe but refs/foo/../../bar
397
397
* is not.
398
398
*/
399
-
buf=xmallocz(restlen);
399
+
buf=xmallocz(restlen);// CodeQL [SM01952] justification: CodeQL fails to recognize that xmallocz() accounts for the NUL terminator, instead assuming malloc() semantics
0 commit comments