1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00
JUCE/modules
reuk eb8a419ac7
TooltipWindow: Avoid potential use-after-free of lastComponentUnderMouse
Showing the tip will in turn call getDesktopScaleFactor(), accessing the
lastComponentUnderMouse. In some cases, it was possible for
lastComponentUnderMouse to point to a deleted component, resulting in
UB.

There are two changes in this PR:
- Using a SafePointer rather than a raw pointer ensures that calls to
  getDesktopScaleFactor() will always be safe, regardless of when they
  happen.
- Moving the assignment of lastComponentUnderMouse to before the call to
  displayTipInternal() ensures that the returned scale factor is that of
  the component that the mouse is currently hovering.
2022-02-18 16:43:26 +00:00
..
juce_analytics Bump version number to 6.1.5 2022-01-26 13:00:05 +00:00
juce_audio_basics MidiFile: Fix typo 2022-02-18 16:43:25 +00:00
juce_audio_devices CoreAudio: Ensure devices are restarted correctly after changing sample rate 2022-02-17 16:04:58 +00:00
juce_audio_formats WavAudioFormat: Disambiguate ISRC and source information 2022-02-18 16:43:26 +00:00
juce_audio_plugin_client AudioProcessorEditorHostContext: Fix naming of getContextMenuForParameter 2022-02-18 16:43:25 +00:00
juce_audio_processors AU Wrapper: Ensure that correct input channels are cleared before processing 2022-02-18 16:43:26 +00:00
juce_audio_utils Bump version number to 6.1.5 2022-01-26 13:00:05 +00:00
juce_box2d Bump version number to 6.1.5 2022-01-26 13:00:05 +00:00
juce_core Windows: Fix non-C++14-compatible noexcept usage in mapi.h 2022-02-17 16:04:58 +00:00
juce_cryptography Bump version number to 6.1.5 2022-01-26 13:00:05 +00:00
juce_data_structures Bump version number to 6.1.5 2022-01-26 13:00:05 +00:00
juce_dsp ProcessContextNonReplacing: Fix typo 2022-02-18 16:43:24 +00:00
juce_events AsyncUpdater: Cancel updates in derived class destructors 2022-02-18 16:43:25 +00:00
juce_graphics Fonts: Fix Xcode 13 build issue 2022-02-08 17:48:24 +00:00
juce_gui_basics TooltipWindow: Avoid potential use-after-free of lastComponentUnderMouse 2022-02-18 16:43:26 +00:00
juce_gui_extra NSViewFrameWatcher: Extract from NSViewComponent implementation 2022-02-18 16:43:25 +00:00
juce_opengl OpenGL: Avoid races on viewportArea and scale data members 2022-01-27 18:43:22 +00:00
juce_osc Bump version number to 6.1.5 2022-01-26 13:00:05 +00:00
juce_product_unlocking Bump version number to 6.1.5 2022-01-26 13:00:05 +00:00
juce_video Bump version number to 6.1.5 2022-01-26 13:00:05 +00:00
CMakeLists.txt BLOCKS: Remove juce_blocks_basics module 2021-05-19 16:53:01 +01:00