Skip to content

Set the stride of new dimensions from convert_dims - #113

Merged
dsharlet merged 1 commit into
masterfrom
fix-sanitizers
Oct 7, 2026
Merged

dsharlet merged 1 commit into
masterfrom
fix-sanitizers

Conversation

@dsharlet

@dsharlet dsharlet commented Oct 7, 2026

Copy link
Copy Markdown
Owner

If we add a new dimension, leaving the stride to the default might be unresolved.

The stride really shouldn't matter for extent 1 dimensions, but strides are used in pointer arithmetic, and that pointer arithmetic can cause sanitizer issues even though the resulting pointer is never used.

If we add a new dimension, leaving the stride to the default might be `unresolved`.

The stride really shouldn't matter for extent 1 dimensions, but strides are used in pointer arithmetic, and that pointer arithmetic can cause sanitizer issues even though the resulting pointer is never used.
@dsharlet
dsharlet requested a review from fbleibel-g October 7, 2026 05:41
Comment thread include/array/array.h
@dsharlet
dsharlet merged commit c3456cf into master Oct 7, 2026
1 check passed
@dsharlet
dsharlet deleted the fix-sanitizers branch October 7, 2026 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants