szn

Bug 117 — cfg.zig — Quoted string parser doesn’t verify closing quote

117. cfg.zig — Quoted string parser doesn’t verify closing quote

File: src/cfg.zig:212–214 Severity: MEDIUM Status: ✅ FIXED — added s[s.len-1] == '"' check. Missing closing quote falls through to default string parsing. Tests added.

if (s.len >= 2 and s[0] == '"') {
    const inner = s[1 .. s.len - 1];
    return OptionValue{ .string = try allocator.dupe(u8, inner) };
}

Only checks s[0] == '"', never verifies s[s.len-1] == '"'. Input "hello (no closing quote) produces hell — the last char is silently stripped. Input "hello"world" produces hello"world.