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

Re: [PATCH] pack-bitmap: Don't perform unaligned memory access

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Jun 27, 2017, 00:06 UTC
Message-ID
<20170627000600.GD161648@aiede.mtv.corp.google.com>
In-Reply-To
<20170626151612.64019-1-jrtc27@jrtc27.com>
James Clarke wrote:
Show 9 quoted lines
> The preceding bitmap entries have a 1-byte XOR-offset and 1-byte flags,
> so their size is not a multiple of 4. Thus the name-hash cache is only
> guaranteed to be 2-byte aligned and so we must use get_be32 rather than
> indexing the array directly.
>
> Signed-off-by: James Clarke <jrtc27@jrtc27.com>
> ---
>  pack-bitmap.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>

Failing build log: https://buildd.debian.org/status/fetch.php?pkg=git&arch=sparc64&ver=1%3A2.13.2-2&stamp=1498520310&raw=0

Thanks for tracking down and fixing it.
Previous: Junio C Hamano
Message 3 of 3 in “pack-bitmap: Don't perform unaligned memory access”
  1. pack-bitmap: Don't perform unaligned memory accessJames Clarke, Jun 26, 2017
  2. Junio C HamanoJun 26, 2017
  3. Jonathan NiederJun 27, 2017

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.