cvs commit: src/lib/libc/db/btree bt_put.c

Thomas Moestl tmm at FreeBSD.org
Fri May 30 04:05:09 PDT 2003


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


More information about the cvs-all mailing list