OpenBSD CVS

CVS log for src/usr.bin/cvs/rcsparse.c


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.13 / (download) - annotate - [select for diffs], Thu Oct 13 20:51:25 2016 UTC (7 years, 7 months ago) by fcambus
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1, HEAD
Changes since 1.12: +8 -8 lines
Diff to previous 1.12 (colored)

rcsnum_free() -> free() cleanups. From Michael W. Bombardieri.

OK millert@

Revision 1.12 / (download) - annotate - [select for diffs], Thu Nov 5 09:48:21 2015 UTC (8 years, 6 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.11: +6 -7 lines
Diff to previous 1.11 (colored)

Remove xfree(), like already done for RCS. From Michael W Bombardieri,
ok mmcc

Revision 1.11 / (download) - annotate - [select for diffs], Mon Dec 1 21:58:46 2014 UTC (9 years, 5 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored)

An internal function called xrealloc() is actually a fail-hard
reallocarray()... so rename it.

Revision 1.10 / (download) - annotate - [select for diffs], Sat Nov 22 18:01:09 2014 UTC (9 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)

not compiled before commit

Revision 1.9 / (download) - annotate - [select for diffs], Sat Nov 22 15:51:40 2014 UTC (9 years, 5 months ago) by tobias
Branch: MAIN
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (colored)

Fixed uninitialized pointer (and other struct entries while at it)
which is referenced while parsing invalid RCS files.

Spotted by jsg.

ok deraadt

Revision 1.8 / (download) - annotate - [select for diffs], Sun Nov 16 19:14:34 2014 UTC (9 years, 6 months ago) by bluhm
Branch: MAIN
Changes since 1.7: +9 -8 lines
Diff to previous 1.7 (colored)

Convert the logic in rcsparse_warnx().  Instead of creating a
temporary format string, create a temporary message.
If there is not enough memory to log the error, just log this second
error.  The double error path gets never tested, so it should be
simple.  Make it work like the other places.
OK doug@

Revision 1.7 / (download) - annotate - [select for diffs], Mon Jun 3 17:04:35 2013 UTC (10 years, 11 months ago) by jcs
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.6: +25 -3 lines
Diff to previous 1.6 (colored)

properly handle commitid tokens found in rcs files

ok deraadt

Revision 1.6 / (download) - annotate - [select for diffs], Sat Feb 4 21:22:32 2012 UTC (12 years, 3 months ago) by tobias
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1
Changes since 1.5: +4 -4 lines
Diff to previous 1.5 (colored)

Sync rcsparse between OpenCVS/OpenRCS.  Spaces, no binary change.

Revision 1.5 / (download) - annotate - [select for diffs], Wed May 4 17:37:33 2011 UTC (13 years ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_0_BASE, OPENBSD_5_0
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored)

Fix a typo in a comment, from Michael W Bombardieri.

Revision 1.4 / (download) - annotate - [select for diffs], Fri Oct 29 17:49:37 2010 UTC (13 years, 6 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_4_9_BASE, OPENBSD_4_9
Changes since 1.3: +1 -4 lines
Diff to previous 1.3 (colored)

Nuke some unused variables and remove an unnecessary call to dirname().

From Michael W Bombardieri via ray@.

Revision 1.3 / (download) - annotate - [select for diffs], Wed Oct 20 19:53:53 2010 UTC (13 years, 7 months ago) by tobias
Branch: MAIN
Changes since 1.2: +11 -17 lines
Diff to previous 1.2 (colored)

Remove the need for rp_file in parser structure, instead keep only one
FILE pointer in RCSFILE.  This fixes some ugliness in closing an
fdopen()ed FILE and its underlying file descriptor.

Notified by Joerg Sonnenberger <joerg at britannica dot bec to de>

discussed with and ok nicm

Revision 1.2 / (download) - annotate - [select for diffs], Wed Oct 20 06:51:26 2010 UTC (13 years, 7 months ago) by tobias
Branch: MAIN
Changes since 1.1: +7 -9 lines
Diff to previous 1.1 (colored)

Prevent a NULL pointer dereference if rcsparse_deltatexts is called with
a revision not specified as delta in an RCS file.

Spotted by and ok zinovik

Revision 1.1 / (download) - annotate - [select for diffs], Fri Oct 15 08:44:12 2010 UTC (13 years, 7 months ago) by tobias
Branch: MAIN

Replaced RCS parser code with new rcsparse.{c,h}:
- be very strict about things we parse
- print more information about errors if they occur
- do not fatal() directly in parser, give caller a chance to react
- fix an rcs design issue when it comes to login names

tested by many on tech@

ok xsa

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.