rizsotto / Bear

Bear is a tool that generates a compilation database for clang tooling.
GNU General Public License v3.0
4.83k stars 313 forks source link

Patch provided for intercept to trucate output #511

Closed asierllano closed 1 year ago

asierllano commented 1 year ago

If the output of intercept is a file that already exists, the file was not trucated. Then if the output length is smaller than previous output, the content is corrupt.

The provided patch truncates the output so the corruption is avoided.

Bear-3.0.21-intercept-trunc.patch

rizsotto commented 1 year ago

Thanks @asierllano , this is merged now. Will be released as 3.1.1.