Re: [PATCH v2 0/5] tree-walk object_id refactor

2019-01-15 Thread Junio C Hamano
"brian m. carlson" writes: > There are a small number of places in our codebase where we cast a > buffer of unsigned char to a struct object_id pointer. When we have > GIT_MAX_RAWSZ set to 32 (because we have SHA-256), one of these places > (the buffer for tree objects) can lead to us copying too

[PATCH v2 0/5] tree-walk object_id refactor

2019-01-14 Thread brian m. carlson
There are a small number of places in our codebase where we cast a buffer of unsigned char to a struct object_id pointer. When we have GIT_MAX_RAWSZ set to 32 (because we have SHA-256), one of these places (the buffer for tree objects) can lead to us copying too much data when using SHA-1 as the ha