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

Verify payload length early on #310

Merged
merged 1 commit into from
Aug 5, 2024

Commits on Aug 3, 2024

  1. Verify payload length early on

    I was looking at something else here and happened
    to notce we didn't seem to be sanity
    checking the length of strings in some places.
    
    Looking harder, first thing I checked is a
    really long filename in a dump file; that's
    fine, we do check that.
    
    Next I tried symlinks, and that caused a
    an assertion trip process abort (thankfully at least)
    deep in the bowels of the EROFS generation.
    
    Fix this by checking the payload length against PATH_MAX.
    
    Also:
    
    - Add the missing error checking in mkcomposefs
    - Add test infrastructure for "should fail" dumpfiles
    
    Signed-off-by: Colin Walters <walters@verbum.org>
    cgwalters committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    b06ea9b View commit details
    Browse the repository at this point in the history