aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bib-parse.awk
diff options
context:
space:
mode:
authorDouglas B. Rumbaugh <doug@douglasrumbaugh.com>2026-06-06 13:44:00 -0400
committerDouglas B. Rumbaugh <doug@douglasrumbaugh.com>2026-06-06 13:44:00 -0400
commitc102ab995f9a86a77e40b9a952b2b23c0bd7de74 (patch)
treed51b9a8f1a55f7f6e6e5afb89d524b9baa350f45 /lib/bib-parse.awk
parentb56c273d8198ae6cee69bbc9fe5a6a61da4074e4 (diff)
downloadbibutils-c102ab995f9a86a77e40b9a952b2b23c0bd7de74.tar.gz
Fuzzing with associated fixes
Diffstat (limited to 'lib/bib-parse.awk')
-rw-r--r--lib/bib-parse.awk5
1 files changed, 4 insertions, 1 deletions
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
}