Michael Fabian 'Xaymar' Dirks 77f1b05d28 libobs: Fix corrupted pointers when removing properties
When obs_properties_remove_by_name is called on any obs_properties_t*,
it corrupts the pointers for first_property and last which end up
pointing at either unallocated memory or randomly into the heap memory.
Neither of these is a good thing, and it usually leads to rapid
unscheduled program behavior, also known as crashing and security
issues.

This fixes the issue by first checking if the pointer stored in
props->last is identical to &cur->next, then checking if we are the
only element (cur is also prev element), and if we are then the pointer
is fixed to point back at props->first_property. Additionally fixes
props->first_property which was never updated either.
2019-12-22 08:35:27 +01:00
..
2019-06-23 23:49:10 -07:00
2019-06-23 23:49:10 -07:00
2019-06-23 23:49:10 -07:00
2019-12-10 00:06:27 -08:00
2019-06-23 23:49:10 -07:00
2019-06-23 23:49:10 -07:00
2019-06-23 23:49:10 -07:00
2019-06-23 23:49:10 -07:00
2019-06-23 23:49:10 -07:00
2019-06-23 23:49:10 -07:00
2019-08-21 15:19:19 -07:00
2019-07-12 11:48:41 -07:00
2019-06-23 23:49:10 -07:00
2019-06-23 23:49:10 -07:00
2019-10-14 17:19:38 -07:00
2019-11-24 20:50:42 -08:00
2019-10-14 17:19:38 -07:00
2019-06-23 23:49:10 -07:00
2019-11-24 09:46:41 -08:00
2019-11-24 20:50:42 -08:00
2019-06-23 23:49:10 -07:00