]> git.eshelyaron.com Git - emacs.git/commit
Avert crash in store_mode_line_string on Android 5.0 and earlier
authorPo Lu <luangruo@yahoo.com>
Wed, 26 Jun 2024 04:08:55 +0000 (12:08 +0800)
committerEshel Yaron <me@eshelyaron.com>
Wed, 26 Jun 2024 13:34:26 +0000 (15:34 +0200)
commit78ddaeb6d339d1c900cf76e3edff2ec3f0fd523a
tree46c23af16d61fcdc714e64bb68c69b2b0a1b932e
parent035a1f7067c4325e866ef872fe539b924a732038
Avert crash in store_mode_line_string on Android 5.0 and earlier

* src/xdisp.c (store_mode_line_string)
[__ANDROID_API__ < 22]: Call strlen on STRING if the limit
would otherwise be SIZE_MAX, or if the address of the string
is within PRECISION bytes of UINTPTR_MAX, in which case it
cannot possibly be larger than PRECISION.

(cherry picked from commit 8b1841021c0d1ca92cb79443909824519429f75f)
src/xdisp.c