mirror of
https://github.com/fltk/fltk.git
synced 2026-06-05 16:12:13 +08:00
STR #1853: fixed potntial buffer overrun un Fl_Preferences
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@6015 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
@@ -5,6 +5,8 @@ CHANGES IN FLTK 1.1.8
|
|||||||
STR #1639, STR #1645, STR #1644, STR #1792, STR #1793,
|
STR #1639, STR #1645, STR #1644, STR #1792, STR #1793,
|
||||||
STR #1742, STR #1777, STR #1794, STR #1827, STR #1843,
|
STR #1742, STR #1777, STR #1794, STR #1827, STR #1843,
|
||||||
STR #1796, STR #1815, STR #1726, STR #1753)
|
STR #1796, STR #1815, STR #1726, STR #1753)
|
||||||
|
- Fixed potential buffer overrun
|
||||||
|
in Fl_Preferences (STR #1853)
|
||||||
- Fixed method attributes in consecutive class
|
- Fixed method attributes in consecutive class
|
||||||
declarations in FLUID (STR #1741)
|
declarations in FLUID (STR #1741)
|
||||||
- FLUID checks for seperately declared callbacks to
|
- FLUID checks for seperately declared callbacks to
|
||||||
|
|||||||
@@ -991,7 +991,10 @@ void Fl_Preferences::Node::set( const char *line )
|
|||||||
const char *c = strchr( line, ':' );
|
const char *c = strchr( line, ':' );
|
||||||
if ( c )
|
if ( c )
|
||||||
{
|
{
|
||||||
strlcpy( nameBuffer, line, c-line+1);
|
unsigned int len = c-line+1;
|
||||||
|
if ( len >= sizeof( nameBuffer ) )
|
||||||
|
len = sizeof( nameBuffer );
|
||||||
|
strlcpy( nameBuffer, line, len );
|
||||||
set( nameBuffer, c+1 );
|
set( nameBuffer, c+1 );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user