Skip to content

Conversation

@atetubou
Copy link
Contributor

This is to fix build with newer libc++ in chromium.

ref: https://crbug.com/375980422

This is for `abort` function.
@llvmbot
Copy link
Member

llvmbot commented Oct 28, 2024

@llvm/pr-subscribers-compiler-rt-sanitizer

Author: Takuto Ikuta (atetubou)

Changes

This is to fix build with newer libc++ in chromium.

ref: https://crbug.com/375980422


Full diff: https://github.com/llvm/llvm-project/pull/113872.diff

1 Files Affected:

  • (modified) compiler-rt/include/fuzzer/FuzzedDataProvider.h (+2)
diff --git a/compiler-rt/include/fuzzer/FuzzedDataProvider.h b/compiler-rt/include/fuzzer/FuzzedDataProvider.h
index 5903ed837917ca..b9168868a8830f 100644
--- a/compiler-rt/include/fuzzer/FuzzedDataProvider.h
+++ b/compiler-rt/include/fuzzer/FuzzedDataProvider.h
@@ -13,6 +13,8 @@
 #ifndef LLVM_FUZZER_FUZZED_DATA_PROVIDER_H_
 #define LLVM_FUZZER_FUZZED_DATA_PROVIDER_H_
 
+#include <stdlib.h>
+
 #include <algorithm>
 #include <array>
 #include <climits>

@atetubou
Copy link
Contributor Author

@petrhosek can I ask you to merge this? I don't have permission to do that.

@petrhosek petrhosek merged commit 66fc81c into llvm:main Oct 29, 2024
7 checks passed
@atetubou atetubou deleted the patch-1 branch October 29, 2024 08:12
NoumanAmir657 pushed a commit to NoumanAmir657/llvm-project that referenced this pull request Nov 4, 2024
This is to fix build with newer libc++ in chromium.

ref: https://crbug.com/375980422
steven-studio pushed a commit to steven-studio/llvm-project that referenced this pull request Sep 11, 2025
This is to fix build with newer libc++ in chromium.

ref: https://crbug.com/375980422
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants