https://bugs.kde.org/show_bug.cgi?id=481702

--- Comment #8 from Méven <[email protected]> ---
(In reply to René Paw Christensen from comment #6)
> Méven Car @meven, I saw that Nate Graham @ngraham asked:
> 
> > What if there really is a config file that's greater than 1 MiB in size? 
> > Wouldn't this completely break the app that tries to load it?
> 
> Could you for instance do something like this:
> 
> if ( `.desktop` file is < then for instance 1 mb in size )
>     process it as normal.
> else if ( BOM indicates a text file using a supported encoding (UTF-8 etc.)
> ) 
>     process it as normal

A 50 MB text file is still an issue then.

> else
>     treat is as a non `.desktop` file, and ignore
> 
> I know that still leaves the possibility for a large text file without Byte
> Order Mark not being processed.
> Just a suggestion.

You can look at the merge request to make suggestion or learn about the
context.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to