summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2015-02-05 20:11:30 (GMT)
committerdgp <dgp@users.sourceforge.net>2015-02-05 20:11:30 (GMT)
commitbedea5a5c74e0fb7f66c572836dc4d98a3285147 (patch)
tree2b7e30401e3bf8d03edec9a19f8ce0a5b52427ab
parentd866bfcf551c53f8679660b66ad97c18cf559872 (diff)
downloadtk-bedea5a5c74e0fb7f66c572836dc4d98a3285147.zip
tk-bedea5a5c74e0fb7f66c572836dc4d98a3285147.tar.gz
tk-bedea5a5c74e0fb7f66c572836dc4d98a3285147.tar.bz2
[d186605d05] Stop invalid read beyond objv.
-rw-r--r--generic/tkFont.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tkFont.c b/generic/tkFont.c
index 9eaaf94..5d2ad43 100644
--- a/generic/tkFont.c
+++ b/generic/tkFont.c
@@ -3015,7 +3015,6 @@ ConfigAttributesObj(
for (i = 0; i < objc; i += 2) {
optionPtr = objv[i];
- valuePtr = objv[i + 1];
if (Tcl_GetIndexFromObj(interp, optionPtr, fontOpt, "option", 1,
&index) != TCL_OK) {
@@ -3034,6 +3033,7 @@ ConfigAttributesObj(
}
return TCL_ERROR;
}
+ valuePtr = objv[i + 1];
switch (index) {
case FONT_FAMILY: