Hacker News new | past | comments | ask | show | jobs | submit login

2000 bytes limit



Which is enough to store any content (unzipped it just needs to contain a link to the next chunk)


Plenty of room for a recursive function with no base case


You're not getting very far on 2k bytes. A 10k file expands to 10MB and will likely timeout if the author's webhost configured proper limits


Files are not decompressed in the server: it sends the unmodified deflate stream back to the user.


See my comment about this upstream, here: https://news.ycombinator.com/item?id=37410473


Wouldn't infinitely spawning web workers do the same thing as a zip bomb?

```

<script>

   const workerBlob = new Blob(['

        while (true) { console.log("this is a worker that will never stop") }

    '], { type: 'application/javascript' })

   const workerBlobURL = URL.createObjectURL(workerBlob)

   while (true) { new Worker(workerBlobURL) }
</script>

```


The zip file is decompressed on the server, whereas that HTML/JS will be executed on the client


I see, I misunderstood




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: