Skip to content

Commit

Permalink
Corrected a bad statement running Tcl_NewListObj() that fails to
Browse files Browse the repository at this point in the history
assign the result to anything, causing later uses of variable
"lobj" to have an unitialized value and potentially causing a
crash condition.  Thanks to Risto Bell for pointing out the
error.
  • Loading branch information
RTimothyEdwards committed May 14, 2024
1 parent e4c28ef commit 291ba96
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
8.3.482
8.3.483
3 changes: 1 addition & 2 deletions commands/CmdRS.c
Original file line number Diff line number Diff line change
Expand Up @@ -2338,8 +2338,7 @@ CmdSetLabel(w, cmd)
if (locargc == 2)
{
#ifdef MAGIC_WRAPPER
Tcl_Obj *lobj;
Tcl_NewListObj(0, NULL);
lobj = Tcl_NewListObj(0, NULL);
Tcl_ListObjAppendElement(magicinterp, lobj,
Tcl_NewIntObj(DefaultLabel->lab_offset.p_x));
Tcl_ListObjAppendElement(magicinterp, lobj,
Expand Down

0 comments on commit 291ba96

Please sign in to comment.