summaryrefslogtreecommitdiff
path: root/LICENSES/MIT.txt
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2022-12-22 04:01:20 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2023-01-16 18:32:50 +0200
commitd81505b834105ee1c879a962a2911d08b14ad5fd (patch)
treef637c0cd7968a1957fcf36388b5046a854a36c1f /LICENSES/MIT.txt
parent20e33bc0df452232378b317e46e370e25db1cc2a (diff)
libcamera: ipa_module: Relax ipaModuleInfo symbol size check
When an IPA module is loaded, the loadIPAModuleInfo() function validates the ipaModuleInfo structure. As part of that process, it checks that the ipaModuleInfo symbol size matches the expected structure size. This check breaks with clang and ASan, as the LLVM's address sanitizer implementation includes the redzone after the structure in the symbol size, currently growing it by 156 bytes (on x86-64). This causes all IPA modules to fail to load. Fix the problem by relaxing the size check to only ensure that the symbol is large enough to contain the structure. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'LICENSES/MIT.txt')
0 files changed, 0 insertions, 0 deletions