aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend
diff options
context:
space:
mode:
authorArthur Cohen <arthur.cohen@embecosm.com>2023-08-03 16:40:07 +0200
committerCohenArthur <arthur.cohen@embecosm.com>2023-08-14 00:30:37 +0000
commit74b27ac68d857719fbe92fcd769ff89467ea253f (patch)
tree0ee0dd7e7752d5161a63545f15516dd522715f54 /gcc/rust/backend
parent87c5cc15163351f4ab0f0740b44a895a405a3eff (diff)
downloadgcc-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