Skip to content

fix: wrap LoadLocation error in date() builtin#931

Open
thevilledev wants to merge 1 commit intoexpr-lang:masterfrom
thevilledev:fix/oss-fuzz-485071714
Open

fix: wrap LoadLocation error in date() builtin#931
thevilledev wants to merge 1 commit intoexpr-lang:masterfrom
thevilledev:fix/oss-fuzz-485071714

Conversation

@thevilledev
Copy link
Contributor

When date() is called with an invalid timezone string like ".", time.LoadLocation can return raw OS-level errors such as "is a directory". Replace the raw error with a consistent "unknown time zone" message to improve error clarity and match the fuzz test's known-error skip patterns.

Relates to #930.

When date() is called with an invalid timezone string like ".",
time.LoadLocation can return raw OS-level errors such as
"is a directory". Replace the raw error with a consistent
"unknown time zone" message to improve error clarity and match
the fuzz test's known-error skip patterns.

Signed-off-by: Ville Vesilehto <ville@vesilehto.fi>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant