From 96db2279b8edfb7b308bcbf527e171af0650ab31 Mon Sep 17 00:00:00 2001 From: Dmitry Volyntsev Date: Fri, 27 Dec 2019 19:17:26 +0300 Subject: [PATCH] Fixed "length" may be uninitialized in njs_typed_array_constructor(). Found by Clang static analyzer. --- src/njs_typed_array.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/njs_typed_array.c b/src/njs_typed_array.c index 6c35ea11..9d4c482c 100644 --- a/src/njs_typed_array.c +++ b/src/njs_typed_array.c @@ -23,6 +23,7 @@ njs_typed_array_constructor(njs_vm_t *vm, njs_value_t *args, njs_uint_t nargs, njs_array_buffer_t *buffer; size = 0; + length = 0; offset = 0; buffer = NULL; -- 2.47.3