From owner-cvs-src@FreeBSD.ORG Sun Jul 15 19:14:00 2007 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 31A1C16A409; Sun, 15 Jul 2007 19:14:00 +0000 (UTC) (envelope-from kientzle@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id 21EDA13C4B7; Sun, 15 Jul 2007 19:14:00 +0000 (UTC) (envelope-from kientzle@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id l6FJDx6r023354; Sun, 15 Jul 2007 19:13:59 GMT (envelope-from kientzle@repoman.freebsd.org) Received: (from kientzle@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id l6FJDxIx023353; Sun, 15 Jul 2007 19:13:59 GMT (envelope-from kientzle) Message-Id: <200707151913.l6FJDxIx023353@repoman.freebsd.org> From: Tim Kientzle Date: Sun, 15 Jul 2007 19:13:59 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/lib/libarchive archive_read_support_format_tar.c archive_read_support_format_zip.c archive_string.c archive_string_sprintf.c archive_write_disk.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Jul 2007 19:14:00 -0000 kientzle 2007-07-15 19:13:59 UTC FreeBSD src repository Modified files: lib/libarchive archive_read_support_format_tar.c archive_read_support_format_zip.c archive_string.c archive_string_sprintf.c archive_write_disk.c Log: archive_string_ensure() used to call exit(3) if it couldn't allocate more memory for a string. Change this so it returns NULL in that case, and update all of its callers to handle the error. Some of those callers can now return errors back to the client instead of calling exit(3). Approved by: re (bmah) Revision Changes Path 1.60 +12 -2 src/lib/libarchive/archive_read_support_format_tar.c 1.14 +2 -1 src/lib/libarchive/archive_read_support_format_zip.c 1.11 +6 -5 src/lib/libarchive/archive_string.c 1.9 +3 -1 src/lib/libarchive/archive_string_sprintf.c 1.13 +4 -1 src/lib/libarchive/archive_write_disk.c