tinywrkb
e036356f70
dist-files/Makefile.sharedlibrary: link against libm
Closes #2464 .
3 years ago
Sami Vaarala
729041f2cb
Add DJGPP platform support
* Add DUK_F_DJGPP.h.in to detect and provide DJGPP convenience defines.
* Add a separate platform for MSDOS, now supporting DJGPP only.
* Add DJGPP identification to compiler_gcc.h.in.
3 years ago
Sami Vaarala
85de1b9d5d
Bump DUK_VERSION to 2.7.99
3 years ago
Sami Vaarala
03d4d728f8
Bump LICENSE year range
3 years ago
Sami Vaarala
5945249a5d
Bump DUK_VERSION to 2.7.0
3 years ago
Sami Vaarala
204607ab72
Misc fixes for v2-maintenance
* Disable emcc tests, latest emcc creates incompatible output
with current options (not to be fixed).
* Fix runtests.js to use python2.
3 years ago
Sami Vaarala
0501583887
Assert fix for realloc()
3 years ago
Sami Vaarala
a9b65f793d
Release workflow fixes for v2-maintenance
3 years ago
Sami Vaarala
d00bee492c
Fix clang asan reported leak
Fix a realloc() memory leak which would happen when:
- a previous allocation exists ('ptr' is non-NULL); and
- the new 'size' is zero; and
- a voluntary GC (or GC torture) causes the initial realloc() attempt
to be bypassed
In this case the slow path would incorrectly assume that it was entered
after realloc() had returned a NULL, which for a zero new 'size' would
mean that 'ptr' was successfully freed and no further action was necessary.
But because the realloc() had actually been bypassed, this would cause the
old 'ptr' to leak.
3 years ago
Sami Vaarala
a851d8a568
Fix segfault in call setup when valstack limit hit
3 years ago
Sami Vaarala
918045babf
Fix extras/cbor build
3 years ago
Sami Vaarala
79bc2e3b4b
Merge pull request #2457 from bluca/makefile
dist: backport makefile and pkg-config changes to v2-maintenance
3 years ago
Luca Boccassi
6ac1b74715
dist-files: generated formatted version for pkg-config file
Rather than letting users set it manually, just generate it with
the other version formats when creating the distributable sources.
(cherry picked from commit 4b205fd145
)
3 years ago
Sami Vaarala
f78586cf1a
Add duktape.pc.in to dist file set
(cherry picked from commit 587869705a
)
3 years ago
Luca Boccassi
d3d2775fdf
dist-files/Makefile.sharedlibrary: generate pkg-config file
Standard format for discoverability of shared libraries
(cherry picked from commit c6e5cf0eb5
)
3 years ago
Luca Boccassi
0cb71cb5fb
dist-files/Makefile.sharedlibrary: allow destdir and libdir to be overridden
We want to be able to install outside of a root directory,
and to specify multi-architecture library paths
(cherry picked from commit 870ce5ea70
)
3 years ago
Luca Boccassi
019df6f711
dist-files/Makefile*: allow compiler and install variables to be overridden
(cherry picked from commit 797a814efb
)
3 years ago
Luca Boccassi
77adbf7a1d
dist-files/Makefile*: use CFLAGS/CPPFLAGS/LDFLAGS
Distro builds use them to pass hardening flags and more
(cherry picked from commit 863bca6746
)
3 years ago
Sami Vaarala
f8e2281e19
Add release-workflow to v2-maintenance
3 years ago
Sami Vaarala
0c1e7659ab
Fix DUK_USE_GET_RANDOM_DOUBLE() arg handling
3 years ago
Sami Vaarala
981df50a88
Minor follow-up to bytecode big endian fix
3 years ago
sokurenko
8db46289ee
added to authors and fixed formatting
3 years ago
Vladislavs Sokurenko
f606d30c6d
fixed invalid bytecode being generated and crash on big-endian systems
3 years ago
Sami Vaarala
f02594a8d3
Reformat src-input with clang-format-12
3 years ago
Sami Vaarala
639b46964d
Add clang-format-source target, .clang-format
3 years ago
Sami Vaarala
076bcec2fd
Avoid void ptr arithmetic in duk_alloc_pool.c
4 years ago
Sami Vaarala
f7f720efc0
Update RELEASES.rst for 2.6.0 release
4 years ago
Sami Vaarala
ed641e7698
Website updates for 2.6.0 release
4 years ago
Sami Vaarala
227dcbef04
Add release notes for 2.6.0 release
4 years ago
Sami Vaarala
f8356245c5
Website tidy fix
4 years ago
Sami Vaarala
c328f6aa7b
Bump DUK_VERSION to 2.6.99
4 years ago
Sami Vaarala
fffa346eff
Bump DUK_VERSION for 2.6.0 release
4 years ago
Sami Vaarala
19312f8f56
Fix NaN normalization bug for packed tval
NaN normalization check should use a full NaN check to decide when to
normalize, even when using partial NaN initialization. The fix here
is to switch to full NaN initialization in general.
4 years ago
Sami Vaarala
1827a77f1f
Remove 64kb interactive line limit of 'duk'
4 years ago
Sami Vaarala
bc9a2748c5
Better missing PyYAML warning for configure.py
4 years ago
Sami Vaarala
c84169575a
Fix pointer handling in String replace()
4 years ago
Sami Vaarala
8329ff3d02
Fix trivial duk_logging.c compile warning
4 years ago
Sami Vaarala
13a7a77bf3
Add recursion check to JSON.parse() reviver walk
4 years ago
Sami Vaarala
fd0627b1d1
Add CBOR recursion limits and native stack check
4 years ago
Sami Vaarala
624424dd73
Minor JSON improvements
* Add 'json' to function names for consistency, e.g. duk__dec_xxx() to
duk__json_dec_xxx().
* Remove 'JSON' from recursion limit error messages, it is usually
apparent from the context and can be shared by CBOR encode/decode.
4 years ago
Sami Vaarala
631eab0445
Fix dangling pointer in coroutine yield()
4 years ago
Sami Vaarala
fd04aedd18
Fix Proxy ownKeys() postprocess array index bug
Triggered when Array.prototype has index properties, e.g. a setter.
4 years ago
Sami Vaarala
f963236763
Fix RegExp exec() result inherited index handling
4 years ago
Sami Vaarala
60b68f8ad7
Fix JSON.stringify() inherited array index bug
4 years ago
Sami Vaarala
692f37db83
Fix unstable valstack pointer in putprop
Input 'val' pointer may be a value stack pointer, which may become
stale if the variable lookup reallocates the current value stack.
This can happen e.g. in a with(proxy).
4 years ago
Sami Vaarala
39bfd5c3be
Fix hash part handling in enum sorting
If enum temporary object has a hash part, in-place key sorting
invalidates that hash. The fix is to rebuild the hash after
sorting keys.
4 years ago
Sami Vaarala
6e4d913e33
Fix memcmp() pointer overflow in string builtin
4 years ago
Sami Vaarala
5a5bdad678
Fix CBOR.encode() assertion failure
4 years ago
Sami Vaarala
468c7b4cba
Update UglifyJS dependency
Update to UglifyJS 3.9.2, and use a forked repo to avoid a sudden
break in the future.
5 years ago
Sami Vaarala
4cd52386f4
Restore creating_error after mark-and-sweep
5 years ago