FS#29322 - [libtar] tar_append_file crashes

Attached to Project: Arch Linux
Opened by Yannick (yannickp) - Saturday, 07 April 2012, 11:20 GMT
Last edited by Giovanni Scafora (giovanni) - Sunday, 08 April 2012, 11:54 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Giovanni Scafora (giovanni)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
tar_append_file() crashes

Additional info:
* package version : extra/libtar 1.2.11-3
* Same bug reported here
* https://bugzilla.redhat.com/show_bug.cgi?id=538770

Steps to reproduce:
int main( void )
{
TAR *tar;
char* filename ="file.txt"
tar_open(&tar, "archive.tar", NULL, O_WRONLY | O_CREAT, 0644,TAR_GNU);
tar_append_file(tar, tar_append_file, filename, filename );
tar_close(tar);
return 0;
}

This task depends upon

Closed by  Giovanni Scafora (giovanni)
Sunday, 08 April 2012, 11:54 GMT
Reason for closing:  Fixed
Comment by Giovanni Scafora (giovanni) - Sunday, 08 April 2012, 10:06 GMT
I've just fixed it in libtar-1.2.11-4.
Please try and let me know if it is fixed now, so I can close this bug report.
Thanks.
Comment by Yannick (yannickp) - Sunday, 08 April 2012, 11:14 GMT
Tested, it works fine!
Thanks

Loading...