haiku/src/servers
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
..
app app_server & Application Kit: Fix bitmap cursor handling. 2021-12-11 21:44:59 -05:00
bluetooth servers/bluetooth: Fix scaling of deskbar icon 2021-09-06 16:22:31 +00:00
debug debug_server: make crash dialog button default 2020-01-02 13:38:08 +00:00
index Style fixes to various parts of the system. 2017-01-29 22:47:28 +01:00
input input_server: Properly implement watch_input_devices() & add documentation 2021-04-19 19:48:29 +00:00
keystore Move StripeView to libshared 2019-05-21 06:55:45 +00:00
launch launch_daemon: Do not return errors from RegisterExternalEvent. 2021-09-30 13:25:54 -04:00
mail Remove all invocations of SetSubDirSupportedPlatformsBeOSCompatible. 2019-03-30 15:19:38 -04:00
media media: fix 64-bit debug build 2019-12-21 20:33:11 +00:00
media_addon Media Kit: Fix/appease various GCC 11 warnings. 2021-11-17 18:45:35 -05:00
midi midi_server: Update copyright notice 2021-07-23 18:36:26 +00:00
mount mount_server: Connect on-demand to app_server. 2021-09-27 18:38:03 -04:00
net net_server: fix wrong type of arguments to formatting function 2021-10-19 08:03:48 +00:00
notification Fix various instances of -Wset-but-unused. 2018-11-23 18:04:38 -05:00
package Adjust all struct dirent creations (again), this time to use offsetof(). 2021-12-01 17:05:40 -05:00
power power_daemon: Use BServer and do not connect to app_server. 2021-09-27 18:35:30 -04:00
print Style, no functional changes 2017-11-16 19:47:59 +01:00
print_addon Use libstdc++, libsupc++ and libgcc from gcc_syslibs. 2014-08-13 13:32:44 +02:00
registrar Mass updating of OpenBeOS text to Haiku 2021-11-07 10:00:35 +00:00
syslog_daemon syslog_daemon: Use BServer and do not connect to app_server. 2021-09-27 18:34:45 -04:00
Jamfile cddb_daemon: renamed to cddb_lookup, moved to /src/bin. 2015-10-19 21:21:21 +02:00