23 lines
923 B
Diff
23 lines
923 B
Diff
|
|
# HG changeset patch
|
||
|
|
# User Molly Howell <mhowell@mozilla.com>
|
||
|
|
# Date 1595024754 0
|
||
|
|
# Fri Jul 17 22:25:54 2020 +0000
|
||
|
|
# Node ID b79b6cc78248eea7fda10bfb76aa273c19c9fa65
|
||
|
|
# Parent 0c0f777161a9499dd149853ff62d356f75d16c2a
|
||
|
|
Bug 1653371 - Don't used a signed type for a length parameter. r=bytesized
|
||
|
|
|
||
|
|
Differential Revision: https://phabricator.services.mozilla.com/D84031
|
||
|
|
|
||
|
|
diff -r 0c0f777161a9 -r b79b6cc78248 modules/libmar/src/mar_read.c
|
||
|
|
--- a/modules/libmar/src/mar_read.c Sat Jul 18 02:57:28 2020 +0300
|
||
|
|
+++ b/modules/libmar/src/mar_read.c Fri Jul 17 22:25:54 2020 +0000
|
||
|
|
@@ -26,7 +26,7 @@
|
||
|
|
return CityHash64(name, strlen(name)) % TABLESIZE;
|
||
|
|
}
|
||
|
|
|
||
|
|
-static int mar_insert_item(MarFile* mar, const char* name, int namelen,
|
||
|
|
+static int mar_insert_item(MarFile* mar, const char* name, uint32_t namelen,
|
||
|
|
uint32_t offset, uint32_t length, uint32_t flags) {
|
||
|
|
MarItem *item, *root;
|
||
|
|
uint32_t hash;
|