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 libarchive/archive_read_support_format_mtree.c:1388:11: error: ar… #715

Conversation

mfont-ws
Copy link
Contributor

Version of libarchive: libarchive-3.2.0
How you obtained it: Source from git release libarchive-3.2.0.tar.gz
Operating system and version: Ubuntu 14.04
What compiler and/or IDE you are using (include version): arm-none-linux-gnueabi

This patch fix a bug (see below) that we found while crosscompiling libarchive-3.2.0 to build opkg for arm platform.

make  all-am
make[1]: Entering directory `/mnt/host/libarchive-3.2.0'
  CC       libarchive/archive_read_support_format_mtree.lo
cc1: warnings being treated as errors
libarchive/archive_read_support_format_mtree.c: In function 'parse_device':
libarchive/archive_read_support_format_mtree.c:1388:11: error: array subscript is above array bounds
make[1]: *** [libarchive/archive_read_support_format_mtree.lo] Error 1
make[1]: Leaving directory `/mnt/host/libarchive-3.2.0'
make: *** [all] Error 

@kientzle kientzle merged commit ecdac4d into libarchive:master Jun 11, 2016
@kientzle
Copy link
Contributor

Thank you!

@mmatuska
Copy link
Member

@petterreinholdtsen
Copy link

Looking at the git history, this issue seem to have been introduced in git commit 4e002d9 , and was introduced between version 3.1.2 and 3.2.0. It was present in the version tagged with v3.1.900a in git.

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.

None yet

4 participants