git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: What's cooking in git.git (Jun 2012, #02; Wed, 6)

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Jun 7, 2012, 00:39 UTC
Message-ID
<20120607003904.GB4065@burratino>
In-Reply-To
<CAFfmPPOWZz8JF_BVKvnAVp0VUDzxPiVSqjG7ATPx3CVztDF=cw@mail.gmail.com>
Hi,
David Michael Barr wrote:
> On Thu, Jun 7, 2012 at 7:55 AM, Junio C Hamano <gitster@pobox.com> wrote:
Show 13 quoted lines
>> * db/vcs-svn (2012-06-01) 6 commits
>>  - vcs-svn: drop no-op reset methods
>>  - vcs-svn: fix signedness warnings
>>  - vcs-svn: prefer strstr over memmem
>>  - vcs-svn: prefer constcmp to prefixcmp
>>  - vcs-svn: simplify cleanup in apply_one_window()
>>  - vcs-svn: fix clang-analyzer error
>>
>> I do not know the doneness of this series that came out of the
>> blue.  Are people involved in vcs-svn happy with this series?
>
> At the end of this series, vcs-svn is static-analyzer clean when
> merged into svn-dump-fast-export.

Thanks for the cc. I generally like the code and generally dislike the descriptions which amount to "appease the static analyzer" and don't reflect the thought you actually put into the patches, which sets a bad precedent. I was planning to munge the descriptions, ask you to look it over, and then ask Junio to pull.

The signedness patch still leaves me worried: for example, where len is of type (size_t) and delta_len of type (off_t *),

	-       if (len > *delta_len ||
	+       if ((off_t) len > *delta_len ||

changes the meaning for the worse if len is very large on a system (think: 64-bit PC) where size_t and off_t have the same width. It's exploitable. :(

But I like the spirit of the patches.

The "drop no-op reset methods" patch is unrisky and could go in directly.

Jonathan
Previous: David Michael BarrNext: Junio C Hamano
Message 3 of 16 in “What's cooking in git.git (Jun 2012, #02; Wed, 6)”
  1. Junio C HamanoJun 6, 2012
  2. David Michael BarrJun 6, 2012
  3. Jonathan NiederJun 7, 2012
  4. Junio C HamanoJun 7, 2012
  5. [GIT PULL] vcs-svn housekeepingJonathan Nieder, Jul 6, 2012
  6. 1/9 vcs-svn: drop no-op reset methodsJonathan Nieder, Jul 6, 2012
  7. 2/9 vcs-svn: avoid self-assignment in dummy initialization of pre_offJonathan Nieder, Jul 6, 2012
  8. 3/9 vcs-svn: simplify cleanup in apply_one_windowJonathan Nieder, Jul 6, 2012
  9. 4/9 vcs-svn: use constcmp instead of prefixcmpJonathan Nieder, Jul 6, 2012
  10. 5/9 vcs-svn: use strstr instead of memmemJonathan Nieder, Jul 6, 2012
  11. 6/9 vcs-svn: suppress signed/unsigned comparison warningsJonathan Nieder, Jul 6, 2012
  12. 7/9 vcs-svn: suppress a signed/unsigned comparison warningJonathan Nieder, Jul 6, 2012
  13. 8/9 vcs-svn: suppress a signed/unsigned comparison warningJonathan Nieder, Jul 6, 2012
  14. 9/9 vcs-svn: allow 64-bit Prop-Content-LengthJonathan Nieder, Jul 6, 2012
  15. David Michael BarrJul 6, 2012
  16. Junio C HamanoJul 6, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.