OpenBSD CVS

CVS log for src/usr.bin/mg/tags.c


[BACK] Up to [local] / src / usr.bin / mg

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: OPENBSD_6_1


Revision 1.14 / (download) - annotate - [select for diffs], Thu Sep 1 10:01:53 2016 UTC (7 years, 9 months ago) by sunil
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.13: +4 -4 lines
Diff to previous 1.13 (colored)

Fix possible NULL pointer dereference.

Found by Coverity Scan.  The tagsvisit() function calls eread(),
which may return NULL.  This is then immediately passed to stat()
without a proper check.  This patch adds that check.

From Joachim Nilsson <troglobit@gmail.com> via lum@. Ok lum@

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.