diff options
| author | Paul Eggert | 2011-08-29 11:46:42 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-08-29 11:46:42 -0700 |
| commit | c21721cc3953732047ffdfe268764898f089f74b (patch) | |
| tree | 3ada1b251b233bf7f723d8649384f6b2968078c8 /src/process.c | |
| parent | b5cd19054673bfa46a4f0d1ac3905deeafcf94ff (diff) | |
| download | emacs-c21721cc3953732047ffdfe268764898f089f74b.tar.gz emacs-c21721cc3953732047ffdfe268764898f089f74b.zip | |
* font.c (font_unparse_xlfd): Don't blindly alloca long strings.
Don't assume XINT result fits in int, or that XFLOAT_DATA * 10
fits in int, when using sprintf. Use single snprintf to count
length of string rather than counting it via multiple sprintfs;
that's simpler and more reliable.
(APPEND_SPRINTF): New macro.
(font_unparse_fcname): Use it to avoid sprintf buffer overrun.
(generate_otf_features) [0 && HAVE_LIBOTF]: Use esprintf, not
sprintf, in case result does not fit in int.
Diffstat (limited to 'src/process.c')
0 files changed, 0 insertions, 0 deletions