1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00
JUCE/modules/juce_gui_basics/native
reuk 0223e44ae7
Image: Keep track of contiguous buffer size to avoid heap buffer overflows
In CoreGraphicsPixelData::createImage, image data was copied from a
BitmapData created from the Image passed into the function.

The BitmapData instance didn't keep track of the size of the buffer it
pointed to, so the buffer size was computed by multiplying the
BitmapData height by its line stride. However, if the BitmapData pointed
to a subsection of an image, the `data` pointer might be offset from
the allocated region, and `data + lineStride * height` would point past
the end of the allocated region. Trying to read/copy this range would
cause a heap buffer overflow at the end of the range.

This change adjusts BitmapData so that it keeps track of the size of the
allocated region. Taking a subsection of an image should subtract the
data pointer offset from the size of the allocated region.
2022-02-23 10:56:09 +00:00
..
accessibility Windows Accessibility: Fix single-character range/boundary calculation 2022-02-18 16:43:26 +00:00
java/app/com/rmsl/juce Accessbility: Improve support for touch-to-explore on Android 2022-01-17 10:58:17 +00:00
javaopt/app/com/rmsl/juce Updated all license headers 2020-06-29 08:30:22 +01:00
x11 Image: Keep track of contiguous buffer size to avoid heap buffer overflows 2022-02-23 10:56:09 +00:00
juce_android_ContentSharer.cpp Use C++14 lambda capture initialisers for initialising deletion checkers 2021-07-12 11:58:29 +01:00
juce_android_FileChooser.cpp Use C++14 lambda capture initialisers for initialising deletion checkers 2021-07-12 11:58:29 +01:00
juce_android_Windowing.cpp Image: Keep track of contiguous buffer size to avoid heap buffer overflows 2022-02-23 10:56:09 +00:00
juce_common_MimeTypes.cpp Fix some typos 2022-01-25 11:48:46 +00:00
juce_ios_ContentSharer.cpp ObjC Helpers: Automatically derive appropriate signature for function 2021-11-24 11:51:11 +00:00
juce_ios_FileChooser.mm FileChooser: Find an appropriate peer to focus when the FileChooser is destroyed 2022-01-10 22:15:20 +00:00
juce_ios_UIViewComponentPeer.mm MouseInputSource: Eliminate superfluous drag events caused by pressure change 2022-02-15 10:53:32 +00:00
juce_ios_Windowing.mm iOS: Fix native message box leak when no callback is provided 2021-12-07 16:25:22 +00:00
juce_linux_FileChooser.cpp FileChooser: In Linux FileChoosers, prefer to open files rather than directories if both are requested 2021-09-27 12:48:59 +01:00
juce_linux_Windowing.cpp Linux: Fix restoreWindowFromStateString() when the peer already exists 2022-02-02 19:53:31 +01:00
juce_mac_FileChooser.mm FileChooser: Fix function signature for Obj-C interop 2021-12-07 18:18:52 +00:00
juce_mac_MainMenu.mm ObjC Helpers: Automatically derive appropriate signature for function 2021-11-24 11:51:11 +00:00
juce_mac_MouseCursor.mm ScaledImage: Use in a few more places 2021-12-01 15:44:07 +00:00
juce_mac_NSViewComponentPeer.mm MouseInputSource: Eliminate superfluous drag events caused by pressure change 2022-02-15 10:53:32 +00:00
juce_mac_Windowing.mm NativeMessageBox: Use associatedComponent on macOS 2022-02-18 16:43:26 +00:00
juce_MultiTouchMapper.h Updated all license headers 2020-06-29 08:30:22 +01:00
juce_ScopedDPIAwarenessDisabler.h ScopedDPIAwarenessDisabler: Move to juce_gui_basics 2021-09-28 11:31:50 +01:00
juce_win32_DragAndDrop.cpp Windows: Fix and suppress some analysis warnings 2021-05-26 15:34:26 +01:00
juce_win32_FileChooser.cpp MinGW: Improve compatibility 2022-01-17 10:58:18 +00:00
juce_win32_ScopedThreadDPIAwarenessSetter.h Windows: Added ScopedThreadDPIAwarenessSetter for correctly setting and resetting thread DPI-awareness for methods which interact with an HWND and removed some DPI workarounds 2021-03-02 15:56:10 +00:00
juce_win32_Windowing.cpp Image: Keep track of contiguous buffer size to avoid heap buffer overflows 2022-02-23 10:56:09 +00:00