mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-11 09:18:40 +12:00
cellSave fix plus bugfixes (#2631)
* cellSave fix plus bugfixes allows allocation of last byte in memory block prevents rpcs3 from crashing when closing non existent socket * Fix overflow * add more socket options fix typo prevent sys_net from operating on nullptr sockets
This commit is contained in:
parent
1ae334e500
commit
22e679e23e
3 changed files with 86 additions and 1 deletions
|
@ -621,7 +621,7 @@ namespace vm
|
|||
size = ::align(size, 4096);
|
||||
|
||||
// return if addr or size is invalid
|
||||
if (!size || size > this->size || addr < this->addr || addr + size - 1 >= this->addr + this->size - 1)
|
||||
if (!size || size > this->size || addr < this->addr || addr + size - 1 > this->addr + this->size - 1)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue