~unity-team/unity-control-center/x-sru3

Viewing all changes in revision 12863.

  • Committer: Marco Trevisan (Treviño)
  • Author(s): Trent Lloyd
  • Date: 2016-06-12 12:50:32 UTC
  • Revision ID: mail@3v1n0.net-20160612125032-aimwov2tfvjj2q4w
Fix crash when application supports no mime-type

Both Firefox and Chrome have been seen setting themselves as the
default handler for x-scheme-handler/http without actually handling
any mime-types, causing a NULL pointer crash when attempting to
iterate the list.

Check for NULL condition using patch from upstream commit
d9f08df39cafbd1f15c510da444f8ac913cdc493 ()

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: