diff options
author | Arthur Cohen <arthur.cohen@embecosm.com> | 2023-08-03 16:40:07 +0200 |
---|---|---|
committer | CohenArthur <arthur.cohen@embecosm.com> | 2023-08-14 00:30:37 +0000 |
commit | 74b27ac68d857719fbe92fcd769ff89467ea253f (patch) | |
tree | 0ee0dd7e7752d5161a63545f15516dd522715f54 /gcc/rust/backend | |
parent | 87c5cc15163351f4ab0f0740b44a895a405a3eff (diff) | |
download | gcc-74b27ac68d857719fbe92fcd769ff89467ea253f.zip gcc-74b27ac68d857719fbe92fcd769ff89467ea253f.tar.gz gcc-74b27ac68d857719fbe92fcd769ff89467ea253f.tar.bz2 |
diagnostics: Fix mismatch between new[] and free
We cannot use `free` on a pointer allocated through `new[]`, and this
causes an ASAN failure. This fixes it by using `xcalloc` instead of
`new[]` when creating description buffers for our error codes.
gcc/rust/ChangeLog:
* rust-diagnostics.cc: Switch from new[] to xcalloc
Diffstat (limited to 'gcc/rust/backend')
0 files changed, 0 insertions, 0 deletions