ncm: hot take, uninitialized data bad
This commit is contained in:
@@ -28,7 +28,7 @@ namespace ams::ncm {
|
||||
char m_mount_name[fs::MountNameLengthMax + 1];
|
||||
bool m_disabled;
|
||||
protected:
|
||||
ContentMetaDatabaseImplBase(ContentMetaKeyValueStore *kvs) : m_kvs(kvs), m_disabled(false) { /* ... */ }
|
||||
ContentMetaDatabaseImplBase(ContentMetaKeyValueStore *kvs) : m_kvs(kvs), m_mount_name(), m_disabled(false) { /* ... */ }
|
||||
|
||||
ContentMetaDatabaseImplBase(ContentMetaKeyValueStore *kvs, const char *mount_name) : ContentMetaDatabaseImplBase(kvs) {
|
||||
std::strcpy(m_mount_name, mount_name);
|
||||
|
||||
@@ -26,7 +26,7 @@ namespace ams::ncm {
|
||||
MakeContentPathFunction m_make_content_path_func;
|
||||
bool m_disabled;
|
||||
protected:
|
||||
ContentStorageImplBase() : m_make_content_path_func(), m_disabled(false) { /* ... */ }
|
||||
ContentStorageImplBase() : m_root_path(), m_make_content_path_func(), m_disabled(false) { /* ... */ }
|
||||
protected:
|
||||
/* Helpers. */
|
||||
Result EnsureEnabled() const {
|
||||
|
||||
@@ -42,7 +42,7 @@ namespace ams::ncm {
|
||||
CacheEntry *FindInCache(PlaceHolderId placeholder_id);
|
||||
CacheEntry *GetFreeEntry();;
|
||||
public:
|
||||
PlaceHolderAccessor() : m_cur_counter(0), m_cache_mutex(), m_delay_flush(false) {
|
||||
PlaceHolderAccessor() : m_root_path(nullptr), m_cur_counter(0), m_cache_mutex(), m_make_placeholder_path_func(nullptr), m_delay_flush(false) {
|
||||
for (size_t i = 0; i < MaxCacheEntries; i++) {
|
||||
m_caches[i].id = InvalidPlaceHolderId;
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ namespace ams::ncm {
|
||||
}
|
||||
};
|
||||
|
||||
SubmissionPackageInstallTask::SubmissionPackageInstallTask() { /* ... */ }
|
||||
SubmissionPackageInstallTask::SubmissionPackageInstallTask() : m_impl(nullptr) { /* ... */ }
|
||||
SubmissionPackageInstallTask::~SubmissionPackageInstallTask() { /* ... */ }
|
||||
|
||||
Result SubmissionPackageInstallTask::Initialize(fs::FileHandle file, StorageId storage_id, void *buffer, size_t buffer_size, bool ignore_ticket) {
|
||||
|
||||
Reference in New Issue
Block a user