Skip to content

Fix fatal_array test for 32-bit systems#301

Open
pghmcfc wants to merge 1 commit into
dovecot:mainfrom
pghmcfc:i686
Open

Fix fatal_array test for 32-bit systems#301
pghmcfc wants to merge 1 commit into
dovecot:mainfrom
pghmcfc:i686

Conversation

@pghmcfc

@pghmcfc pghmcfc commented Jul 18, 2026

Copy link
Copy Markdown
Contributor

On 64-bit systems, SIZE_MAX is much bigger than UINT_MAX so an allocation of UINT_MAX objects is not unreasonable.

On 32-bit systems, SIZE_MAX and UINT_MAX are the same so an allocation of UINT_MAX objects fails malloc checks before reaching buffer size limit checks.

On 64-bit systems, SIZE_MAX is much bigger than UINT_MAX so an
allocation of UINT_MAX objects is not unreasonable.

On 32-bit systems, SIZE_MAX and UINT_MAX are the same so an
allocation of UINT_MAX objects fails malloc checks before reaching
buffer size limit checks.
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