ASR_BASE
Change-Id: Icf3719cc0afe3eeb3edc7fa80a2eb5199ca9dda1
diff --git a/external/subpack/utils/quota/patches/020-remove-reallocarray.patch b/external/subpack/utils/quota/patches/020-remove-reallocarray.patch
new file mode 100644
index 0000000..75c7a5d
--- /dev/null
+++ b/external/subpack/utils/quota/patches/020-remove-reallocarray.patch
@@ -0,0 +1,11 @@
+--- a/quota.c
++++ b/quota.c
+@@ -385,7 +385,7 @@ int main(int argc, char **argv)
+ break;
+ case 259:
+ fscount++;
+- fsnames = reallocarray(fsnames, fscount, sizeof(char *));
++ fsnames = realloc(fsnames, fscount * sizeof(char *));
+ if (!fsnames)
+ die(1, _("Not enough memory for filesystem names"));
+ fsnames[fscount - 1] = optarg;