Fixes CVE-2025-49014 which was introduced in 1.8.0

This commit is contained in:
Mattias Wadman authored and itchyny committed 2025-06-19 00:11:01 +02:00
1 parent edbc1da809
commit 499c91bca9
2 files changed
+12 -2

No files matched your search

+8
View File
@@ -2499,3 +2499,11 @@ foreach .[] as $x (0, 1; . + $x)
3
2
4
# regression test for CVE-2025-49014 (use of fmt after free)
# tests with both empty string literal and empty string created by function
# as they seems to behave referecne wise differently.
strflocaltime("" | ., @uri)
0
""
""