Fix a bug in handling archive members: when a member was not found
authorMax Okumoto <okumoto@dragonflybsd.org>
Wed, 23 Feb 2005 00:26:02 +0000 (00:26 +0000)
committerMax Okumoto <okumoto@dragonflybsd.org>
Wed, 23 Feb 2005 00:26:02 +0000 (00:26 +0000)
commitf4ae50f6678869130a7605a98e5a097e18f2589e
treeb097879c8b8f4a3ad4c8d0ba0e34e9a749a56648
parentc5d19e0cdd3f4a0b37f746b87763b7a9886037f2
Fix a bug in handling archive members: when a member was not found
when looking into an already hashed archive, the code tried to use
the name shortened to the maximum length allowed for the archive.
Unfortunately it passed a buffer of junk to the hashing routine when
the name actually wasn't too long. Theoretically this could lead to
a false positive.

Date: 2005/02/21 08:06:34
Author: harti
Taken-from: FreeBSD
usr.bin/make/arch.c