]> Sergey Matveev's repositories - st.git/commit
fix possible rare crash when Xutf8TextPropertyToTextList fails
authorHiltjo Posthuma <hiltjo@codemadness.org>
Tue, 24 Aug 2021 11:44:35 +0000 (13:44 +0200)
committerHiltjo Posthuma <hiltjo@codemadness.org>
Tue, 24 Aug 2021 11:44:35 +0000 (13:44 +0200)
commit2f6e597ed871cff91c627850d03152cae5f45779
treeed4a5c5cbeac9828b79d111e19484d89d1fa9f55
parent1d3142da968da7f6f61f1c1708f39ca233eda150
fix possible rare crash when Xutf8TextPropertyToTextList fails

from the XmbTextListToTextProperty(3) man page:

"If insufficient memory is available for the new value string, the functions
return XNoMemory.  If the current locale is not supported, the functions return
XLocaleNotSupported.  In both of these error cases, the functions do not set
text_prop_return."

Reported by Steffen Nurpmeso <steffen@sdaoden.eu>, thanks!
x.c