diff options
Diffstat (limited to 'src/ChangeLog')
| -rw-r--r-- | src/ChangeLog | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 9f86c42d43b..1de15f4796e 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -39,7 +39,8 @@ | |||
| 39 | * filelock.c (lock_file_1, lock_file): Don't blindly alloca long name; | 39 | * filelock.c (lock_file_1, lock_file): Don't blindly alloca long name; |
| 40 | use SAFE_ALLOCA instead. Use esprintf to avoid int-overflow issues. | 40 | use SAFE_ALLOCA instead. Use esprintf to avoid int-overflow issues. |
| 41 | 41 | ||
| 42 | * font.c (font_unparse_xlfd): Don't blindly alloca long strings. | 42 | * font.c: Include <float.h>, for DBL_MAX_10_EXP. |
| 43 | (font_unparse_xlfd): Don't blindly alloca long strings. | ||
| 43 | Don't assume XINT result fits in int, or that XFLOAT_DATA * 10 | 44 | Don't assume XINT result fits in int, or that XFLOAT_DATA * 10 |
| 44 | fits in int, when using sprintf. Use single snprintf to count | 45 | fits in int, when using sprintf. Use single snprintf to count |
| 45 | length of string rather than counting it via multiple sprintfs; | 46 | length of string rather than counting it via multiple sprintfs; |
| @@ -62,7 +63,8 @@ | |||
| 62 | use SAFE_ALLOCA. Use esprintf, not sprintf, in case result does | 63 | use SAFE_ALLOCA. Use esprintf, not sprintf, in case result does |
| 63 | not fit in int. | 64 | not fit in int. |
| 64 | 65 | ||
| 65 | * gtkutil.c (xg_check_special_colors, xg_set_geometry): | 66 | * gtkutil.c: Include <float.h>, for DBL_MAX_10_EXP. |
| 67 | (xg_check_special_colors, xg_set_geometry): | ||
| 66 | Make sprintf buffers a bit bigger, to avoid potential buffer overrun. | 68 | Make sprintf buffers a bit bigger, to avoid potential buffer overrun. |
| 67 | 69 | ||
| 68 | * lread.c (dir_warning): Don't blindly alloca buffer; use SAFE_ALLOCA. | 70 | * lread.c (dir_warning): Don't blindly alloca buffer; use SAFE_ALLOCA. |