Commit fa4961e
fix: check for NULL return from g_uri_escape_string in escape_url
g_uri_escape_string returns NULL for invalid UTF-8 input; guard it with
fatal_malloc() to match the existing check in unescape_url.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 9b5052f commit fa4961e
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
183 | | - | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
184 | 187 | | |
185 | 188 | | |
186 | 189 | | |
| |||
0 commit comments