Skip to content
Snippets Groups Projects
Commit 1b422028 authored by Nikita Zheleztsov's avatar Nikita Zheleztsov Committed by Vladimir Davydov
Browse files

icu: fix NULL dereference in `unum_clone`

If `dynamic_cast` fails, then NULL is returned. Even thought
assertion is set, we cannot rely on it, as we don't use debug
version of icu. Let's check if `rbnf` variable is not NULL
explicitly.

If it somehow turned out to be NULL, then memory allocation
error will be thrown.

Closes tarantool/security#61

NO_CHANGELOG=<security fix>
NO_DOC=<security fix>
NO_TEST=<third-party security fix>

(cherry picked from commit 62bb71cf)
parent 53d77748
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment