commit | 56ddbf72843c0fa1badd68e71c5ba076f626c5c5 | [log] [tgz] |
---|---|---|
author | Tom Tromey <tromey@adacore.com> | Mon Sep 09 11:29:12 2024 -0600 |
committer | Tom Tromey <tromey@adacore.com> | Thu Mar 06 14:17:17 2025 -0700 |
tree | 3a032dc23e8252fe4e9e5bdcd2d51a516cc75d09 | |
parent | 29faeceaa8a7833c1234f9980266c84c7c6b9d02 [diff] |
Fix latent crash in ada_variant_discrim_name ada_variant_discrim_name does this: for (discrim_end = name + strlen (name) - 6; discrim_end != name; If NAME is too short, this will construct an invalid pointer, perhaps causing a crash. This patch arranges to check the length first.