Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 May 2003 04:05:08 -0700 (PDT)
From:      Thomas Moestl <tmm@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/lib/libc/db/btree bt_put.c
Message-ID:  <200305301105.h4UB58q6024725@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200305301105.h4UB58q6024725>