summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authordgp@users.sourceforge.net <dgp>2015-02-05 20:11:30 (GMT)
committerdgp@users.sourceforge.net <dgp>2015-02-05 20:11:30 (GMT)
commit3c8d6e1922e6f9246a211353563147c05b7afc6c (patch)
treea346e268cf1a9eb64c8ca2574ce72f834ca73539 /generic
parenta9ef200545808ca432bd93ae0490b872321ab38c (diff)
downloadtk-3c8d6e1922e6f9246a211353563147c05b7afc6c.zip
tk-3c8d6e1922e6f9246a211353563147c05b7afc6c.tar.gz
tk-3c8d6e1922e6f9246a211353563147c05b7afc6c.tar.bz2
[d186605d05] Stop invalid read beyond objv.
Diffstat (limited to 'generic')
-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: