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 off-by-1 max file name len in dfp/dfr8 #706

Merged
merged 1 commit into from
Mar 29, 2024

Commits on Mar 29, 2024

  1. Fix off-by-1 max file name len in dfp/dfr8

    The "last file name" arrays in both dfp.c and dfr8.c can only
    hold DF_MAXFNLEN - 1 characters, so a file name of of length
    DF_MAXFNLEN (defined in hlimits.h) would be truncated.
    
    This has little practical effect, as it's just used in a shortcut
    used when reopening files, but it's incorrect behavior and raises
    warnings. Other "last file" shortcut code uses correctly-sized
    arrays.
    derobins committed Mar 29, 2024
    Configuration menu
    Copy the full SHA
    20b6f03 View commit details
    Browse the repository at this point in the history