On 4/27/05, Paul Gortmaker <paul.gortmaker@xxxxxxxxx> wrote: > [Yet more info, and a work-around] > > I found rpmdbNextIterator in rpmdb/rpmdb.c does a dbiGet(...key...) > and then memcpy(&mi->mi_offset, key->data ...). The mi_offset is the > value that has unaccounted for endian issues, and since it is used in > calculating the allocation size for PBM_REALLOC, we get huge > allocation requests in PBM_REALLOC. > > I did an endian swap on mi_offset whenever I found it was a huge > value, and also did an "rpm --rebuilddb" (which used to fail with the > same huge allocation problem) and now things seem to work sanely. > > I noted that the code was unchanged in 4.3 (I was using/testing 4.2), > so maybe you RPM gurus have a cleaner/better fix in mind than what I > did, but at least you know where the problem lies. > > Paul. You may want to bugzilla this with your patch. Also, the rpm-devel list would be a good place to send the patch also. Cheers...james _______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list