diff options
| author | 2021-02-09 17:41:59 -0500 | |
|---|---|---|
| committer | 2021-02-09 17:42:02 -0500 | |
| commit | d64ba587599d8086d82b01a8827d5839f3e3a902 (patch) | |
| tree | bd22454cf0cd26ce3ec047e2216cf3b1f5022121 /src | |
| parent | Merge pull request #5339 from german77/interactive (diff) | |
| download | yuzu-d64ba587599d8086d82b01a8827d5839f3e3a902.tar.gz yuzu-d64ba587599d8086d82b01a8827d5839f3e3a902.tar.xz yuzu-d64ba587599d8086d82b01a8827d5839f3e3a902.zip | |
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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/service/nfp/nfp.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/service/nfp/nfp.cpp b/src/core/hle/service/nfp/nfp.cpp index 5d6d25696..2d1d4d67f 100644 --- a/src/core/hle/service/nfp/nfp.cpp +++ b/src/core/hle/service/nfp/nfp.cpp | |||
| @@ -215,7 +215,7 @@ private: | |||
| 215 | const auto& amiibo = nfp_interface.GetAmiiboBuffer(); | 215 | const auto& amiibo = nfp_interface.GetAmiiboBuffer(); |
| 216 | const TagInfo tag_info{ | 216 | const TagInfo tag_info{ |
| 217 | .uuid = amiibo.uuid, | 217 | .uuid = amiibo.uuid, |
| 218 | .uuid_length = static_cast<u8>(tag_info.uuid.size()), | 218 | .uuid_length = static_cast<u8>(amiibo.uuid.size()), |
| 219 | .padding_1 = {}, | 219 | .padding_1 = {}, |
| 220 | .protocol = 1, // TODO(ogniK): Figure out actual values | 220 | .protocol = 1, // TODO(ogniK): Figure out actual values |
| 221 | .tag_type = 2, | 221 | .tag_type = 2, |