1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-20 14:03:59 +03:00
Pavel Filipenský c75b08c0d6 s3:g_lock: Do not let pointers to point outside the input buffer
If num_shared == 0 the shared points at the address outside the buf.
Make it NULL instead.

(gdb) p *lck
$33 = {
  exclusive = {
    pid = 1187098,
    task_id = 0,
    vnn = 4294967295,
    unique_id = 7349874180613937639
  },
  num_shared = 0,
  shared = 0x555555646980 "@kdUUU",
  unique_lock_epoch = 1489043017590848833,
  unique_data_epoch = 11232048132975083808,
  datalen = 0,
  data = 0x555555646980 "@kdUUU"
}

Same for datalen & data.

Signed-off-by: Pavel Filipenský <pfilipensky@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>

Autobuild-User(master): Pavel Filipensky <pfilipensky@samba.org>
Autobuild-Date(master): Sat Oct  5 14:44:46 UTC 2024 on atb-devel-224
2024-10-05 14:44:46 +00:00
..
2024-03-22 06:07:42 +00:00
2023-08-08 04:39:37 +00:00
2023-11-20 15:37:33 +00:00
2022-10-27 18:18:36 +00:00
2018-07-24 20:36:49 +02:00
2023-07-13 05:41:36 +00:00
2022-10-27 18:18:36 +00:00
2022-10-27 18:18:36 +00:00
2024-03-28 08:05:35 +00:00
2017-05-10 15:53:20 +02:00
2019-02-28 13:53:40 +00:00
2023-07-13 05:41:36 +00:00
2017-02-15 02:28:16 +01:00
2024-09-20 17:13:37 +00:00
2017-01-22 18:30:11 +01:00
2023-07-13 05:41:36 +00:00
2023-07-13 05:41:36 +00:00
2015-10-13 01:23:07 +02:00
2024-07-17 08:49:46 +00:00
2020-01-19 18:29:39 +00:00
2023-07-13 05:41:36 +00:00
2023-07-13 05:41:36 +00:00
2023-07-13 05:41:36 +00:00
2019-02-17 13:33:13 +01:00
2023-12-19 16:05:36 +00:00
2024-04-16 23:51:45 +00:00
2015-03-17 11:30:52 +01:00
2017-01-22 18:30:11 +01:00
2023-07-13 05:41:36 +00:00
2024-04-23 23:50:34 +00:00
2023-07-13 05:41:36 +00:00
2024-08-06 16:29:33 +00:00
2023-07-13 05:41:36 +00:00
2016-12-28 20:17:12 +01:00
2023-07-13 05:41:36 +00:00
2021-09-21 00:13:32 +00:00
2024-07-04 15:26:36 +00:00
2016-01-10 22:24:17 +01:00
2016-01-10 22:24:17 +01:00
2016-12-28 20:17:13 +01:00
2018-12-20 23:40:25 +01:00