artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a5078e
)
avoid potential use-after-free
author
jsg
<jsg@openbsd.org>
Thu, 30 May 2024 10:25:58 +0000
(10:25 +0000)
committer
jsg
<jsg@openbsd.org>
Thu, 30 May 2024 10:25:58 +0000
(10:25 +0000)
found by smatch, ok tb@
usr.bin/cvs/rcs.c
patch
|
blob
|
history
diff --git
a/usr.bin/cvs/rcs.c
b/usr.bin/cvs/rcs.c
index
7744b9f
..
56639ff
100644
(file)
--- a/
usr.bin/cvs/rcs.c
+++ b/
usr.bin/cvs/rcs.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: rcs.c,v 1.32
1 2022/12/26 19:16:00 jmc
Exp $ */
+/* $OpenBSD: rcs.c,v 1.32
2 2024/05/30 10:25:58 jsg
Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@
-2581,6
+2581,7
@@
rcs_translate_tag(const char *revstr, RCSFILE *rfp)
follow = 0;
free(brev);
+ brev = NULL;
}
if (cvs_specified_date != -1)