fold/tests/fixtures/organic/gstreamer_cve_2024_47835_vulnerable.cpp
trvon 2dcbdbc75d
feat: harden Fold quality guard
Preserve source, binary, and runtime evidence boundaries while making precision and performance regressions reproducible.

- decompose analysis orchestration into bounded modules
- add differential, metamorphic, organic, and Yams change-time gates
- fix detector, P-Code, fuzz sanitizer, and report identity precision
2026-07-13 15:05:35 -04:00

14 lines
424 B
C++

// Adapted semantic slice of gst/subparse/samiparse.c parse_lrc from
// GStreamer revision a8f8bbef99e28bbf62aeaa774814b5c3a665e9d6.
#include <cstring>
char parsePayload(char* line) {
char* start = std::strchr(line, ']');
// The upstream vulnerable path used start in pointer arithmetic and start + 1.
return start[1];
}
int main() {
char line[] = "missing close bracket";
return parsePayload(line);
}