diff options
author | Tatsuya Kinoshita <tats@debian.org> | 2021-04-10 23:18:36 +0000 |
---|---|---|
committer | Tatsuya Kinoshita <tats@debian.org> | 2021-04-24 14:39:52 +0000 |
commit | 56ce2a2cc8c31a2e57a5055132c0caa626c9c67c (patch) | |
tree | ce58563488439cbe0f4b58fc9aa940f4fd571d3b /fm.h | |
parent | Check length of hostname with STR_SIZE_MAX (diff) | |
download | w3m-56ce2a2cc8c31a2e57a5055132c0caa626c9c67c.tar.gz w3m-56ce2a2cc8c31a2e57a5055132c0caa626c9c67c.zip |
Prevent integer overflow due to fontstat
Diffstat (limited to 'fm.h')
-rw-r--r-- | fm.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -583,6 +583,7 @@ typedef struct _DownloadList { #define FONT_STACK_SIZE 5 #define FONTSTAT_SIZE 7 +#define FONTSTAT_MAX 127 #define _INIT_BUFFER_WIDTH (COLS - (showLineNum ? 6 : 1)) #define INIT_BUFFER_WIDTH ((_INIT_BUFFER_WIDTH > 0) ? _INIT_BUFFER_WIDTH : 0) |