static ananlyzer issue for alloc.c
Verifying that strlen(string) isn't too long, then allocating and copying strlen(string)+1 draws a complaint about strcpy() overflowing its output buffer. Not an issue for regular play, but could matter for config file and sysconf manipulation.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* NetHack 3.7 tile2bmp.c $NHDT-Date: 1596498340 2020/08/03 23:45:40 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.32 $ */
|
||||
/* NetHack 3.7 tile2bmp.c $NHDT-Date: 1737281026 2025/01/19 02:03:46 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.51 $ */
|
||||
/* Copyright (c) NetHack PC Development Team 1995 */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
|
||||
@@ -60,8 +60,6 @@ lelong(int32_t x)
|
||||
#endif
|
||||
}
|
||||
|
||||
unsigned FITSuint_(unsigned long long, const char *, int);
|
||||
|
||||
#ifdef __GNUC__
|
||||
typedef struct tagBMIH {
|
||||
uint32_t biSize;
|
||||
|
||||
Reference in New Issue
Block a user