Artifacts Associated With Ticket fba9c1fc12
Ticket change [724048be43] (rid 196945) by chrstphrchvz on 2021-12-29 00:27:19:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-fossil-wiki"
- comment initialized to:
[https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html#available-checks|UBSan <tt>-fsanitize=pointer-overflow</tt>] error during test parseExpr-1.1: <pre> <span style="font-weight:bold">tcl/generic/tclTest.c:3623:46: <span style="color:red">runtime error:</span> applying zero offset to null pointer</span> </pre> Using a ternary expression avoids the error: <pre> diff --git generic/tclTest.c generic/tclTest.c index 5774dfc16..203c2ca4b 100644 --- generic/tclTest.c +++ generic/tclTest.c @@ -3596,7 +3596,9 @@ PrintParse( Tcl_NewIntObj(tokenPtr->numComponents)); } Tcl_ListObjAppendElement(NULL, objPtr, <span style="color:red">- Tcl_NewStringObj(parsePtr->commandStart + parsePtr->commandSize,</span> <span style="color:green">+ Tcl_NewStringObj(parsePtr->commandStart + ? parsePtr->commandStart + parsePtr->commandSize + : NULL,</span> -1)); } <span> </span> </pre> - foundin initialized to: "8.6.12"
- is_private initialized to: "0"
- login: "chrstphrchvz"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "chrstphrchvz"
- subsystem initialized to: "34. tcltest Package"
- title initialized to: "pointer arithmetic using NULL in PrintParse()"
- type initialized to: "Patch"
Ticket change [b9df89d053] (rid 197028) by jan.nijtmans on 2022-01-12 21:40:39:
- assignee changed to: "jan.nijtmans"
- closedate changed to: "2459592.40323853"
- closer changed to: "jan.nijtmans"
- icomment:
Fixed [ac6ce2e3cf279f02|here]. Thanks for the report!
- login: "jan.nijtmans"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"