summaryrefslogtreecommitdiff
path: root/doc/apt-transport-https.1.xml
diff options
context:
space:
mode:
authorJulian Andres Klode <julian.klode@canonical.com>2024-11-18 19:16:03 +0100
committerJulian Andres Klode <julian.klode@canonical.com>2024-11-18 19:23:01 +0100
commitdc980fb9ad9f8590a9d438c3f10ef98418e44934 (patch)
tree2a27905838842ed9b1d3944e51576e9c9109e741 /doc/apt-transport-https.1.xml
parent963efeff8778afacef35f69c181d234e0a27d5d3 (diff)
patterns: Safely peek ahead one byte
The pattern tree parser was written using string_views in a no-copy fashion. However, at various places we assume that we can index one byte after the end of the string_view and get a NUL-byte there. This works fine in practice because we only ever pass it zero-terminated string_views, but it fails if you compile with -Wp,-D_GLIBCXX_ASSERTIONS because it will do bounds checks. So instead, do our own bounds checks here and always return '\0' if requesting one byte too many. Reported-by: Christian Heusel <christian@heusel.eu>
Diffstat (limited to 'doc/apt-transport-https.1.xml')
0 files changed, 0 insertions, 0 deletions