Skip to content

Fix row count parsing for large 32-bit SAS files#96

Open
abhi-2605 wants to merge 2 commits into
epam:masterfrom
abhi-2605:parso-2.0.11-patched
Open

Fix row count parsing for large 32-bit SAS files#96
abhi-2605 wants to merge 2 commits into
epam:masterfrom
abhi-2605:parso-2.0.11-patched

Conversation

@abhi-2605
Copy link
Copy Markdown

@abhi-2605 abhi-2605 commented May 20, 2026

This patch fixes parsing of SAS row counters in 32-bit sas7bdat files by interpreting rowCount and mixPageRowCount as unsigned 32-bit integers.

Previously, these values were read using signed int conversion, which could produce incorrect negative or overflowed row counts for large files. The change adds unsigned 32-bit conversion while preserving existing 64-bit behavior.

@abhi-2605 abhi-2605 changed the title signed bit to unsigned to avoid overflow after 3B Fix row count parsing for large 32-bit SAS files May 20, 2026
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