3 Commits

Author SHA1 Message Date
George Weale 456524d714 test: add unit tests for public symbols that had no coverage
Co-authored-by: George Weale <gweale@google.com>
PiperOrigin-RevId: 960421043
2026-08-06 11:41:06 -07:00
George Weale 46aaa313f5 test: make unit contracts platform neutral
Pre-emptive: every CI job is ubuntu-latest, so none of these tests fail today.
No assertion is weakened - each replacement is equivalent or stricter on Linux.

Co-authored-by: George Weale <gweale@google.com>
PiperOrigin-RevId: 954835278
2026-07-27 14:37:57 -07:00
Ashutosh0x 910e1c1321 fix: prevent ReDoS in code block extraction
Merge https://github.com/google/adk-python/pull/6118

## Summary
- Replace regular expression-based code block extraction with a simple and safe string-find based search. This avoids exponential backtracking (ReDoS) when processing long or repeating inputs with missing trailing delimiters.
- Add unit tests to verify standard behavior and test against ReDoS vulnerability.

Co-authored-by: Kathy Wu <wukathy@google.com>
PiperOrigin-RevId: 933834549
2026-06-17 11:30:32 -07:00