Bug 12306

Summary: xz applet not reporting errors
Product: Busybox Reporter: Jeff Pohlmeyer <yetanothergeek>
Component: OtherAssignee: unassigned
Status: NEW ---    
Severity: normal CC: busybox-cvs, yetanothergeek
Priority: P5    
Version: 1.31.x   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:

Description Jeff Pohlmeyer 2019-11-02 17:23:38 UTC
With previous versions of busybox the xz applet would report an error and exit with error status if the input was invalid:


echo ThisIsNotXZ | busybox xz -dc ; echo $?

xz: corrupted data
1


But the latest version does not show any error message and exits with zero:

echo ThisIsNotXZ | busybox xz -dc ; echo $?
0


I have not checked for sure, but this might be caused by commit 42f454b13b8d972e85acd7f046065ec69af4d206

"dpkg-deb: work around bogus error message when working with XZ compressed packages"