For OSS-Fuzz.
Unified · Split
| @@ -313,11 +313,12 @@ char *m_properties_expand_string(const struct m_property *prop_list, · 312 unmodified lines | ||
| 313 | 313 | str = bstr_cut(str, term_pos); |
| 314 | 314 | bool have_fallback = bstr_eatstart0(&str, ":"); |
| 315 | 315 | |
| 316 | − if (!skip) { | |
| 317 | 316 | #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION |
| 318 | − if (n++ > 10) | |
| 319 | − break; | |
| 317 | + if (n++ > 10) | |
| 318 | + break; | |
| 320 | 319 | #endif |
| 320 | + | |
| 321 | + if (!skip) { | |
| 321 | 322 | skip = expand_property(prop_list, &ret, &ret_len, name, |
| 322 | 323 | have_fallback, ctx); |
| 323 | 324 | if (skip) |