Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix divide-by-zero when page buf page size is 0 #4296

Merged
merged 2 commits into from
Apr 1, 2024

Commits on Apr 1, 2024

  1. Fix divide-by-zero when page buf page size is 0

    If a corrupt file sets the page buffer size in the superblock to zero,
    the library could attempt to divide by zero when allocating space in
    the file. The library now checks for valid page buffer sizes when
    reading the superblock message.
    
    Fixes oss-fuzz issue 58762
    derobins committed Apr 1, 2024
    Configuration menu
    Copy the full SHA
    367ea39 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5e2ea2b View commit details
    Browse the repository at this point in the history