Skip to content

fix null-deref warning in tokenize_on_space, promote strict-warnings to required#359

Open
abhinavagarwal07 wants to merge 1 commit into
masterfrom
fix-null-deref-strict-warnings
Open

fix null-deref warning in tokenize_on_space, promote strict-warnings to required#359
abhinavagarwal07 wants to merge 1 commit into
masterfrom
fix-null-deref-strict-warnings

Conversation

@abhinavagarwal07
Copy link
Copy Markdown
Collaborator

Remove redundant NULL guard in tokenize_on_space() that confused gcc's null-dereference analysis. pos is guaranteed non-NULL at that point (checked on line 3948, and pos++ cannot produce NULL).

With the warning fixed, remove continue-on-error: true from the strict-warnings CI job so both gcc and clang strict-warning builds are now required.

Stacked on #353.

Comment thread sshfs.c
if (str)
pos = str;

if (!pos)
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pos null check is done here already

@abhinavagarwal07
Copy link
Copy Markdown
Collaborator Author

#353

@abhinavagarwal07 abhinavagarwal07 changed the base branch from ci-werror-clang to master May 21, 2026 06:41
@abhinavagarwal07 abhinavagarwal07 requested a review from h4sh5 May 21, 2026 06:41
@abhinavagarwal07 abhinavagarwal07 force-pushed the fix-null-deref-strict-warnings branch from 6bd45be to c71eea8 Compare May 21, 2026 06:48
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.

1 participant