actions / runner-images

GitHub Actions runner images
MIT License
10.22k stars 3.08k forks source link

Zip Bufferoverflow in ubuntu-latest #10784

Open NikolaSivkov opened 1 month ago

NikolaSivkov commented 1 month ago

Description

I was just trying to zip our website and deploy it using ubuntu-latest when the zip command failed with the following

image

quick google pointed me to https://askubuntu.com/questions/1515086/zip-in-ubuntu-24-04-getting-buffer-overflow-if-right-single-quote-mark-present

then i downgraded the image to 22.04 and it worked as expected.

Also, this worked fine on Oct 9 when i last ran it.

Platforms affected

Runner images affected

Image version and build link

ubntu-latest

Is it regression?

yes, ubuntu-latest, no public link

Expected behavior

zip should not crash

Actual behavior

zip crashes with buffer overflow detected

Repro steps

i don't know exactly why it crashes on ubuntu-latest

RaviAkshintala commented 1 month ago

Hi @NikolaSivkov Thank you for bringing this issue to our attention. We are looking into this issue and will update you on this issue after investigating.

Prabhatkumar59 commented 1 month ago

Hi @NikolaSivkov - Requesting you to provide more information on repro steps and please provide your workaround which was failing. Thanks!

Prabhatkumar59 commented 1 month ago

Hi @NikolaSivkov- As i didn't get reply from you. Moreover, just to update you, now ubuntu latest is Ubuntu 22.04. So, as per my understanding and investigation, i can clearly see above that the zip command is crashing with a buffer overflow error on ubuntu-latest is likely related to recent changes in the zip package. For this, -I will suggest you to try to Switch to an alternative tool like 7z or tar -Also, you can downgrade the zip package to an earlier version. -you can also try by using a Docker container with Ubuntu 22.04 to perform the zipping.

Please try above and hopefully your issue will be resolved, thanks!