libarchive/libarchive-test — Issue #6: 7 - Crashes when call archive_read_open_filename for an file that not exists 
Author: amejia1
Created: 2012-01-20 19:22:49+00:00
State: open

What steps will reproduce the problem?

int main(){
struct archive* a = archive_read_new();
archive_read_support_format_all(a);
archive_read_open_filename(a, "C:\\notexistent.tar", 512);
return 0;
}

What is the expected output? What do you see instead?
Actual Results:
The program crashes.

Expected Results:
The program exits silently.

What version of the product are you using? On what operating system?
libarchive trunk r656
Visual C++ 2008
Windows XP SP3

Please provide any additional information below.
archive_read_open2 calls client_closer when opening file have been failed.

Original link: http://code.google.com/p/libarchive/issues/detail?id=7