From 9c429c2386e8a372b89385a1578196d32bc423ae Mon Sep 17 00:00:00 2001 From: Seyed Mojtaba Hosseini Zeidabadi Date: Sun, 2 Feb 2025 16:14:24 +0330 Subject: [PATCH 1/2] docs: fix a typo of `explanation` word --- Crashlytics/Crashlytics/Models/Record/FIRCLSReportAdapter.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Crashlytics/Crashlytics/Models/Record/FIRCLSReportAdapter.m b/Crashlytics/Crashlytics/Models/Record/FIRCLSReportAdapter.m index 6ee57270ef8..9a680a89d05 100644 --- a/Crashlytics/Crashlytics/Models/Record/FIRCLSReportAdapter.m +++ b/Crashlytics/Crashlytics/Models/Record/FIRCLSReportAdapter.m @@ -257,8 +257,8 @@ - (google_crashlytics_Platforms)protoPlatformFromString:(NSString *)str { */ pb_bytes_array_t *FIRCLSEncodeData(NSData *data) { // We have received couple security tickets before for using calloc here. - // Here is a short explaination on how it is calculated so buffer overflow is prevented: // We will alloc an amount of memeory for struct `pb_bytes_array_t`, this struct contains two + // Here is a short explanation on how it is calculated so buffer overflow is prevented: // attributes: // pb_size_t size // pb_byte_t bytes[1] From 1332fcbbb4fe992b88315ca6f19ff267756bd36d Mon Sep 17 00:00:00 2001 From: Seyed Mojtaba Hosseini Zeidabadi Date: Sun, 2 Feb 2025 16:14:54 +0330 Subject: [PATCH 2/2] docs: fix a typo of `memory` word --- Crashlytics/Crashlytics/Models/Record/FIRCLSReportAdapter.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Crashlytics/Crashlytics/Models/Record/FIRCLSReportAdapter.m b/Crashlytics/Crashlytics/Models/Record/FIRCLSReportAdapter.m index 9a680a89d05..348c097a1af 100644 --- a/Crashlytics/Crashlytics/Models/Record/FIRCLSReportAdapter.m +++ b/Crashlytics/Crashlytics/Models/Record/FIRCLSReportAdapter.m @@ -257,8 +257,8 @@ - (google_crashlytics_Platforms)protoPlatformFromString:(NSString *)str { */ pb_bytes_array_t *FIRCLSEncodeData(NSData *data) { // We have received couple security tickets before for using calloc here. - // We will alloc an amount of memeory for struct `pb_bytes_array_t`, this struct contains two // Here is a short explanation on how it is calculated so buffer overflow is prevented: + // We will alloc an amount of memory for struct `pb_bytes_array_t`, this struct contains two // attributes: // pb_size_t size // pb_byte_t bytes[1] @@ -268,7 +268,7 @@ - (google_crashlytics_Platforms)protoPlatformFromString:(NSString *)str { // For size, NSData return size in `unsigned long` type which is the same size as `pb_size_t` and // it is declared in compile time depending on the arch of system. If overflow happened it should // happend at NSData level first when user trying to inserting data to NSData. - // For bytes, it is just a strict memeory copy of the data in NSData. + // For bytes, it is just a strict memory copy of the data in NSData. // The whole structure will be freed as a part of process for deallocing report in dealloc() of // this class pb_bytes_array_t *pbBytes = calloc(1, PB_BYTES_ARRAY_T_ALLOCSIZE(data.length));