diff options
author | Philip Herron <herron.philip@googlemail.com> | 2023-01-31 14:27:49 +0000 |
---|---|---|
committer | Philip Herron <herron.philip@googlemail.com> | 2023-02-05 00:10:48 +0000 |
commit | e612713029296dac8429e4b00ec7659bcad5cffe (patch) | |
tree | f79c4b2e6632a091d2504310e0fcd7022944daa6 /gcc/function-tests.cc | |
parent | 95fa967f5c5ce9445fa3f08195c01138338fd0bd (diff) | |
download | gcc-e612713029296dac8429e4b00ec7659bcad5cffe.zip gcc-e612713029296dac8429e4b00ec7659bcad5cffe.tar.gz gcc-e612713029296dac8429e4b00ec7659bcad5cffe.tar.bz2 |
gccrs: Fix nullptr dereference
When we check if this is concrete the guard checks to ensure the argument
is non null but the check here is wrongly returning early when the check
is non null meaning when it is null and therefore not concrete it will
end up doing a null dereference.
Signed-off-by: Philip Herron <herron.philip@googlemail.com>
gcc/rust/ChangeLog:
* typecheck/rust-tyty-subst.cc (SubstitutionArg::is_conrete): fix check
Diffstat (limited to 'gcc/function-tests.cc')
0 files changed, 0 insertions, 0 deletions