You are viewing a plain text version of this content. The canonical link for it is here.
Posted to discuss-archive@tvm.apache.org by GitBox <gi...@apache.org> on 2026/01/21 17:08:24 UTC
[GH] (tvm-ffi/fix/sanitizer-undefined-behavior): Workflow run "CI" failed!
The GitHub Actions job "CI" on tvm-ffi.git/fix/sanitizer-undefined-behavior has failed.
Run started by GitHub user henrylhtsang (triggered by tqchen).
Head commit for run:
2550deb0e4d915f2c0ef99def1d3ab600d4ee48c / henrylhtsang <he...@meta.com>
fix(object): use offsetof instead of null pointer arithmetic
Replace null pointer member access with the standard offsetof macro
from <cstddef> to compute object offset. This avoids undefined behavior
caught by UBSan (member access within null pointer).
The offsetof macro is portable across GCC, Clang, and MSVC:
- GCC/Clang: internally uses __builtin_offsetof
- MSVC: uses its own internal mechanism
Fixes UBSan warning: member access within null pointer of type 'Object'.
Report URL: https://github.com/apache/tvm-ffi/actions/runs/21184079731
With regards,
GitHub Actions via GitBox
---------------------------------------------------------------------
To unsubscribe, e-mail: discuss-archive-unsubscribe@tvm.apache.org
For additional commands, e-mail: discuss-archive-help@tvm.apache.org