Skip to content

Conversation

alejandro-colomar
Copy link
Collaborator

@alejandro-colomar alejandro-colomar commented Jun 7, 2025

This is a cherry-pick from #1265 (at v3b).

This is a refactor that will help see a bug (and its fix). It will also help transition to using STRSEP2ARR() in #1155

Signed-off-by: Alejandro Colomar <alx@kernel.org>
@alejandro-colomar alejandro-colomar requested a review from hallyn June 7, 2025 06:47
@alejandro-colomar
Copy link
Collaborator Author

Oops, no, this is bogus.

@alejandro-colomar
Copy link
Collaborator Author

alejandro-colomar commented Jun 7, 2025

Ahhhh, now I see it. So we parse 7 fields indeed:

nfields is 0,1,2,3,4,5,6, and when we parsed the 7th (nfields is 6) we break out early without advancing nfields, which is why it says 6. So the second bug is not valid.

@alejandro-colomar alejandro-colomar mentioned this pull request Jun 7, 2025
@alejandro-colomar alejandro-colomar deleted the break branch June 7, 2025 14:37
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