Unzip bug in Ventura 13.1 on MacBook Pro 14 M1 Pro

When you download a ZIP'ed firmware file for the Panasonic DC-S5 full frame camera, there is a weird error message, when using Apples built-in unzip functionality:



Text in english: 'Cannot decompress "S5___V26.bin". The format is not supported.'.


There is nothing to support!


I don't want the resulting ".bin" file unzipped. Where do you get that idea from? If Apple's software starts thinking beyond, what is "f" required, no wonder the OS starts cracking up!


The darned thing only has to unzip ONE FILE (not try do do anything else).


The resultant file list is:



I'm uncompressing this "zip" file and NO "bin" file present until AFTER unzip!



If I use "The Unarchiver", this - of course - is done correctly. No attempt to also unzip the result. Just doing, what's required and asked for.


No difference, whether I use the built-in touch pad in the MacBook or a mouse for clicking on the file.


It's a bit of a wakeup call, that you even have to use "third party app's" to perform the tasks of standard Apple functionality in order to get things running smoothely (Apples old motto "It just works" is long past the "discard by date", it seems. Medicine turned "snake oil"?).


What is wrong with Apple software lately?


Have Apple programmers started thinking for themselves?


Do I really have to crank up my trusted PC, just to get things unzipped without any protests from the system (or even attempts to start UNZIP'ing the UNZIP'd result)?


Any idea, why this is happening?


Any idea how to get the normal "UNZIP ONLY" behaviour back again for ALL FILES (ashort of switching to Windows or Linux)?


Regards





Posted on Jan 21, 2023 2:47 AM

Reply
Question marked as Top-ranking reply

Posted on Jan 21, 2023 9:44 AM

On a Mac, probably for historical reasons, the default application assigned to a .bin file is the Archive utility, which also uncompresses (as well as archives, or compresses) files. Your original posting shows this in the image, the "type" is a Macbinary Archive for that file.


This is intended in the MacOS, it is not a bug. You can test this by creating a file and give it a .bin extension. Immediately the MacOS assigns it to be the Macbinary Archive file type. Do a Get Info and you will see this. The .bin file extension has been used in the past to designate Macbinary archives, that is the reason.


The .bin extension is also used for other things, in this case your firmware update. There is no harm done because decompressing such a file simply does not work, it is not an archive but a firmware file. So the MacOS tries but immediately stops, with that message you saw. The .bin file is still there untouched for you to use. (And even if somehow it was able to be decompressed, the original .bin file would be untouched.)


So no harm is done, your .bin file is there for you to use.


Whether you call this a "bug" or a "feature" is up to you. There are some Mac files that are .bin files and are indeed archives that the Mac can uncompress if or when needed. The MacOS can't tell the difference when .bin is used for multiple things. You can search on your Mac for all files that contain .bin in their name and you will see that all are assigned to be Macbinary Archive in file type. The MacOS can't tell the difference between the Macbinary Archive files and files that use .bin but are actually other types (not archives).


I would ignore this harmless error message because it simply comes about from the use of .bin for different things and has no impact on your Mac operation nor in the availability of that .bin file.


P.S. I too have accidentally replied to the wrong person is these Discussions, no harm from that either! I too sometimes struggle with a small laptop screen!

Similar questions

17 replies
Question marked as Top-ranking reply

Jan 21, 2023 9:44 AM in response to Kurt Friis

On a Mac, probably for historical reasons, the default application assigned to a .bin file is the Archive utility, which also uncompresses (as well as archives, or compresses) files. Your original posting shows this in the image, the "type" is a Macbinary Archive for that file.


This is intended in the MacOS, it is not a bug. You can test this by creating a file and give it a .bin extension. Immediately the MacOS assigns it to be the Macbinary Archive file type. Do a Get Info and you will see this. The .bin file extension has been used in the past to designate Macbinary archives, that is the reason.


The .bin extension is also used for other things, in this case your firmware update. There is no harm done because decompressing such a file simply does not work, it is not an archive but a firmware file. So the MacOS tries but immediately stops, with that message you saw. The .bin file is still there untouched for you to use. (And even if somehow it was able to be decompressed, the original .bin file would be untouched.)


So no harm is done, your .bin file is there for you to use.


Whether you call this a "bug" or a "feature" is up to you. There are some Mac files that are .bin files and are indeed archives that the Mac can uncompress if or when needed. The MacOS can't tell the difference when .bin is used for multiple things. You can search on your Mac for all files that contain .bin in their name and you will see that all are assigned to be Macbinary Archive in file type. The MacOS can't tell the difference between the Macbinary Archive files and files that use .bin but are actually other types (not archives).


I would ignore this harmless error message because it simply comes about from the use of .bin for different things and has no impact on your Mac operation nor in the availability of that .bin file.


P.S. I too have accidentally replied to the wrong person is these Discussions, no harm from that either! I too sometimes struggle with a small laptop screen!

Jan 21, 2023 2:48 PM in response to steve626

This is a simple proof of concept (I will NOT comment further):


  1. Copy  folder “Pages..app” to external Thunderbolt disk in folder “/Ignore/Test2/Pages”
  2. Komprimer (compress system tool) the folder “Pages.app”
  3. Resulting file: “Pages.app.zip”
  4. Rename to “Pages.app.bin”
  5. Komprimer (compress system-tool) to “Pages.app.bin.zip”
  6. Duplicated to the file “Pages-kopi.app.bin.zip”
  7. Rername “Pages.app.bin.zip” to “Pages.zip”



According to your statement, “Pages.app.bin” should not be unzipped.


Move “Pages.zip” into the sub folder “Testing” (no other files present), what will be the result, if I double-click on “Pages.zip”?


A. An error, that “Pages.app.bin” cannot be decompressed?


B. The folder “Pages.app” with no trace of intermediary file “Pages.app.bin”


This is what is seen after double-clicking on “Pages.zip”. Since this is a rather hefty file, a dialog box is shown telling me:



Decompressing “Pages.app.bin” and while decompression is taking place, the file “Pages.app.bin” is visible. Makes it easy to show you, what happens too.


This is caused by this system default:



Even on a thunderbolt drive (Samsung 970 Pro ( ~2.5GB/sec read/~2.5GB/sec write sustained for 1TB) will force the system to use some time for decompressing 300MB Pages.zip and creating 642 GB Pages.app folder as seen here, as the ONLY permanent result of the action:



NO trace of “Pages.app.bin” anywhere in the folder Testing (after processing is finished).


QED! The bin file is unzipped in this proof of concept. Other (de)compression types may be supported too. I haven't checked. This is good enough as proof of concept.


You can perform the same operation if you’re not convinced. You cannot copy system files like “Mail.app” directly without a trick or two, but as a proof of concept, Pages.app is good enough, I think, and it also so big, that (when operation is not hidden), it is possible to actually see, what goes on.


Don’t you agree? 


Regards

Jan 21, 2023 5:09 AM in response to Kurt Friis

When a file extension, like .zip is associated with a Native Application, like the Uncompress application, things this are bound to occur.


The user may consider using the Command i - Get Information.


Then reassign the .zip extension to the Desired Their Party Application


Further to guard against the Auto Launch of Uncompress


Disable the feature in Safari to Auto Open Safe Files


images ( 2 below )





Jan 21, 2023 11:54 AM in response to Kurt Friis

Kurt Friis wrote:

We agree, that there was no harm done. In THIS specific case.

The problem is: Will that always be the case, for all zip files ending up in our machinery?

IF Apple still uses this approach, without even checking, if it makes sense before unzipping, I may not even be warned about the "less than optimal handling" of content, ending up in decoded, maybe executable form (depending on sort settings, I may not even notice the "odd addition" to the original unzip operation

This sounds a little over dramatic to me. You are certainly entitled to your opinion about these things.


Zip files are handled properly on Macs, they are unzipped.


But when it produces a .bin file that resulted from unzipping a zip file, the Mac may try to decompress that as well because it is an extension used in the past for archives. That decompression stops immediately (as happened in your case) when in fact it is a binary file, not an archive. The MacOS does not try to execute the .bin file, it just checks to see if in fact it is an archive that can be further decompressed.


This in fact is the behavior I would want to see.


Note that decompression and unzipping always leaves the original file untouched. So if the output is gibberish, the original is still preserved as it was. But the MacOS is smart enough to recognize that some .bin files are in fact not archives so it stops.


I don't see any risk from this. You use terms like "dangerous" and "authorized personnel" ... not sure why, we are talking about people using their Macs, a file with an extension (.bin) that can mean multiple things, and the Mac handled it correctly. No third party unwanted code executes ... a built in Mac decompression program checks a file and determines it is in fact not an archive and thus does nothing, and informs you.


Zip files are considered a potential security risk on PCs because they could be uncompressed into an executable and then executed, and that execution could result in software running that does harm. On the Mac, before anything is run or executed, the Mac asks "this is an application downloaded, are you sure you want to run it." You have to affirmatively answer yes and click a button. The user can always choose to do things that can damage files. However, the Mac protects against that, as described above. And since the MacOS is now stored in a sealed read-only volume, it cannot be corrupted by anything like this.


If you can point out an aspect of this unzip and .bin situation that poses a risk to any Mac users, please explain the SPECIFIC basis of your concern.

Jan 21, 2023 9:18 AM in response to Kurt Friis

Give this a try: boot into Safe Mode according to How to use safe mode on your Mac and test to see if the problem persists. Reboot normally and test again.


NOTE 1: Safe Mode boot can take up to 3 - 5 minutes as it's doing the following; 

• Verifies your startup disk and attempts to repair directory issues, if needed

• Loads only required kernel extensions (prevents 3rd party kernel/extensions from loading)

• Prevents Startup Items and Login Items from opening automatically

• Disables user-installed fonts 

• Deletes font caches, kernel cache, and other system cache files


NOTE 2: if you have a wireless keyboard with rechargeable batteries connect it with its charging cable before booting into Safe Mode. This makes it act as a wired keyboard as will insure a successful boot into Safe Mode.


Jan 21, 2023 4:27 PM in response to Kurt Friis

According to your statement, “Pages.app.bin” should not be unzipped.

You confused yourself. Pages.app.bin isn't a binary file, it is a zip compress application bundle.

When the unarchiver attempts to decompress the binary archive, it finds a zip archive which it can uncompress, also.

If it wasn't really a zip archive, it would not have been decompressed.


Changing the file extension doesn't change the internal structure.

Jan 21, 2023 5:12 PM in response to Kurt Friis

Kurt Friis wrote:

Don’t you agree? 

No, I don't agree. Barney explained it, but I expect you will continue to see this differently. The MacOS behaves predictably. Whether you consider this a "bug" or just "normal expected behavior," there is still no consequence.


Rather than endless back and forth in this forum, feel free to report what you think is a bug to Apple directly:


Bug Reporting - Apple Developer

Product Feedback - Apple


As someone who works on space flight systems, I can tell you how we approach prioritizing things to change in our software (or hardware): the items that have no negative consequences are the LAST ones we will address, if ever. Changing operational software in any way carries some risk of unintended consequences, so there is a general rule to not make changes unless there is a compelling reason to do so. I suspect Apple follows something similar. Any change to the MacOS requires extensive testing and validation, it all costs money, and making unnecessary changes is always avoided.


Let us know if Apple responds to your "bug" report.


Jan 21, 2023 9:45 PM in response to Kurt Friis

Kurt Friis wrote:
In this case, the consequences were limited to executing an extra decompression, not requested by the user (and failing, as file content differed from content expected by the system. No check on actual content prior to execution was done).

No. There was no "extra decompression." The Apple software did check the file content BEFORE DOING ANYTHING and immediately reported that it was not the right format and did NOTHING. It did the right thing. My opinion differs from yours because in my view, this is harmless and it's the right behavior, it's what I would want.


See the links I provided for providing feedback to Apple.


Bug Reporting - Apple Developer

Product Feedback - Apple


(Rudegar also provided the feedback link)


Feel free to use a PC for zip files. PCs perform many more "automated actions" not directly under user control, and are much more vulnerable to malware or even viruses introduced many different ways, including zip files.


It is actually impossible to introduce a virus on a modern Mac because the system is in a sealed, read-only volume (actually a snapshot).

Jan 21, 2023 3:35 AM in response to Kurt Friis

zip not sure when it was introduced native in macos but it did not used to nor did it in windows or dos

people used to use stuff like winZip and WinRar and WinAce to handle compressed files.


not sure why it malfunction for you, I usually use double commander for such things myself


you can provide them with feedback using their feedback channel

Feedback - macOS - Apple

Jan 21, 2023 6:07 AM in response to Kurt Friis

This has no bearing on this case.


You have a file, let's say it's called "x.zip", you double click on that specific file "x.zip", and the content is extracted as "x.bin".


Now, why does the standard Apple zip-tool decide to - immediately after decompression - also try to unzip the file "x.bin"? THAT's the question?


The behaviour is not related to moues button switch "wear", since the MacBook Pro 14 M1 Pro (new) trackpad displays the same behaviour.


If I double-click on a zip file called "y.zip", and the resulting unpacked file is "y.pkg" or "y.dmg", the tool will NOT attempt to unpack y.pkg or y.dmg AFTER unpacking y.zip. Rhetoric question: Why only (?) the extension "bin"?


That's the problem. It may affect only the bin(ary) extension - or many more.


I'm interested in HOW to disable this weird and non-consistent behaviour. IF it is not a bug, then why does Apple need to unpack zip files to bin files, that are then automatically unpacked to "something else" and for what purpose (automatic behaviors can have side effects) WITHOUT checking if the bin(ary) file has an Apple signature etc. (it actually carries the "Panasonic" name in the header.



Look and thou shalt find, but not if you're Apple???


Here, luck had it, that the zip file contained camera firmware, that should to all intends and purposes be completely unusable on a Mac platform - nevertheless.... weird, "innit"?


l could obviously ask in a more appropriate forum like reddit and place an example on GitHub, but if this is a bug, it's "not nice". I may contact Apple support monday, since this needs a competent person to take action, and not just ending up as an unread entry in a reporting system.


IF this is NOT a bug, there is purpose behind, and maybe, juts maybe, someone - outside "Apples sphere of influence" may find it useful as a way to sneak "intersting code" innocently and seemingly completely uncontrolled into a Ventura 13.x system.


My system displays this, so it certainly looks as an intended outcome:



for Apple's ZIP-tool. I have to select another app to prevent the current "side effect".


The setting in Safari should not apply here. The file was copied into the current system, by hand (from an "NTSF environment" share) and started by hand. Anyway, my setting is disabled.



Why would anyone hide a global operating system level setting inside Safari settings? That does not compute either.


I see no simple way to disable the action (and this may even have side effects, if this approach is actually used by the operating system during install). So, replace the zip-tool with hex viewer may not be at all advicable. Just try it, doesn't cut it either...


The real problem is, that this is not usual behaviour of any ZIP-tool I know, to - uninvited and automatically - starting unzipping a just unzipped file (if I create a large zip file, zip it, zip that again etc sufficiently many times, and play with the extensions, I may even be able to force the OS into an "unzipping loop", that may crash the system.


I haven't had the time to test, if a zip'ed app renamed to bin will execute automatically. That would certainly be highly disturbing. I'll also have to look for a machine, that is not needed, in case I have to make a clean reinstall of Ventura.


Regards


Jan 21, 2023 9:06 AM in response to Owl-53

I take it, that you have never, ever made a click error in a community thread. Hooray, for the perfect specimen, but then... why respond to the imperfect just to complain?


Errors can and do happen to me, a mere mortal, especially when working on a small 14 inch notebook screen, concentrating on content (but not only then; I'm well versed in errors ;-).


I'd much prefer my 27inch HDR monitor, than a tiny 14 inch screen (although quality is good). I tend not to carry the 27 inch everywhere, though. Don't know about you.


Now, there... I've answered you. Personally (I hope :-). Satisfied?

Jan 21, 2023 10:43 AM in response to steve626

We agree, that there was no harm done. In THIS specific case.


The problem is: Will that always be the case, for all zip files ending up in our machinery?


IF Apple still uses this approach, without even checking, if it makes sense before unzipping, I may not even be warned about the "less than optimal handling" of content, ending up in decoded, maybe executable form (depending on sort settings, I may not even notice the "odd addition" to the original unzip operation if I used a big 40 inch monitor in a folder with maybe hundred or so files).


THAT is my concern, and as you indicate, it may even serve a purpose (dangerous approach or not) in the OS distribution/update. This may indicate, that it is unwise to prevent/disable (by specifying a "harmless" substitute for bin handling) of this automatic behaviour, when updating the OS, if unexpected outcomes (installation problems) is to be avoided. I'm not so optimistic as to expect, that I remember to reset any modifications to default behaviour, before starting a coming update. Then what...?


Anyway, I have reported the issue through the proper channels (on advice), also received confirmation and intention of review (usually) within a week.


For all we know, the approach may be harmless, as long as it is used in the intended way by authorized personnel.


Now... there is a whole industry with billion-dollar year-on-year turnover, that looks for ways and have the means to misappropriate old approaches, that everyone has completely forgotten about.


The latter may even be the case here. Everybody unwittingly forgetting - maybe responsible person retired long ago - about a (maybe ) less than safe (in modern terms) approach working to everybody's satisfaction for years and years. No problems, no look and no update/modification of this specific approach.


Reagards


P.S. I used the bin-file as intended ; my camera was updated without hiccup. That does not equal, that the approach, the actual mechanism, implemented by Apple is sound in todays Apple environment.








Jan 21, 2023 12:20 PM in response to steve626

I'll cut it short:


The unzip of the bin file stops immediately with an error message.


This indicates, that there was no check, if the file should have been unzip'ed in the first place.


If a file is successfully unzip'ed, but not "authorized", what will happen?


Likewise, we don't know, what options are possible in connection with the unzipping of a bin-file (in reality treated as a zip file with bin extension and - to me/us - unknown content and functionality).


Ill stop this thread with this final comment:


Old corpses are usually only discovered, when they are getting smelly.


In my nearly 40 years IT career, before I retired, I’ve often used the saying about old code or installation remains, that were never revised nor modified or even removed.


No need to speculate further.


Regards


P.S. Any feedback from Apple, will have to come officially from Apple.


Jan 21, 2023 1:07 PM in response to Kurt Friis

Kurt Friis wrote:

The unzip of the bin file stops immediately with an error message.

This indicates, that there was no check, if the file should have been unzip'ed in the first place.

If a file is successfully unzip'ed, but not "authorized", what will happen?

(1) 'Cannot decompress "S5___V26.bin". The format is not supported.'

Obviously it did check and noticed an unsupported format and thus did nothing.


(2) Since it did nothing, there is nothing to fear.


(3) You can't "unzip" (I assume you mean "decompress" because a .bin file is not a zipped file) a file that not in the proper format. So even if it had tried, the result would have been gibberish.


I still don't see how any of this is a concern. This is like trying to open an Excel file with Preview. It simply doesn't work, nothing happens, it's not a concern.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Unzip bug in Ventura 13.1 on MacBook Pro 14 M1 Pro

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.