From owner-cvs-all@FreeBSD.ORG Sat Jul 24 17:46:45 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9CC5316A4DF; Sat, 24 Jul 2004 17:46:45 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 96CC743D1F; Sat, 24 Jul 2004 17:46:45 +0000 (GMT) (envelope-from kientzle@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i6OHkj5S099596; Sat, 24 Jul 2004 17:46:45 GMT (envelope-from kientzle@repoman.freebsd.org) Received: (from kientzle@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i6OHkjob099595; Sat, 24 Jul 2004 17:46:45 GMT (envelope-from kientzle) Message-Id: <200407241746.i6OHkjob099595@repoman.freebsd.org> From: Tim Kientzle Date: Sat, 24 Jul 2004 17:46:45 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/lib/libarchive archive_read_support_format_tar.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Jul 2004 17:46:45 -0000 kientzle 2004-07-24 17:46:45 UTC FreeBSD src repository Modified files: lib/libarchive archive_read_support_format_tar.c Log: Fix the handling of signed values when parsing base-256 header values. In particular, this means we can now correctly read gtar archives that contain timestamps prior to the start of the Epoch. Also, make the code in this area more portable. ANSI C99 headers are not yet ubiquitous (for example, FreeBSD 4 still lacks them), so be prepared for systems that don't have the INT64_MAX, INT64_MIN, and UINT64_MAX macros. This version still requires int64_t and uint64_t be defined (which can be done in archive_platform.h if necessary), but doesn't require them to be exactly 64 bits. Revision Changes Path 1.22 +68 -32 src/lib/libarchive/archive_read_support_format_tar.c