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

DREDD injects header before Feature Test Macro #215

Closed
JonathanFoo0523 opened this issue Jan 25, 2024 · 1 comment · Fixed by #220
Closed

DREDD injects header before Feature Test Macro #215

JonathanFoo0523 opened this issue Jan 25, 2024 · 1 comment · Fixed by #220

Comments

@JonathanFoo0523
Copy link
Collaborator

Minimal Reproducible Example (Produced with CReduce):

#define _GNU_SOURCE
#include <sys/mman.h>
void main() {
  size_t a = 4096;
  mremap;
}

Environment

  • OS: Ubuntu 20.04.6 LTS
  • Compiler: gcc (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0
  • C library: (Ubuntu GLIBC 2.31-0ubuntu9.14) 2.31
@JonathanFoo0523
Copy link
Collaborator Author

Information about feature_test_macro and list of known feature_test_macro can be found
here

JamesLee-Jones added a commit that referenced this issue Apr 11, 2024
Inserting Dredd's declarations at the beginning of the file can cause
issues with header files that have to be before any system headers. So
instead, insert Dredd's declarations at the top level before the first
mutation that we find.

Fixes: #219,#215
@JamesLee-Jones JamesLee-Jones linked a pull request Apr 11, 2024 that will close this issue
JamesLee-Jones added a commit that referenced this issue Jul 11, 2024
Inserting Dredd's declarations at the beginning of the file can cause
issues with header files that have to be before any system headers. So
instead, insert Dredd's declarations at the top level before the first
mutation that we find.

Fixes: #219,#215
JamesLee-Jones added a commit that referenced this issue Jul 15, 2024
Inserting Dredd's declarations at the beginning of the file can cause
issues with header files that have to be before any system headers. So
instead, insert Dredd's declarations at the top level before the first
mutation that we find.

Fixes: #219,#215
JamesLee-Jones added a commit that referenced this issue Jul 16, 2024
Inserting Dredd's declarations at the beginning of the file can cause
issues with header files that have to be before any system headers. So
instead, insert Dredd's declarations at the top level before the first
mutation that we find.

Fixes: #219,#215
JamesLee-Jones added a commit that referenced this issue Jul 17, 2024
Inserting Dredd's declarations at the beginning of the file can cause
issues with header files that have to be before any system headers. So
instead, insert Dredd's declarations at the top level before the first
mutation that we find.

Fixes: #219,#215
afd added a commit that referenced this issue Aug 17, 2024
Related issues: #219, #215
Related PR: #220
afd added a commit that referenced this issue Aug 17, 2024
Related issues: #219, #215
Related PR: #220
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 a pull request may close this issue.

1 participant