Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include stddef in zmalloc.h #516

Merged
merged 1 commit into from
May 19, 2024
Merged

Conversation

madolson
Copy link
Member

zmalloc.h uses size_t, which requires stddef. It seems like all the previous code paths were properly including it except for ASAN, which uses libc malloc and skips the special mac only malloc inclusions.

Example failure: https://github.com/valkey-io/valkey/actions/runs/9143545732/job/25140329029

See https://github.com/valkey-io/valkey/actions/runs/9149533754/job/25153263875.

Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
Copy link

codecov bot commented May 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 69.84%. Comparing base (dcc9fd4) to head (bb9aa91).

Additional details and impacted files
@@             Coverage Diff              @@
##           unstable     #516      +/-   ##
============================================
- Coverage     69.85%   69.84%   -0.02%     
============================================
  Files           109      109              
  Lines         61801    61801              
============================================
- Hits          43172    43162      -10     
- Misses        18629    18639      +10     

see 15 files with indirect coverage changes

@PingXie PingXie merged commit d52c8f3 into valkey-io:unstable May 19, 2024
17 checks passed
srgsanky pushed a commit to srgsanky/valkey that referenced this pull request May 19, 2024
zmalloc.h uses size_t, which requires stddef. It seems like all the
previous code paths were properly including it except for ASAN, which
uses libc malloc and skips the special mac only malloc inclusions.

Example failure:
https://github.com/valkey-io/valkey/actions/runs/9143545732/job/25140329029

See
https://github.com/valkey-io/valkey/actions/runs/9149533754/job/25153263875.

Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
adetunjii pushed a commit to adetunjii/valkey that referenced this pull request May 22, 2024
zmalloc.h uses size_t, which requires stddef. It seems like all the
previous code paths were properly including it except for ASAN, which
uses libc malloc and skips the special mac only malloc inclusions.

Example failure:
https://github.com/valkey-io/valkey/actions/runs/9143545732/job/25140329029

See
https://github.com/valkey-io/valkey/actions/runs/9149533754/job/25153263875.

Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
Signed-off-by: Samuel Adetunji <adetunjithomas1@outlook.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants