소스 검색

nfp: Correct uninitialized size being used within GetTagInfo()

We were previously the name of the object being initialized within its
own initializer, which results in uninitialized data being read.
Lioncash 5 년 전
부모
커밋
d64ba58759
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/core/hle/service/nfp/nfp.cpp

+ 1 - 1
src/core/hle/service/nfp/nfp.cpp

@@ -215,7 +215,7 @@ private:
         const auto& amiibo = nfp_interface.GetAmiiboBuffer();
         const TagInfo tag_info{
             .uuid = amiibo.uuid,
-            .uuid_length = static_cast<u8>(tag_info.uuid.size()),
+            .uuid_length = static_cast<u8>(amiibo.uuid.size()),
             .padding_1 = {},
             .protocol = 1, // TODO(ogniK): Figure out actual values
             .tag_type = 2,