haiku/src/kits/app
Augustin Cavalier 0cdb323800 app_server & Application Kit: Fix bitmap cursor handling.
Using a memcpy here is supremely dangerous, because we are writing to
an app_server buffer that we chose the length for, but using a size
that came from the client. And, indeed, because the buffer can contain
padding if the BBitmap was allocated with a non-standard BytesPerRow,
we will overflow the buffer and corrupt memory, causing app_server to crash.

So, instead, reorganize parameters a bit, and pass BytesPerRow along
with the other data needed to instantiate the bitmap, and then use
ImportBits.

Fixes an app_server crash I triggered with the experimental libX11
compatibility layer.
2021-12-11 21:44:59 -05:00
..
AppDefs.cpp
AppMisc.cpp Implement is_app_showing_modal_window() 2019-08-03 00:41:10 +00:00
AppServerLink.cpp assigned names to "some BLocker"s to aid debugging 2005-11-04 16:54:21 +00:00
Application.cpp kits: Only export private dummy copy constructors for R5 ABI. 2019-07-04 15:24:23 -04:00
Clipboard.cpp BClipboard::{Start,Stop}Watching(): Return an error if the passed in messenger 2011-07-10 13:09:15 +00:00
Cursor.cpp app_server & Application Kit: Fix bitmap cursor handling. 2021-12-11 21:44:59 -05:00
DesktopLink.cpp * Added private methods get_app_server_port() (that stores the server port, 2009-12-01 07:53:09 +00:00
DirectMessageTarget.cpp Implemented direct message passing for local targets; this fixes a deadlock 2007-01-26 13:59:56 +00:00
Handler.cpp kits: Only export private dummy copy constructors for R5 ABI. 2019-07-04 15:24:23 -04:00
InitTerminateLibBe.cpp headers/kernel: Include declarations of initialization functions in image.h. 2019-02-01 20:30:39 -05:00
Invoker.cpp * style adjustments - no functional change 2010-08-17 16:47:14 +00:00
Jamfile libroot: added ability to communicate with the launch_daemon. 2015-07-22 20:40:42 +02:00
Key.cpp Initialize the BKey to default values and set fCreationTime. 2013-03-05 11:04:29 -05:00
KeyStore.cpp Launch the keystore_server on demand from BKeyStore. 2013-04-02 01:15:29 +02:00
LaunchRoster.cpp launch_daemon: Added basic logging facility 2018-04-25 10:10:43 +02:00
LinkReceiver.cpp app_server: Fix for LinkReciever. 2016-01-04 13:37:33 -05:00
LinkSender.cpp Cleanup of previous work: whether or not we're talking to app_server is already determined at time of port assignment. As such we don't need to cache or care about that, but rather just cache the target team instead of looking it up from the port info every time. 2010-02-28 23:25:23 +00:00
Looper.cpp BLooper: implement scripting 2020-06-24 14:08:28 +00:00
LooperList.cpp BLooperList: reset list contents after fork. 2015-06-12 10:43:19 +02:00
Message.cpp BMessage: fix typos 2021-04-24 12:55:17 +02:00
MessageAdapter.cpp BMessage: implemented KMessage reply. 2015-05-13 23:06:51 +02:00
MessageFilter.cpp App Kit: style changes. 2014-06-11 16:24:02 -04:00
MessageQueue.cpp App Kit: style changes. 2014-06-11 16:24:02 -04:00
MessageRunner.cpp kits: Only export private dummy copy constructors for R5 ABI. 2019-07-04 15:24:23 -04:00
MessageUtils.cpp AppKit: BMessage Add/Find/Get/Has/ReplaceNodeRef 2020-09-10 17:18:09 +00:00
Messenger.cpp Messenger: style fix. 2019-07-08 18:53:48 +00:00
Notification.cpp HaikuBook: Initial documentation for BNotification 2020-03-02 22:10:04 +00:00
PortLink.cpp Remove unused PortLinkRef again. 2010-08-17 23:27:22 +00:00
PropertyInfo.cpp Style fixes to BPeropertyInfo class 2016-04-27 11:10:34 -07:00
RegistrarDefs.cpp registrar: implemented auth port via launch_daemon. 2015-07-22 20:41:01 +02:00
Roster.cpp RosterPrivate: add IsShutDownInProgress() 2019-12-21 20:32:31 +00:00
RosterPrivate.cpp BRoster::Private::SendTo() cannot be used in registrar. 2015-07-22 20:40:20 +02:00
Server.cpp The beginnings of a launch_daemon for Haiku. 2015-07-22 20:39:47 +02:00
ServerLink.cpp Remove variable length arrays of non-PODs. 2014-01-10 22:31:50 +01:00
ServerMemoryAllocator.cpp Application Kit: Add B_CLONEABLE_AREA permission to cloned server areas. 2019-08-11 15:27:51 -04:00
TokenSpace.cpp Change instances of wether in comments to whether. No functional change intended. 2011-12-12 14:41:49 -05:00
TypeConstants.cpp Cleanup! 2006-01-03 09:23:08 +00:00
link_message.h Almost rewrote LinkMsgSender; it's now much cleaner and works better: 2005-06-07 22:36:03 +00:00