aboutsummaryrefslogtreecommitdiff
path: root/libjava/classpath/java/nio/package.html
diff options
context:
space:
mode:
authorYangyu Chen <cyy@cyyself.name>2026-02-04 07:48:17 -0700
committerJeff Law <jeffrey.law@oss.qualcomm.com>2026-02-04 07:48:17 -0700
commit09d7a79c796fb333fa279b550c8b0f768e46d97f (patch)
tree750ad28b7611208d2d5e5f6a328a641e60259fce /libjava/classpath/java/nio/package.html
parentf845b6995580f7de03b43fef1ad864e3ae28d590 (diff)
downloadgcc-09d7a79c796fb333fa279b550c8b0f768e46d97f.zip
gcc-09d7a79c796fb333fa279b550c8b0f768e46d97f.tar.gz
gcc-09d7a79c796fb333fa279b550c8b0f768e46d97f.tar.bz2
[PATCH] RISC-V: fix nullptr dereference in parse_arch
When parsing target attributes, if an invalid architecture string is provided, the function parse_single_ext may return nullptr. The existing code does not check for this case, leading to a nullptr dereference when attempting to access the returned pointer. This patch adds a check to ensure that the returned pointer is not nullptr before dereferencing it. If it is nullptr, an appropriate error message is generated. gcc/ChangeLog: * config/riscv/riscv-target-attr.cc (riscv_target_attr_parser::parse_arch): Fix nullptr dereference when parsing invalid arch string. gcc/testsuite/ChangeLog: * gcc.target/riscv/target-attr-bad-11.c: New test.
Diffstat (limited to 'libjava/classpath/java/nio/package.html')
0 files changed, 0 insertions, 0 deletions