DynamoRIO / DynamoRIO/dynamorio

Build failure in release configuration due to -Werror=stringop-truncation errors

Open
#7,274 5 comments 0 reactions 0 assignees View on GitHub
Component-Build Component-DrMemtrace Component-Tests
Dominant language
C
Stars
3.2k
Forks
629
Avg merge
2d 15h
Merged PRs (30d)
31

Description

Build errors occur when compiling DynamoRIO in release mode using gcc 14.2.0 and g++ 13.3.0 on Ubuntu 24.04.
These errors are specifically related to the `-Werror=stringop-truncation` warning, indicating potential string truncation issues due to the specified bounds depending on the source argument's length. Some are false positives, others seem to highlight genuine potential problems within the code.

The following commands were used to configure and build DynamoRIO:
```
cmake -DBUILD_TESTS=ON -DCMAKE_C_COMPILER=$(which gcc) -DCMAKE_CXX_COMPILER=$(which g++) -B build -S $(pwd)
make -C build -j10
```

Note:
Building tests with `-DBUILD_TESTS=ON` generates additional `stringop-truncation` errors, some of which are likely false positives.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.