[Plugin] PAWN memory access plugin
#7

The concept of managed and unmanaged memory is not from C. Allocating managed memory in this context stores extra information such as the validity of a pointer and the size of the allocated block of memory. These information are used on calls to validate input, also on plugin unload all "managed" blocks of memory are freed back to the underlying system. Allocating unmanaged memory in this context doesn't really hold the information of the validity of a pointer, neither the size of the allocated block of memory. This concludes that the operations are faster, but they're prone to get misused by programmers, which then can mess up the working virtual memory space by using invalid pointers or overwriting blocks of memory that were not allocated, or used by different program code. Also "unmanaged" memory is not explicitly freed at plugin unload. The counterpart of MEM_new* and MEM_clone is MEM_delete, where the counterpart of MEM_UM_new* and MEM_UM_clone is MEM_UM_delete.
Reply


Messages In This Thread
PAWN memory access plugin - by BigETI - 21.11.2017, 12:38
Re: PAWN memory access plugin - by StrikerZ - 21.11.2017, 13:52
Re: PAWN memory access plugin - by IlanZ - 21.11.2017, 16:19
Re: PAWN memory access plugin - by TommyB - 21.11.2017, 16:26
Re: PAWN memory access plugin - by DimaShift - 21.11.2017, 17:02
Re: PAWN memory access plugin - by Kaperstone - 21.11.2017, 18:26
Re: PAWN memory access plugin - by BigETI - 22.11.2017, 04:53
Re: PAWN memory access plugin - by Whitetiger - 23.11.2017, 04:49
Re: PAWN memory access plugin - by BigETI - 23.11.2017, 11:44
Re: PAWN memory access plugin - by DavidZvla - 27.02.2018, 01:29
Re: PAWN memory access plugin - by iKarim - 27.02.2018, 05:02
Re: PAWN memory access plugin - by v1k1nG - 22.03.2018, 15:18
Re: PAWN memory access plugin - by Ritzy2K - 22.03.2018, 15:33
Re: PAWN memory access plugin - by v1k1nG - 22.03.2018, 15:52
Re: PAWN memory access plugin - by BigETI - 22.03.2018, 19:59
Re: PAWN memory access plugin - by Kaperstone - 23.03.2018, 15:34
Re: PAWN memory access plugin - by BigETI - 24.03.2018, 08:06
Re: PAWN memory access plugin - by Locky_ - 24.03.2018, 10:20
Re: PAWN memory access plugin - by BigETI - 24.03.2018, 12:03
Re: PAWN memory access plugin - by Gammix - 30.03.2018, 19:04
Re: PAWN memory access plugin - by BigETI - 31.03.2018, 00:24
Re: PAWN memory access plugin - by Gammix - 31.03.2018, 01:28
Re: PAWN memory access plugin - by BigETI - 01.04.2018, 19:42
Re: PAWN memory access plugin - by TommyB - 02.04.2018, 06:17
Re: PAWN memory access plugin - by Zeus666 - 16.04.2018, 19:14
Re: PAWN memory access plugin - by BigETI - 17.04.2018, 01:28
Re: PAWN memory access plugin - by JR_Junior - 11.05.2018, 01:06
Re: PAWN memory access plugin - by BigETI - 11.05.2018, 09:06
Re: PAWN memory access plugin - by JR_Junior - 11.05.2018, 15:30
Re: PAWN memory access plugin - by Kaperstone - 27.05.2018, 23:21
Re: PAWN memory access plugin - by BigETI - 28.05.2018, 14:33
Re: PAWN memory access plugin - by BigETI - 16.08.2018, 08:21
Re: PAWN memory access plugin - by RichKiez - 21.08.2018, 16:19
Re: PAWN memory access plugin - by [WSF]ThA_Devil - 21.08.2018, 17:18
Re: PAWN memory access plugin - by PGaming - 08.09.2018, 13:51
Re: PAWN memory access plugin - by Dayrion - 08.09.2018, 13:53
Re: PAWN memory access plugin - by cuber - 24.01.2020, 19:55
Re: PAWN memory access plugin - by PaulinSAMP - 16.06.2020, 21:50

Forum Jump:


Users browsing this thread: 8 Guest(s)