Skip to content

block-sha1: avoid pointer conversion that violates alignment constraints

Jonathan Nieder git 2 versions In review

Get series with b4
b4 am 20120722233547.GA1978@burratino

Versions newest first · linked by author and title

  1. v3 Latest2 patches 6 repliesIn review
  2. v21 patch 4 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2block-sha1: avoid pointer conversion that violates alignment constraintsblock-sha1/sha1.c+3 -30 replies
2/2block-sha1: put expanded macro parameters in parenthesesblock-sha1/sha1.c+2 -20 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchMichael CreeLinus Torvalds
1/2Reported-tested-and-explained-by A-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH lt/block-sha1 0/2 v3] block-sha1: avoid pointer conversion that violates alignment constraints

Hi Junio,

This is a series of two patches: the first avoids alignment faults that were making git either slow on Alpha machines or crashy, depending on the machine's configuration, and the second patch is a cosmetic nit noticed while reviewing the first.

Patches are based against

30ae47b4 remove ARM and Mozilla SHA1 implementations, 2009-08-17

(aka the tip of the lt/block-sha1 branch) for no particular reason. They should work fine against a more modern codebase if you prefer that.

No changes since v2[1] except to commit messages.

I think this should be ready for application. Thanks to Michael and Linus for shaping the original patch into something sane.

Thoughts?
Jonathan

[1] http://thread.gmane.org/gmane.comp.version-control.git/201434/focus=201456

Jonathan Nieder (2):
block-sha1: avoid pointer conversion that violates alignment
constraints
block-sha1: put expanded macro parameters in parentheses

 block-sha1/sha1.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)