Fix bug in i18n/l10n optimization
commit04e5b28ff1691345e023a944dc6a6a9e9573bd07
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 3 Dec 2017 05:31:24 +0000 (2 21:31 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 3 Dec 2017 05:32:26 +0000 (2 21:32 -0800)
tree461dd9585acb4135cb9ec6ddd689bbb19cc35007
parent8227087194e0817b984ce3b15099f5eae4dc011c
Fix bug in i18n/l10n optimization

This fixes a off-by-one buffer overrun bug introduced in
2017-06-04T15:39:37Z!eggert@cs.ucla.edu.  Problem uncovered by an
experimental version of Emacs built with -fcheck-pointer-bounds
and running on Intel MPX hardware.
* src/editfns.c (styled_format): Avoid overrunning internal buffers.
src/editfns.c