Merge pull request #12221 from nick0ve/fix-gc-memcard-heap-overflow Fix heap buffer overflow in GCMemcardRaw