wine/dlls/jscript
Eric Pouech 4bdf92cb7f jscript: Fix GCC 12.2 warning.
When initializing a jsstr_inline_t with a len < 3, the size passed
for the allocation is smaller then the size of the structure
(as the later is rounded up to the alignment = 4 bytes).

GCC 12.2 complains about this when dereferencing the pointer to
the structure as the size passed for allocation is smaller than the
size of the structure.

The warning is fixed by using flexible array member in
jsstr_inline_t. Given the rounding behavior in memory allocation, this
should not change the size of allocated blocks.

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-09-19 20:10:36 +02:00
..
tests jscript: Implement fdexNameCaseInsensitive flag handling. 2022-08-17 19:21:00 +02:00
activex.c
array.c
bool.c
cc_parser.y
compile.c
date.c
decode.c
dispex.c jscript: Implement fdexNameCaseInsensitive flag handling. 2022-08-17 19:21:00 +02:00
engine.c
engine.h
enumerator.c
error.c
function.c jscript: Don't allow construction on builtin methods. 2022-06-03 21:55:17 +02:00
global.c
jscript.c jscript: Return ParseProcedureText when compile fails. 2022-07-20 22:33:44 +02:00
jscript.h jscript: Release all globals when the script is uninitialized. 2022-06-03 21:55:17 +02:00
jscript.rc
jscript.rgs
jscript.spec
jscript_classes.idl
jscript_main.c
jsglobal.idl
jsglobal_dispid.h
json.c
jsregexp.c
jsstr.c
jsstr.h jscript: Fix GCC 12.2 warning. 2022-09-19 20:10:36 +02:00
jsutils.c jscript: Forward actual error in to_primitive if it's not just missing prop. 2022-06-03 21:55:17 +02:00
jsval.h
lex.c
Makefile.in
math.c
number.c
object.c
parser.h
parser.y
regexp.c
regexp.h
resource.h
set.c jscript: Correctly handle deleted entries in iterate_map. 2022-06-07 19:37:11 +02:00
string.c
vbarray.c