• Jeffrey Lee's avatar
    Fix OS_Heap 4. Fix stack imbalance in system heap code. · 19995840
    Jeffrey Lee authored
    Detail:
      s/HeapMan - The code to check if it's safe to shrink a block by 4 bytes assumed 'addr' was the address of the block, when in reality it's just an offset. This was causing the "OK to shrink?" check to always ignore the shrink request on heaps located below the 2G limit, but fail with "heap corrupt" errors in heaps located above the 2G limit.
      s/ArthurSWIs - Fix stack imbalance causing a crash if OS_Heap returns an unexpected error in DoSysHeapOpWithExtension/ClaimSysHeapNode
    Admin:
      Tested in Iyonix ROM softload
      Testbed didn't pick up heap shrink bug due to the sanity checks it performs not being vigorous enough.
    
    
    Version 5.35, 4.79.2.130. Tagged as 'Kernel-5_35-4_79_2_130'
    19995840
HeapMan 57.9 KB