diff options
author | dgp@users.sourceforge.net <dgp> | 2015-02-05 20:11:30 (GMT) |
---|---|---|
committer | dgp@users.sourceforge.net <dgp> | 2015-02-05 20:11:30 (GMT) |
commit | 3c8d6e1922e6f9246a211353563147c05b7afc6c (patch) | |
tree | a346e268cf1a9eb64c8ca2574ce72f834ca73539 | |
parent | a9ef200545808ca432bd93ae0490b872321ab38c (diff) | |
download | tk-3c8d6e1922e6f9246a211353563147c05b7afc6c.zip tk-3c8d6e1922e6f9246a211353563147c05b7afc6c.tar.gz tk-3c8d6e1922e6f9246a211353563147c05b7afc6c.tar.bz2 |
[d186605d05] Stop invalid read beyond objv.
-rw-r--r-- | generic/tkFont.c | 2 |
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: |