Safeguard against invalid files
ClosedPublic

Authored by astippich on Mar 27 2019, 7:58 PM.

Details

Summary

Invalid vorbis files may crash in taglib due to a dereference
on an invalid pointer. Explicitly check that the file is valid.

Diff Detail

Repository
R286 KFileMetaData
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
astippich created this revision.Mar 27 2019, 7:58 PM
Restricted Application added projects: Frameworks, Baloo. · View Herald TranscriptMar 27 2019, 7:58 PM
Restricted Application added subscribers: Baloo, kde-frameworks-devel. · View Herald Transcript
astippich requested review of this revision.Mar 27 2019, 7:58 PM

Seems like a good idea in general, and a patch for upstream to fix the crash was rejected.

ping. I would like to land this for KF 5.57 to fix crashes in the taglib extractors because of invalid files once and for all.

ngraham accepted this revision.Mar 31 2019, 2:22 PM
This revision is now accepted and ready to land.Mar 31 2019, 2:22 PM
bruns accepted this revision.Mar 31 2019, 2:29 PM
This revision was automatically updated to reflect the committed changes.