Re: [PATCH v7 00/10] Column display
- From
Nguyen Thai Ngoc Duy <pclouds@gmail.com>
- Date
- Mar 11, 2012, 07:02 UTC
- Message-ID
- <CACsJy8BYDtAqJwAPK4nF+KvednNS8kX3TZGa+o-_=UsapA19oA@mail.gmail.com>
- In-Reply-To
- <87ehtbb5x7.fsf@thomas.inf.ethz.ch>
2012/3/2 Thomas Rast <trast@inf.ethz.ch>:
Show 25 quoted lines
> I ran valgrind over the tests in pu, and I'm seeing these errors > presumably coming from this series: > > t3200-branch.out:==340== Invalid read of size 4 > t3200-branch.out:==340== at 0x48E676: shrink_columns (column.c:101) > t3200-branch.out:==340== by 0x48EB76: display_table (column.c:200) > t3200-branch.out:==340== by 0x48ED1B: print_columns (column.c:241) > t3200-branch.out:==340== by 0x41967F: cmd_branch (branch.c:793) > t3200-branch.out:==340== by 0x40550B: run_builtin (git.c:308) > t3200-branch.out:==340== by 0x4056A6: handle_internal_command (git.c:468) > t3200-branch.out:==340== by 0x4057C0: run_argv (git.c:514) > t3200-branch.out:==340== by 0x40594D: main (git.c:589) > t3200-branch.out:==340== Address 0x57023ac is 0 bytes after a block of size 60 alloc'd > t3200-branch.out:==340== at 0x4C226FA: malloc (vg_replace_malloc.c:263) > t3200-branch.out:==340== by 0x521A11: xmalloc (wrapper.c:35) > t3200-branch.out:==340== by 0x48EAE8: display_table (column.c:193) > t3200-branch.out:==340== by 0x48ED1B: print_columns (column.c:241) > t3200-branch.out:==340== by 0x41967F: cmd_branch (branch.c:793) > t3200-branch.out:==340== by 0x40550B: run_builtin (git.c:308) > t3200-branch.out:==340== by 0x4056A6: handle_internal_command (git.c:468) > t3200-branch.out:==340== by 0x4057C0: run_argv (git.c:514) > t3200-branch.out:==340== by 0x40594D: main (git.c:589) > > and very similar errors in t7004-tag.out, t9002-column.out and > t7508-status.out. Can you look into it?
Thanks. There is a bug in shrink_columns() that causes invalid access. It wil be fixed in the next reroll.
-- Duy