mirror of https://github.com/GNOME/gimp.git
Specify maximum field width in sscanf() to avoid buffer overflows.
2007-05-30 Mukund Sivaraman <muks@mukund.org> * plug-ins/common/compose.c: Specify maximum field width in sscanf() to avoid buffer overflows. svn path=/trunk/; revision=22673
This commit is contained in:
parent
edd086bb5f
commit
f111033d15
|
@ -1,3 +1,8 @@
|
|||
2007-05-30 Mukund Sivaraman <muks@mukund.org>
|
||||
|
||||
* plug-ins/common/compose.c: Specify maximum field width in
|
||||
sscanf() to avoid buffer overflows.
|
||||
|
||||
2007-05-30 Mukund Sivaraman <muks@mukund.org>
|
||||
|
||||
* plug-ins/common/channel_mixer.c: Specify maximum field width in
|
||||
|
|
|
@ -481,7 +481,7 @@ run (const gchar *name,
|
|||
gint nret;
|
||||
|
||||
nret = sscanf (gimp_parasite_data (parasite),
|
||||
"source=%d type=%s %d %d %d %d",
|
||||
"source=%d type=%31s %d %d %d %d",
|
||||
&composevals.source_layer_ID,
|
||||
composevals.compose_type,
|
||||
&composevals.inputs[0].comp.ID,
|
||||
|
|
Loading…
Reference in New Issue