From owner-cvs-src@FreeBSD.ORG Fri May 30 04:05:09 2003 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 713E537B401; Fri, 30 May 2003 04:05:09 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0FF6143F93; Fri, 30 May 2003 04:05:09 -0700 (PDT) (envelope-from tmm@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h4UB580U024726; Fri, 30 May 2003 04:05:08 -0700 (PDT) (envelope-from tmm@repoman.freebsd.org) Received: (from tmm@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h4UB58q6024725; Fri, 30 May 2003 04:05:08 -0700 (PDT) Message-Id: <200305301105.h4UB58q6024725@repoman.freebsd.org> From: Thomas Moestl Date: Fri, 30 May 2003 04:05:08 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/lib/libc/db/btree bt_put.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 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: Fri, 30 May 2003 11:05:09 -0000 tmm 2003/05/30 04:05:08 PDT FreeBSD src repository Modified files: lib/libc/db/btree bt_put.c Log: Fix a sizeof error in __bt_put: when writing they key and data sizes to a buffer in the big key/data case, memmove() was used on pointers to size_ts, but only sizeof(u_int32_t) bytes where copied. This broke on big_endian architectures where sizeof(size_t) > sizeof(u_int32_t). This bug broke portupgrade (by way of ruby_bdb1) on sparc64. Approved by: re (rwatson) Revision Changes Path 1.4 +5 -3 src/lib/libc/db/btree/bt_put.c