[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
findutils 4.1 bug
From: |
in-gnu |
Subject: |
findutils 4.1 bug |
Date: |
Sat, 07 Sep 2002 23:00:17 -0400 |
If you have a "updatedb" database which has a prefix length change
under -127 bytes, the incorrect "get_short" declaration of int causes
this number to be a large positive number (somewhere between 2^15 to
2^16-1) instead of a negative number (-2^0 - -2^15). This causes a
core dump.
--- locate/locate.c 2002/09/08 02:32:25 1.1
+++ locate/locate.c 2002/09/08 02:32:28
@@ -96,7 +96,7 @@
/* Read in a 16-bit int, high byte first (network byte order). */
-static int
+static short
get_short (fp)
FILE *fp;
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- findutils 4.1 bug,
in-gnu <=