D25937: pic: Fix Invalid-enum-value undefined behaviour

Albert Astals Cid noreply at phabricator.kde.org
Thu Dec 12 22:28:58 GMT 2019


aacid created this revision.
Herald added a project: Frameworks.
Herald added a subscriber: kde-frameworks-devel.
aacid requested review of this revision.

REVISION SUMMARY
  Instead of directly casting the quint8 to PicChannelEncoding we just store the quint8
  and compare it to the possible PicChannelEncoding values when needed
  
  oss-fuzz/19344

REPOSITORY
  R287 KImageFormats

BRANCH
  master

REVISION DETAIL
  https://phabricator.kde.org/D25937

AFFECTED FILES
  src/imageformats/pic.cpp
  src/imageformats/pic_p.h

To: aacid
Cc: kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20191212/12d4f220/attachment.html>


More information about the Kde-frameworks-devel mailing list