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

Fixes for clang scan with libarchive imports #529

Merged
merged 3 commits into from
Jan 29, 2022

Conversation

gperciva
Copy link
Member

No description provided.

@gperciva gperciva added the depends PR depends on other PR(s) label Jan 28, 2022
@gperciva
Copy link
Member Author

This builds on #528 to address some warnings from clang-scan, by backporting a few libarchives commits.

@gperciva gperciva force-pushed the clang-scan-libarchive-imports branch from 6772a69 to 13c5653 Compare January 28, 2022 22:53
@gperciva gperciva removed the depends PR depends on other PR(s) label Jan 28, 2022
ggcueroad and others added 3 commits January 28, 2022 17:58
This is libarchive's:

    2009-11-08
    - Value stored to 'data' is never read. - Value stored to 'data_length' is never read.

    Found by Clang Static Analyzer.

    SVN-Revision: 1620

    libarchive/libarchive@c062e1b

Reported by:	clang scan-build
This is from libarchive's

    2009-12-15
    Fix Issue 56: Don't crash when reading an mtree input with "content=."
    4e9fd5af1276d7b89ca4ccac025fc835e28f5a9c

    SVN-Revision: 1741

    libarchive/libarchive@4e9fd5a

The other part of that commit is adding a test case to libarchive, which
we don't need.

Reported by:	clang scan-build
This is libarchive's:

    2013-05-29
    Rework the sign-extension to avoid left-shift of an explicit negative number (which newer GCC complains about).

    libarchive/libarchive@533e8fd

Reported by:	clang scan-build
@gperciva gperciva force-pushed the clang-scan-libarchive-imports branch from 13c5653 to d9b4fc4 Compare January 29, 2022 01:58
@cperciva cperciva merged commit e18c70f into master Jan 29, 2022
@gperciva gperciva deleted the clang-scan-libarchive-imports branch January 29, 2022 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants