History log of /openbsd-current/usr.bin/rcs/rcsparse.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.16 26-Aug-2016 guenther

Pull in <time.h> for struct tm, used in rcs.h

ok deraadt@


Revision tags: OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.15 13-Jun-2015 nicm

Convert xfree to free. From Fritjof Bornebusch. ok deraadt


Revision tags: OPENBSD_5_7_BASE
# 1.14 01-Dec-2014 deraadt

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


# 1.13 22-Nov-2014 deraadt

not compiled before commit


# 1.12 22-Nov-2014 tobias

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

Spotted by jsg.

ok deraadt


# 1.11 16-Nov-2014 bluhm

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@


# 1.10 10-Oct-2014 otto

Zap some stored values never read; From Fritjof Bornebusch; ok nicm@


Revision tags: OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.9 03-Jun-2013 jcs

properly handle commitid tokens found in rcs files

ok deraadt


Revision tags: OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE
# 1.8 04-Feb-2012 tobias

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


Revision tags: OPENBSD_5_0_BASE
# 1.7 14-Jul-2011 sobrado

spacing, no binary change.


# 1.6 04-May-2011 nicm

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


# 1.5 27-Mar-2011 jasper

- remove unused variables

from Michael W. Bombardieri
ok chl@ nicm@


Revision tags: OPENBSD_4_9_BASE
# 1.4 20-Oct-2010 tobias

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


# 1.3 20-Oct-2010 tobias

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


# 1.2 15-Oct-2010 tobias

No need to remove RCS_PARSE flag from rf_flags after successfully parsing.


# 1.1 15-Oct-2010 tobias

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