# Facebook Photo Uploader 4.x
# CVE-NOMATCH

import logging

log = logging.getLogger("Thug")


def SetExtractIptc(self, val):
    self.__dict__['ExtractIptc'] = val

    if len(val) > 255:
        log.ThugLogging.log_exploit_event(self._window.url,
                                          "FaceBook Photo Uploader ActiveX",
                                          "Overflow in ExtractIptc property")
        log.ThugLogging.Shellcode.check_shellcode(val)


def SetExtractExif(self, val):
    self.__dict__['ExtractExif'] = val

    if len(val) > 255:
        log.ThugLogging.log_exploit_event(self._window.url,
                                          "FaceBook Photo Uploader ActiveX",
                                          "Overflow in ExtractExif property")
        log.ThugLogging.Shellcode.check_shellcode(val)
