commit | a7ddab0c250a0618e14a0c86aa66bbcf2052b2dc | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Fri Feb 21 13:45:58 2020 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Fri Feb 21 13:45:58 2020 +0100 |
tree | 16f75e1313bf9e08b5b4355dd9d7654ee09d7b9c | |
parent | 4fb196c1d631fbf67b264388760f82498c102e2e [diff] |
BUG/MEDIUM: shctx: make sure to keep all blocks aligned The blocksize and the extra field are not necessarily aligned on a machine word. This can result in crashing an align-sensitive machine when initializing the shctx area. Let's round both sizes up to a pointer size to make this safe everywhere. This fixes issue #512. This should be backported as far as 1.8.