Commit Graph

9 Commits

Author SHA1 Message Date
aymeric
59b6c0290c flush the current line cache on every operation on the DB.
We can't keep a reference to data returned by libdb after a subsequent call to
any other libdb function on that DB.

Fixes a bug reported privately by Miho Taniyama (thanks!)... and hopefully
other hard-to-reproduce bugs.
2004-05-02 17:00:31 +00:00
christos
b2ee3e403d improve on previous. only adjust the length when it exceed the string length. 2003-04-18 18:46:26 +00:00
christos
c0b1f367f4 Recovery of vi files has been broken for a long while. This patch is a
stopgap measure to make vi recovery mostly functional on non-binary files.
The problem is that the db holding the recovery file can become corrupted,
in which case the data size of the line becomes huge. We use heuristics to
correct the size when we load a db in recovery mode. We could use a slightly
better heuristic (looking for ascii chars before correcting the length),
but it is not worth it. Another way would have been to trap the SEGV and
access data[len] and see if that worked, but that seemed exceedingly ugly.
2003-04-18 18:33:41 +00:00
thorpej
7f192498d4 Use __RCSID() and __COPYRIGHT(). 2002-04-09 01:47:30 +00:00
aymeric
414f14c52d merge changes after import of nvi 1.79 2001-03-31 11:37:44 +00:00
perry
3fe138c146 RCS Id Police. 1998-01-09 08:03:16 +00:00
mrg
490196e2bb import of nvi 1.66 1996-05-20 02:01:36 +00:00
cgd
ba92461eed new public version of nvi 1994-08-17 19:19:35 +00:00
cgd
1588279d5e new public version of nvi 1994-08-17 16:17:19 +00:00