From c102ab995f9a86a77e40b9a952b2b23c0bd7de74 Mon Sep 17 00:00:00 2001 From: "Douglas B. Rumbaugh" Date: Sat, 6 Jun 2026 13:44:00 -0400 Subject: Fuzzing with associated fixes --- lib/bib-parse.awk | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/bib-parse.awk') diff --git a/lib/bib-parse.awk b/lib/bib-parse.awk index e5bf9fa..e83cb07 100644 --- a/lib/bib-parse.awk +++ b/lib/bib-parse.awk @@ -4,7 +4,8 @@ # bib_entry(type, key) - called once per regular entry. The fields are # available in BIB_N, BIB_NAME[], BIB_VAL[] and # BIB_KIND[]; the raw source text of the entry -# is in BIB_RAW. +# is in BIB_RAW, and its position in the input +# buffer bib_buf is BIB_START..BIB_END-1. # bib_pass(raw) - called for @string and @preamble blocks with # their raw source text. # @@ -211,6 +212,8 @@ function bib_entry_at(s, i, at, type, opener, closer, key, name, c) { BIB_KIND[BIB_N] = BIB_VKIND } BIB_RAW = bib_trim(substr(s, at, i - at)) + BIB_START = at + BIB_END = i bib_entry(type, key) return i } -- cgit v1.2.3