]> git.ipfire.org Git - thirdparty/libarchive.git/commit
Issue 711: Be more careful about verifying filename lengths when writing ISO9660...
authorTim Kientzle <kientzle@acm.org>
Sat, 28 May 2016 18:50:39 +0000 (11:50 -0700)
committerTim Kientzle <kientzle@acm.org>
Sat, 28 May 2016 18:50:39 +0000 (11:50 -0700)
commit3014e19820ea53c15c90f9d447ca3e668a0b76c6
tree400555b40faea2b04e6ce48a43c8179620223db0
parent7bb6d7078fa2fb9eae214029a019c71ce256eeb7
Issue 711:  Be more careful about verifying filename lengths when writing ISO9660 archives

* Don't cast size_t to int, since this can lead to overflow
  on machines where sizeof(int) < sizeof(size_t)
* Check a + b > limit by writing it as
    a > limit || b > limit || a + b > limit
  to avoid problems when a + b wraps around.
libarchive/archive_write_set_format_iso9660.c