From: Dmitry Volyntsev Date: Fri, 27 Dec 2019 16:17:26 +0000 (+0300) Subject: Fixed "length" may be uninitialized in njs_typed_array_constructor(). X-Git-Tag: 0.3.8~16 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=96db2279b8edfb7b308bcbf527e171af0650ab31;p=njs.git Fixed "length" may be uninitialized in njs_typed_array_constructor(). Found by Clang static analyzer. --- 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;