skyjake / lagrange

A Beautiful Gemini Client
https://gmi.skyjake.fi/lagrange/
BSD 2-Clause "Simplified" License
1.16k stars 62 forks source link

Opening file:///dev/zero results in memory getting eaten up #641

Open MistressRemilia opened 7 months ago

MistressRemilia commented 7 months ago

I accidentally opened file:///dev/zero the other day and found my memory was totally eaten at very high speed, causing Lagrange to totally lock and requiring me to killall -s9 lagrange in a terminal. Maybe a few rules for special files should be in place to keep from opening them by accident?

skyjake commented 7 months ago

Yes, some of these special files like /dev/zero should be treated as a special case. There could also be some limit on the maximum viewable file size.