2007-01-13: Bob Copeland dixit:
> On Sat, Jan 13, 2007 at 02:39:37PM -0500, Bob Copeland wrote:
> > > I get segfault *without* uploading anything; just "./riocp"  Can
> > > I take for sure that the current tip (changeset 130) contains all
> > > your patches?
> > 
> > Ah, I just checked and it's missing one of the two that I sent batched
> > in a single email.
> 
> I take this back, it's in there.  Still looking in write_smalldb for
> fishiness - without the "props.count-1" memory is getting corrupted
> somewhere.  valgrinding...

Looks like it's fixed!  See the oneliner patch below.

Best,
EV.

#####################################################################
--- old/properties.c  2007-01-13 13:12:06.000000000 +0000
+++ new/properties.c  2007-01-14 01:55:04.000000000 +0000
@@ -695,7 +695,7 @@
 
 int lk_properties_write_smalldb(char *usbMountPoint, karma_db_t *db)
 {
-    uint32_t i, len, arrsz, nfiles = props.count-1;
+    uint32_t i, len, arrsz, nfiles = props.count;
     uint32_t ret = 0;
     uint32_t *offset = NULL;
     table_t *table = NULL;
#####################################################################

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
linux-karma-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-karma-devel

Reply via email to