CHANGELOG
ldmud-3.3.719/CHANGELOG · 467.0 KB
From the archive ldmud-3.3.719.tar.gz
Download the archive « Back to the archive contents
This file lists all changes made to the game driver in all glory detail.
See the file HISTORY for a user-oriented summary of all the changes.
30-May-2009 (LDMud Team) (3.3.719)
- Created snapshot.
29-May-2009 (Gnomi)
- (call_out.c) Preserve the order of call_out()s.
- (mudlib/deprecated/hash.c) Added sefuns md5() and sha1().
- (configure) Added a bunch of quotation marks.
28-May-2009 (Zesstra)
- Added sefun cat(), updated documentation of cat().
To reduce the workload of our users we supply implementations of
deprecated and removed efuns. This time: the deprecated efun cat().
(mudlib/deprecated/*)
- Removed a configure check for ancient gcc on AIX.
- Added checks to configure for the volatile keyword and VLAs.
- Check the compiler for support of -fwrapv and enable if supported (enables
a fully defined overflow/wrap behaviour of signed integers (#635).
- Support for using mmap() to get memory from the system (slaballoc):
sbrk() and brk() are obsoleted and some systems (like Darwin) don't have a
working implementation anymore. If sbrk/brk() are not usable, but mmap()
is available, use mmap() for mapping anonymous memory which we then use.
If mmap() is not available, use the old fallback (system malloc()).
Changed some precompiler checks for SBRK_OK, which should be
REPLACE_MALLOC. (#640)
(slaballoc.c, xalloc.c, configure.in)
- Support for using mmap() to get memory from the system (smalloc). (#640)
(smalloc.c)
- Removed amalloc/afree(), MALLOC_ALIGN and MEM_ALIGN.
Our amalloc() had errors and never worked as intended. As the driver does
not need more alignment than guaranteed by the allocators, amalloc() was
removed (see commit log for details).
(xalloc.c, slabmalloc.c, smalloc.c, sysmalloc.c, xptmalloc.c)
27-May-2009 (Gnomi)
- (ed.c, comm.c) Put ed sessions into the input_to list of interactive
objects, so now they have a common noecho and prompt handling. (Bug #522)
- (call_out.c, backend.c) Corrected the timing of call_outs from inside
a heartbeat. (Bug #375)
- (comm.c) Allow sending \0 with binary_message(). (Bug #71)
- (comm.c) Enable IAC quoting by default, allow enabling '\0'
and disabling '\n' in connection charsets.
26-May-2009 (Fuchur)
- (ed.c) Fix bogus reference increment in clear_ed_buffer_refs()
26-May-2009 (Zesstra)
- (func_spec) Marked efun cat() as deprecated. (#637)
19-May-2009 (Gnomi)
- (prolang.y, interpret.c) Corrected the handling of implicit context
variables in nested inline closures and allowed the initializers
of explicit context variables to reference other explicit context
variables. (Bug #631)
- (main.c, comm.c) Set the close-on-exec-flag on open file descriptors,
so they are not passed to erq. (Bug #629)
- (pkg-tls.h, pkg-openssl.c, pkg-gnutls.c, main.c, configure)
Allow TLS to be deactivated per default or command line. (Bug #479)
18-May-2009 (Gnomi)
- (pkg-xml2.c, arraylist.c, configure) Added support for XML parsing
using libxml2. (Bug #538, thanks, Bardioc!)
- (interpret.c) Ignore any arguments passed to a variable closure
instead of throwing an error. (Bug #612)
12-May-2009 (Fuchur)
- (object.c) compile fix for !USE_NEW_INLINES
- (prolang.y) forbid accessing closure arguments from within the
closure's context.
- (prolang.y) Fix infinite loop when redefining a closure argument
in its closure's context.
11-May-2009 (Gnomi)
- (sprintf.c) Don't rely on overflow, as gcc optimizes away overflow checks.
10-May-2009 (Zesstra)
- (smalloc.c, slaballoc.) Replaced SINT by GRANULARITY
The define SINT was ill-named. All occurences were renamed to GRANULARITY
which describes the semantics of the define much better and it is now
defined as being sizeof(word_t).
Additionally, MEM_ALIGN is now defined as being the same as GRANULARITY.
- (xalloc.c) Replaced define by enum.
The defines for the header fields of memory blocks were replaced by an enum.
Additionally a comment about word_t is added.
- (xalloc.c) Fixed syntactial errors in pre-compiler statements.
Because MEM_ALIGN is now a sizeof() expression, it can't be used in
conditional compilation. Replaced them by real if() (which are eliminated
by the compiler because their expression is constant).
- (object.c) Fixed buffer overflow in save_svalue() (#634)
save_svalue() used PRIx16 to print the exponent of a float. Unfortunately,
on some systems PRIx16 is %x, although int16_t is a short. This causes a
signed conversion (which keeps the value) and then 0xffffffff is written.
Even if the buffer is large enough, upon restore with SCNx16 (%hx) a wrong
value would be restored. *args*
Additionally all sprintf(), which write into number_buffer were replaced
by snprintf().
06-May-2009 (Zesstra)
- (hosts/) The hosts/ directory was removed.
Removed the whole hosts/ directory because it wasn't maintained for a long
time and most of the systems were anyway dead for a long time (#625).
This removed --enable-use-system-crypt as well (#624).
- Removed checks and special code for OS2 and __EMX__.
- Removed check for MSDOS.
- Removed checks and special code for __BEOS__.
- Removed checks and special code for AMIGA.
- Removed checks and work-arounds for very old gcc compilers (2.x, <3.2).
- Removed checks and special code for SunOS4 (The last release of SunOS4
was in 1994.)
- Removed checks and special code for Ultrix.
- Removed MSDOS filesystem semantics (Checks for MSDOS_FS and special
behaviour (e.g. \\ as path separator).
- (prolang.y) Another fix in insert_pop_value().
In case of F_NUMBER was the operation itself not taken into account.
Replaced hard-coded numbers by the appropriate sizeof() in all other cases
as well.
05-May-2009 (Zesstra)
- (prolang.y)
Fix inconsistent F_NUMBER generation (#628).
The compiler generates F_NUMBER at more than one places. ins_number()
only writes a int32 into the bytecode, all the other places write a p_int,
which interpret.c expects.
The patch adds ins_p_int(), upd_p_int() and read_p_int().
ins_number() now calls ins_p_int() upon generating the F_NUMBER instruction.
Additionally upon storing a number (L_NUMBER) and in the unary '-'
upd_p_int() is called instead of a direct memcpy(). (memcpy() is a bit
faster, but I think it is much more risky to forget a place to change...)
- (prolang.y) Fixed insert_pop_value().
insert_pop_value() removes the last value from the stack. If possible, it
patches the code to prevent that value from being computed at all (by
removing the last expression). Unfortunately the function assumed that all
operations have no data following in the bytecode. This patches changes it
and enabled optimization/removal of operations with data.
05-May-2009 (Gnomi)
- (lex.c, efuns.c) Improved numeric overflow detection. (Bug #630)
- (pkg-gnutls.c) Don't abort on EINTR or EWOULDBLOCK.
04-May-2009 (Zesstra)
- (efuns.c, efuns.h, func_spec, string_spec, doc/, mudlib/)
Added new efun: configure_driver() and documentation.
configure_driver() will configure variuous aspects of the driver at run-time.
The first settings available is now the soft and hard memory limits.
- (smalloc.c, slaballoc.c, sysmalloc.c, xptmalloc.c)
Added soft and hard memory limits in output of then 'malloc' command.
- (object.c)
Fix for float corruption in restore_svalue().
We use 32 bit mantissas and 16 bit exponents for our floats. Ensure to
write and read fixed-width types in save_svalue() and restore_svalue().
Fixes #627, where restore_svalue() interpreted the 16bit integer for the
exponent as 32bit integer, resulting in data corruption if the exponent
was negative.
- (svalue.h)
The defines READ_DOUBLE, SPLIT_DOUBLe and STORE_DOUBLE were exchanged
by static inline functions.
STORE_DOUBLE_USED is not needed anymore and defined empty.
Additionally, SPLIT_DOUBLE returns now the mantissa as p_int instead of long.
- (interpret.c)
The compiler stores float literals with PUT_INT32 and PUT_SHORT. Reading
them from the bytecode was done by memcpy(). Some conditional compilation
was required to read the correct datatypes. This patch implements an old
TODO and makes F_FLOAT use the LOAD_INT32 and LOAD_SHORT macros from
bytecode.h.
19-Apr-2009 (Gnomi)
- (pkg-tls.c) Set this_interactive() when executing the callback
after handshaking and print the prompt afterwards, so it looks the
same as a normal logon() call.
- (closure.c, interpret.c) New opcodes F_CALL_CLOSURE and F_POP_SECOND
for calling more complicated closures like lambda, inherited lfun
and context closures from within a lambda closure. (Bug #613)
16-Apr-2009 (Gnomi)
- (comm.c, interpret.c, doc/) Made the maximum write buffer size
configurable per interactive via a new efun configure_interactive.
New optional driver hook H_MSG_DISCARDED to inform the master about
discarded messages and send a custom error message to the interactive.
Already compressed packages wont be discarded (Bug #297).
15-Apr-2009 (Gnomi)
- (pkg-gnutls.c) Support for older versions of libgnutls.
- (port.h, object.c)
Savefiles are written in binary mode, if the host system supports any
such notion (O_BINARY exists). Additionally, they are read as binary
as well, if it is supported. (Note: POSIX conforming systems do not
distinguish between 'text' and 'binary' modes, this is only relevant
to Cygwin.)
14-Apr-2009 (Gnomi)
- (doc/driver/predefined) Corrected description of __PATH__(n).
- (mk-patchlevel.h) Call version.sh in the current directory.
- (interpret.c) The size of big switch structures was miscalculated
on LP64 platforms. (t-0000622.c)
12-Apr-2009 (Gnomi)
- (efuns.c, pkg-openssl.c, pkg-gcrypt.c) Moved hash() and hmac()
from pkg-openssl.c to efuns.c and implemented them also using
libgcrypt or the internal MD5 and SHA1 routines (bug #52).
- (efuns.c) fixed a memory leak in hash() and hmac().
- (efuns.c) hash() now costs 10 ticks per iteration.
- (efuns.c) sha1() calculated wrong hash values with multiple
interations.
- (doc/efun) Marked md5() and sha1() as obsoleted by hash().
- (pkg-openssl.c) Don't set a just queried client CA again. (Bug #583)
10-Apr-2009 (Gnomi)
- (pkg-gnutls.c) Implemented tls_refresh_certs and tls_check_certificate
with GnuTLS.
09-Apr-2009 (Gnomi)
- (interpret.c) Wrongly calculated the jump offset of the default
label in big switches due to a sign error (maybe #622).
- (exec.h) Another value for NAME_CROSS_DEFINED so that it doesn't
conflict with FUNSTART_MASK (large programs could hit that bit).
08-Apr-2009 (Gnomi)
- (pkg-tls.c) Set command_giver when executing the callback
after handshaking (Bug #499).
07-Apr-2009 (Gnomi)
- (pkg-tls.h) Corrected the definition of tls_check_certificate.
- (pkg-gnutls.h, pkg-openssl.h) Forgot an include.
- (main.c) Removed a superfluous pointer dereference.
21-Mar 2009 (Gnomi)
- (pkg-tls.c, pkg-openssl.c, pkg-gnutls.c) Separated code for GnuTLS
and OpenSSL.
15-Mar-2009 (Fuchur)
- (test/inc/deep_eq.inc)
Implement deep equality for the testsuite.
- (test/t-efuns.c)
Add a few tests for map().
- (array.c, strfuns.c, structs.c, efuns.c, doc/efun[.de]/map[.de])
Implement map(*, mapping, idx). (#367)
12-Mar 2009 (Zesstra)
- (slaballoc.c, smalloc.c)
Fixed a bug in esbrk() during memory allocation, where SINT
(sizeof(word_t)) was not taken into account in the calculation of a block
size, leading to crashes afterwards. (#611)
- (efuns.c)
Fixed an off-by-one buffer overflow in v_sha1(). Actually removed the \0
written after the buffer, because it was not needed.
10-Mar 2009 (Zesstra)
- (pkg-idna.c)
Fixed the evaluation of the arguments of f_idna_stringprop() and removed a
memory leak, because the argument string was not free'd. Additionally
avoided to put a return value on the stack in case of an error (#498)
03-Mar-2009 (Zesstra)
- (actions.c, configure.in, config.h.in, lex.c)
Made the maximum length of commands configurable.
COMMAND_FOR_OBJECT_BUFSIZE was renamed to MAX_COMMAND_LENGTH and
made configurable at compile time via the --max-command-length,
defaulting to 1000.
Added a permanent define __MAX_COMMAND_LENGTH__
28-Feb-2009 (Zesstra)
- (xalloc.c|h, smalloc.c, main.c, lex.c, slaballoc.c, backend.c,
string_spec, mudlib/sys/rtlimits.h, src/settings*, doc/master/)
Renamed --max-malloced to --hard-malloc-limit and MAX_MALLOCED to
HARD_MALLOC_LIMIT_DEFAULT and changed the mud configurations.
Introduced a --soft-malloc-limit/SOFT_MALLOC_LIMIT_DEFAULT
Added set_* and get_memory_limit() and related constants for managing the
memory limits
Added check_for_soft_malloc_limit() to check the soft memory limit
Added notify_lowmemory_condition() to call low_memory() in the mudlib master
Added calls to notify_lowmemory_condition() and
check_for_soft_malloc_limit() in the ba ckend cycle
Added documentation for new memory limit and low_memory().
27-Feb-2009 (Fuchur)
- (settings/default)
Sync options with configure.
- (autoconf/configure.in)
Don't replace unspecified defaults by 'no' anymore.
Fix some quoting issues.
Add help messages for all custom options.
Remove a few unused options.
15-Feb-2009 (Zesstra)
- (port.c)
Check results of gmtime() and localtime() and return NULL, if NULL is
returned.
- (efuns.c)
Check results of gmtime(), localtime(), time_fstring() and utime_string()
for being NULL and raise a runtime error. (#587)
- (test/inc/testarry.inc, test/t-mantis.c)
Added tests for the efuns affected by bug #587.
Added an test flag TF_DONTCHECKERROR for tests which must not crash the
driver but may cause a runtime error or not.
31-Jan-2009 (Fuchur)
- (test/run.sh, test/t-0000604.sh)
Add Test for #604
31-Jan-2009 (Zesstra)
- Fixed german manpage for unique_array() which contained german and english.
30-Jan-2009 (Fuchur)
- (main.c)
Fix bug building erq_args, which could cause memory corruption. (#604)
29-Jan-2009 (Gnomi)
- (access_check.c, comm.c, main.c)
Made access control a runtime option.
28-Jan-2009 (Gnomi)
- (backend.c)
!-escaped commands are treated specially even
if the player object doesn't have an environment.
- (comm.c)
Correctly detect if input_to() was called more than once
in the same execution thread (Bug #535).
27-Jan-2009 (Gnomi)
- (xalloc.c)
realloc() should also consider the xalloc overhead, when
assessing the available space.
- (main.c)
Corrected --longhelp output of TLS options.
- (comm.c, configure)
Removed support for write threads.
18-Jan-2009 (Zesstra)
- (pkg-mysql.c)
Fixed corrupted results of db_conv_string(). (#602).
17-Jan-2009 (Zesstra)
- (efuns.c)
Relaxed syntax check in v_trim() to allow a 0 as <ch> for trimming
"\0" (#473)
17-Jan-2009 (Fuchur)
- (efuns.c, func_spec, mudlib/sys/debug_info.h, doc/efun/debug_info,
doc/efun.de/debug_info.de)
use debug_info instead of new get_eval_number() efun.
- (efuns.c, func_spec, interpret.c, interpret.h, doc/efuns/get_eval_number,
doc/efuns.de/get_eval_number.de)
add get_eval_number efun.
- (backend.c, comm.c, interpret.c, object.c)
call mark_(start|end)_evaluation() in various places (#476)
- (prolang.y)
check return value of verify_declared() - fixes a crash in t-language
17-Jan-2009 (Gnomi)
- (object.c)
Save_object without a filename removed one too many elements
from the stack. (Bug #595)
16-Jan-2009 (Zesstra)
- (config.h.in, lex.c)
Enforce the possible value range for ITABLE_SIZE (256 - SHRT_MAX/32768).
Fixes issues of not finding identifiers in the table if the table is to
large. (#558)
Updated documentation in config.h.in to reflect this.
Corrected the manpages for read_file(). (#592)
14-Jan-2009 (Gnomi)
- (comm.c, pkg-mccp.c, configure)
Use of write buffers without the need for threads.
- (object.c)
Made restore_value reentrant. (Bug #548)
- (prolang.y)
Removed useless code.
14-Jan-2009 (Zesstra)
- (doc/driver/limitations)
Started to assemble a list of non-configurable limits - to be extended...
- (exec.h, object.c, closure.c, interpret.c)
Changed some code defines from exec.h to static functions and
constants to an enum.
Introducing a properly typed CROSSDEF_NAME_OFFSET() solves crash on LP64
platforms in functionlist(). (#559)
Renamed SEARCH_FUNCTION_INHERIT to search_function_inherit and return the
pointer to the inherit structure.
- (smalloc.c)
Fixed some warnings about wrong format specifiers reported by Bardioc.
13-Jan-2009 (Zesstra)
- (simulate.c)
Reallowed empty object names (/.c) (#525)
12-Jan-2009 (Lars Duening) (3.3.718)
- Created snapshot.
06 Jan 2009 (Fuchur)
- (util/xerq/erq.c, util/xerq/defs.h)
Remove dependency on the driver's random number generator - the
libc one should serve us just fine.
04-Jan 2009 (Zesstra)
- (interpret.c, interpret.h)
Changed ASSIGN_EVAL_COST to a static inline function assign_eval_cost_inl()
and use it consistently in interpret.c.
Changed MAX_SHIFT to a static const.
- (mstrings.h, mstrings.c, strfuns.c)
Changed some code defines to static inline functions.
Renamed the variables mstr_tabled and mstr_untabled to mstr_tabled_count
and mstr_untabled_count. (They had the same name as the old defines which
are now functions).
Removed unused and now superfluous ref_mstring_safe, mstring_ref(),
deref_mstring_safe, mstring_deref(), because ref_mstring() and
deref_mstring() can now handle arguments with side-effects.
Added some casts to remove the const from const arguments when passing them
off to get_txt(). (Don't worry, it is only cosmetic and temporary.)
- (random.h, random.c, main.c, autoconf/configure.in, config.h.in, efuns.c,
random/*)
Exchanged the Mersenne Twister (pseudo random number generator) by the
SIMD-oriented Fast Mersenne Twister (SFMT) to support random numbers up
to 2^63-1 on 64 bit platforms:
http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/SFMT/
Additionally, the period length can be configured now. The SFMT
faciliates a better equidistribution and a faster recovery from a
0-excess state as well. (Bug #527)
Added the possibility to seed the PRNG from arbitrary files or devices by
using the commandline option --randomdevice. The default device is
/dev/urandom. If that is not readable, the driver falls back to seed the
PRNG with the system time.
03-Jan 2009 (Zesstra)
- (efuns.c, efuns.h, func_spec)
Extended present_clone() to optionally search for the <n>th object in the
environment.
- (port.h)
Cleaned up handling of gcc attributes (Assumption: gcc < 3 are out of use
now), added __attribute__ define which evaluates to nothing if gcc is
not used.
- (make_func.y)
Added NORETURN attribute to yyerror() and fatal()
Changed fatal() from int to void.
- (closure.c, interpret.c, simulate.h )
Added NORETURN attribute to lambda_cerror(), lambda_cerrorl(),
stack_overflow(), throw_error(),
- (port.h, main.h, comm.c, strfuns.h, closure.c)
Added the format attributes to: time_fstring(), strbuf_addf(),
vdebug_message(), comm_fatal(), lambda_cerror(), lambda_cerrorl()
- (xalloc.h)
Added the warn_unused_result attribute to xalloc_traced(),
rexalloc_traced(), pxalloc_traced(), prexalloc_traced().
- (mregex.c, mstrings.c, simulate.c)
Fixed some wrong format specifiers which gcc found after using the format
attribute on strbuf_addf().
30-Dec 2008 (Zesstra)
- (array.h, comm.c, smalloc.c, slaballoc.c, xptmalloc.c, xalloc.c,
sprintf.c)
Changed some code defines and pre-compiler constants to static inline
functions and enums (partially from Largo, thanks!)
26-Dec 2008 (Zesstra)
- (object.c)
Fixes a forgotten increment of a ref count in f_rename_object().
24-Dec 2008 (Gnomi)
- (ed.c)
The reference count of the filename and the exit function
wasn't cleared in a GC. (Bug #398)
- (prolang.y)
Switch now explicitly expects case/default statements in the switch
block and puts the non-case statements afterwards into their own
block scope. (Bug #584)
15-Dec 2008 (Zesstra)
- (object.c)
Fixed potential crashes in rename_object() and replace_program() due to
stack overflows. (Bug #581)
14-Dec 2008 (Gnomi)
- (src/interpret.c, src/autoconf/*)
Added option to show the evaluation costs in the stacktrace.
- (src/pkg-iksemel.c, many files)
Added support for XML parsing with iksemel. (Bug #538, thanks, Bardioc!)
(Zesstra)
- (efuns.c)
Fixed potential crashes due to stack overflows in process_string(),
regexplode(), regexp() and present_clone(). (Bug #578)
- (interpret.h, interpret.c, efuns.c, mudlib/sys/debug_info.h,
doc/efun/debug_info, doc/efuns.de/debug_info.de)
Added control_stack_depth() to determine the number of frames on the
control stack and added flag DIT_CURRENT_DEPTH to
debug_info(DINFO_TRACE,...).
- (interpret.c)
Replaced call to exit() by a call to fatal() in asster_master_ob_loaded()
to allow core dumpes to be written in cases when the master object could
not be loaded and there is no destructed master as well. (Bug #570).
- (simulate.c)
Fixed potential crash due to stack overflow in load_object(). (Bug #580).
13-Dec 2008 (Zesstra)
- (pkg-mysql.c)
Allocate temporary memory for the temporary string in f_db_conv_string()
on the heap, because the string is user supplied and calling the
function with a large string may cause a crash due to stack overflow.
(Bug #582)
- (efuns.c, strfuns.c)
Corrected format specifiers in errorf() calls.
12-Dec 2008 (Zesstra)
- (port.h, port.c, efuns.h, efuns.c, func_spec, gcollect.c)
added mkime(), an efun which converts a date/time information as
returned by local_time() to a unix timestamp (integer value).
added strftime(), an efun which converts a timestamp to a formatted
string using a format string with a variety of format specifiers.
changed caching behavious for ctime(): cache is now in the efun, not in
port.c which spares the driver to search for the shared string and
saves about 85% of execution time in case of cache hits. Removed
caching in case of millisecond precision as cache hits are rather
unlikely.
Added handlers for the garbage collection which take care of the cache
for ctime().
- (main.c)
use also locale defined in LC_TIME.
04-Oct 2008 (Zesstra)
- (object.c)
Allocate memory for the filename in f_save_object() and f_restore_object()
on the heap instead of the stack. Use the generic error handler in
save_object() and the already existing one in restore_object() to free the
buffer in case of errors. Minor changes in error handling in
f_restore_object() by pushing the handler earlier onto the stack and using
it more often. Fixes crash with large filenames. (Bug #576)
- (comm.c)
Allocate memory for temporary buffers in send_erq() and send_udp() on the
heap and not on the stack. Fixes crashes with large arguments. (Bug #577)
26-Sep 2008 (Zesstra)
- (interpret.c, interpret.h)
Changed return type of push_error_handler() to svalue_t *.
Added a simple generic error handler structure for holding a single
buffer, an error handling function for freeing the buffer and a function
for allocating memory on the heap and simultaneously pushing the
corresponding error handler onto the value stack.
- (efuns.c)
removed unneeded cast.
- (efuns.c, pkg-sqlite.c)
Used new return value of push_error_handler().
- (backend.c)
added missing initializers to some statistic_t variables.
- (strfuns.c)
x_filter_string():
Removed crash in efun filter() due to stack overflow in case of very
large strings. (Bug #575)
Don't return a 0 as result if memory for the result could not be
allocated due to an out-of-memory condition.
21-Sep 2008 (Zesstra)
- (actions.c)
f_execute_command(): added length of command to error message 'command too
long'
Corrected format specifiers
- (comm.c)
Corrected format specifiers
interactive_cleanup(): removed variable e
add_message(): fixed a potential crash due to a buffer overflow on the
stack using vsnprint() instead of vsprintf() (and spared the client a
comm_fatal()).
f_binary_message(): replaced a fatal() by an errorf() if a string could
not be allocated. Replaced the error message text as well, because that
is not a stack overflow (memory for the string is allocated on heap).
- (xalloc.h)
Corrected format specifiers.
- (object.c)
Corrected format specifiers, removed unneeded casts.
free_prog(): added refcount, program address and program name to message
for fatal() in case of negativ refcounts
v_function_exists(): changed flags to p_int.
save_array(), register_array(), register_mapping_filter(): changed i to
p_int
restore_svalue(): removed variable tmp while restoring a float.
- (efuns.c, mapping.c, prolang.y, simulate.c, structs.c, object.c, dumpstat.c)
Corrected format specifiers
- (interpret.c, heartbeat.c, simulate.c, call_out.c, comm.c, actions.c,
backend.c)
secure_call_lambda(), apply_master_ob(), secure_apply_ob(),
push_error_context(), errorf(), call_heart_beat(), call_out(),
replace_program_lambda_adjust(), call_function_interactive(),
execute_command(), process_objects():
take the address for rt_context from the rt member of the struct
error_recovery_info, not from the beginning of the struct. Removes
compiler warning "dereferencing type-punned pointer will break
strict-aliasing rules".
- (structs.c)
struct_t_unique_name(): sprintf -> snprintf
- (dumpstat.c)
dumpstat(): length of buffer given to strftime() was one too short.
19-Sep 2008 (Zesstra)
- (slaballoc.c)
Changed malloc_increment_size_calls, malloc_increment_size_success,
malloc_increment_size_total, num_avl_nodes to 'unsigned long' instead of
'long', they were anyway already printed as unsigned.
check_free_block(): added some details to an error message.
Added missing initializers to INIT_SLABENTRY, dummy and dummy2
mem_dump_extdata(): changed i to unsigned int (removed a warning
concerning comparison between signed and unsigned types).
- (interpret.c, lex.c)
Corrected two format specifier.
18-Sep 2008 (Zesstra)
- (prolang.y)
add_string_constant(): Added size to be allocated to an error message
Corrected a bunch of format specifiers
Added a missing line break in an error message in add_lvalue_code()
epilog(): changed size from int to p_int.
Changed some comparisons between signed and unsigned types in (lines
12229, 12322, 12935).
- (lex.c)
parse_numeric_escape(): Removed a comparison of unsigned long < 0 which is
never true and in this case not needed.
- (i-eval_cost.h)
add_eval_cost_n(): changed a comparison between signed and unsigned types
17-Sep-2008 (Zesstra)
- (simulate.c)
Corrected format specifiers, removed not needed casts, corrected some
casts.
Changed int to p_int in extract_limits(), added range check in
v_limited() and v_set_limits().
- (ptrtable.c)
find_add_pointer(): p_uint is the better choice for converting a pointer
16-Sep-2008 (Zesstra)
- (port.c)
Corrected 3 strftime() calls, the given buffer length was one smaller than
necessary.
Corrected a format specifier for an mp_int.
- (ptrtable.c)
Changed mp_int in find_add_pointer() to p_int because it stores anyway a
void*
Correct two format specifiers.
- (swap.c)
Corrected some format specifiers.
Increased field width for the numbers in 'status swap' a bit.
- (strfuns.c, lex.c)
Corrected some format specifiers, changed/removed some unneccessary casts.
15-Sep-2008 (Zesstra)
- (mapping.c)
corrected a lot of format specifiers
changed a bunch of int which are assigned a p_int to p_int (f_m_values(),
add_to_mapping_filter(), resize_mapping(), map_intersect(),
v_walk_mapping, x_filter_mapping(), x_map_mapping(), f_m_entry(),
f_unmkmapping(), _free_mapping(), check_map_for_destr(),
add_mapping(), compact_mapping(), struct set_mapping_user_locals,
set_mapping_user_filter(), set_mapping_user(), v_m_add(),
map_intersect_filter(), map_intersect(), v_mkmapping(),
f_m_reallocate(), f_widthof().
- (i-svalue_cmp.h)
changed d in svalue_cmp() to p_int instead of int.
14-Sep-2008 (Zesstra)
- (interpret.c)
Moved duplicate code for calculating the caller stack depth in a small
static function which will be inlined anyway.
13-Sep-2008 (Zesstra)
- (interpret.c)
Changed format specifiers for mp_int to PRI*MPINT and for p_int to
PRI*PINT and changed some specifiers to the native datatype of the
variable and removed the casts.
Corrected some unchecked assignments of (m)p_(u)int to int by using the
driver type instead of int or adding range checks before the
assignments. Changed some longs to p_int as well.
Added some precompiler sanity checks for MAX_TRACE, SIZEOF_STACK,
TOTAL_TRACE_LENGTH and CACHE_SIZE which have to fit into int.
get_arg() used a static buffer with length of 10 but writes a long
with %ld. Increased buffer length to 12 and used snprintf()
instead of sprintf().
get_line_number_if_any(): changed calculation of pointers to the beginning
of lambdas to use the more portable offsetof() and to use (PTRTYPE)
instead of (char*) and (unsigned long) casts for the pointers.
- (port.h)
Added check for pre-defined PRId32 to port.h for the (u)int32 type. If it
is not defined, define our own.
- (closure.h)
Include <stddef.h> which defines offsetof() in case it is not a compiler
builtin (uses by LAMBDA_VALUE_OFFSET).
- (doc/efun.de/call_other.de)
Rephrased misleading sentence about __LPC_ARRAY_CALLS__.
07-Sep-2008 (Zesstra)
- (closure.c, efuns.c)
Changed format specifiers for mp_int to PRI*MPINT and for p_int to
PRI*PINT and changed some specifiers to the native datatype of the
variable and removed the casts. Corrected some format specifiers which
were signed but the argument were unsigned.
- (efuns.c) Corrected typo in error message in v_sha1() which reported
itself as md5().
06-Sep-2008 (Zesstra)
- (lex.c, object.h, swap.c)
Changed format specifiers for mp_int to PRI*MPINT and for p_int to
PRI*PINT and removed some casts to long and used the correct format
specifiers for the actual datatype (e.g z for size_t).
- (sprintf.c)
changed argument num of num_add() to p_int.
inserted the correct length modifier for the p_int type into the format
string for the system sprintf() call. (#528)
10-Aug-2008 (Lars Duening) (3.3.717)
- Created snapshot.
10-Aug-2008 (Lars Duening) (3.3.716)
- Created snapshot.
10-Aug-2008 (Lars)
- The 3.3 branch is now considered stable.
08-Aug-2008 (Zesstra)
- (settings/morgengrauen) Updated file to include the settings currently
used in MorgenGrauen.
06-Aug-2008 (Gnomi)
- (files.c) Rewrote copy/move_file due to copyright issues.
26-Jul-2008 (Fuchur)
- (object.c)
remove tell_object_str(), and use tell_object() (#471)
use FMT_STRING in tell_object(), to support \0 characters (#472)
19-Jul-2008 (Zesstra)
- (array.c, backend.c, comm.c, dumpstat.c, interpret.c, mapping.c, lex.c)
Changed format specifiers for mp_int to PRI*MPINT and some for p_int to
PRI*PINT.
18-Jul-2008 (Zesstra)
- (autoconf/configure.in)
Removed check for values.h from configure.in and not used HAVE_VALUES from
port.h - obsoleted by limits+float.h (was TODO)
Removed self-written check for ANSI-C89 compliant compiler and used
AC_PROG_CC_STDC.
Removed self-written checks for uint32_t, ssize_t, size_t, off_t, long
long and added the corresponding autoconf macros
Removed obsolete AC_HEADER_STDC
Added checks for C99 datatypes: (u)int8_t, (u)int16_t, (u)int32_t,
(u)int64_t, (u)inptr_t, (u)intmax_t.
Added size checks for intptr_t, intmax_t, long long
Added some checks for compiler charactestics: stringenize operator in
preprocessor, typeof. (check for restrict due to problems with
mk_func.c still disabled)
Added header check for stdbool.h
Changed obsolete AC_CONFIG_HEADER to AC_CONFIG_HEADERS
- (port.h)
Fixed PHINT_MIN, PHINT_MAX and PHUINT_MAX in port.h. SIZEOF_CHAR_P ==
SIZEOF_SHORT * 2 they were defined to SHORT_MAX, SHORT_MIN, USHORT_MAX,
which should be SHRT_MIN, SHRT_MAX, USHRT_MAX.
Fixed selection of ph_int (short is not guaranteed to be 2 bytes)
Use inttypes.h and stdint.h if available.
Use stdbool.h and _Bool for our own Bool if available.
Removed own typedef for ssize_t as autoconf will provide is with a
suitable ssize_t if the standard headers don't have one, which is
anyway very unlikely.
Added defines for the right format specifiers for sprintf(), sscanf()
because we should discontinue to use hard-coded ones when working with
p_(u)int, mp_(u)int and ph_(u)int.
17-Jul-2008 (Gnomi)
- (comm, interpret, simulate.c) Added flag to set_noecho and secure_apply
to indicate external events (Bug #534).
- (interpret.c, string_spec) Removed the 'closures was bound to
destructed object' error message and clarified the F_UNDEF error
message (Bug #523).
16-Jul-2008 (Zesstra)
- (comm.c, autoconf/configure.in, config.h.in)
MAX_OUTCONN is now configurable with an configure switch
(--with-max_net_connects), closes Bug #486.
- (object.c) tell_room() sends message to the given environment itself as
well, if it is marked interactive. Closes Bug #505.
- (xptmalloc.c)
use clib_alloc_stat only if REPLACE_MALLOC is set and define
REPLACE_MALLOC if SBRK_OK is defined.
- (driver.h)
SBRK_OK is enforced if ptmalloc is used as memory allocator. ptmalloc has
no problem with pthreads and does not work without REPLACE_MALLOC right
now.
12-Jul-2008 (Zesstra)
- (interpret.h) removed duplicate and inconsistent prototype for
last_instructions and moved prototype for f_last_instructions() into the
#ifdef TRACE_CODE block.
11-Jul-2008 (Gnomi)
- (files.c) write_file doesn't raise an error if the flag is set
and the file doesn't exist (Bug #512).
10-Jul-2008 (Fuchur & Gnomi)
- (prolang.y) Incomplete variable clearance after an inner block
(Bug #537).
10-Jul-2008 (Gnomi)
- (pkg-sqlite.c, interpret.c, interpret.h) SQLite pragma statements
are now possible but privileged.
- (mstrings.c) mstr_n_str() now finds an empty string at the end
of an input string (Bug #536).
09-Jul-2008 (Fuchur)
- (object.c) Use xalloc instead of alloca for allocating the parse buffer
in f_restore_value(). (Bug #532)
07-Jul-2008 (Zesstra)
- (mregex.c, pkg-pcre.h, config.h.in, autoconf/configure.in)
Introduced the compile-time constant LD_PCRE_RECURSION_LIMIT and code
for limiting the amount of recursions in the PCRE package. The purpose
is to prevent crashes from stack overflows, as the PCRE package may
recurse heavily. Default is 3000 recursions for systems with about 8MB
stack size per process. (Bug #524)
04-Jul-2008 (Zesstra)
- (test/t-0000524.c) Added a test for Bug #524
03-Jul-2008 (Gnomi)
- (test/*) Added a testsuite and included existing test cases therein.
- (test/t-0000532.c) Added a simple test for Bug #532 (Zesstra)
01-Jul-2008 (Gnomi)
- (comm.c) input_to could leak its parameters when it failed (Bug #486).
- (comm.c) Corrected the argument number in input_to error messages.
- (driver.h) Corrected the check for SQLITE3_USES_PTHREADS when
disabling SBRK_OK.
- (ed.c) The 'r' command leaked the filename (Bug #488).
31-Jun-2008 (Zesstra)
- (configure.in) Fix configure.in to work with autoconf 2.61 and later.
(patch from Fuchur, fixes bugs #541, #542)
30-Jun-2008 (Zesstra)
- (efuns.c) Added actual array size to error message 'Illegal array size'
in f_regexplode().
- (hosts/GnuWin32/GnuWin32.h, hosts/GnuWin32/socket.h)
Fixed #defines HOST_DEPENDENT_INIT and socket_number.
(Bug #497, thanks to Zonk_FF)
05-Jan-2008 (Gnomi)
- (efuns.c) The target index in the final copy loop must be incremented
only for actually copied elements.
27-Dec-2007 (Lars Duening)
- (i-eval_cost.h, efuns.c, lots of files) Replaced the eval-cost
increment macro with an inline function which does more checks
to prevent an overflow. Also, to allow proper catch() handling,
the eval_cost is capped at max_eval_cost+1 (suggested by Gnomi).
- (efuns.c) Having md5()/sha1() cost 10 ticks per iteration makes too
long evaluations more unlikely (suggested by Gnomi).
11-Nov-2007 (Lars Duening)
- (mstrings.c) mstr_rn_str() now allows a starting position at the
end of the input string (Bug #509).
- (efuns.c) sha1() and md5() now cost 5 ticks per iteration (Bug #485).
- (interpret.h, efuns.c, regexp.c) Introduced a macro to increment
both eval_cost and total_evalcost with a single statement.
11-Nov-2007 (Gnomi)
- (actions.c) Improvements for the removal of actions added by shadows
(Bug #514).
- (prolang.y) After two consecutive inline closures within the same
function, the line number information was incorrect (Bug #510).
- (lex.c) Corrected an off-by-one error related to auto-includes
by moving the line number adjustment from the CHAR_EOF handling
to the add_auto_include() function (Bug #508).
14-Oct-2007 (Lars Duening) (3.3.716)
- Created snapshot.
14-Oct-2007 (Gnomi)
- (prolang.y, lex.c) UNKNOWN identifiers are kept around until the
end of the compilation, as some parser rules can look-ahead multiple
tokens pointing to the same UNKNOWN identifier, so an early free
will lead to references to invalid memory. Keeping them that
long is a bit of overkill, but more future-proof (Bug #494).
- (prolang.y) Struct names are searched only the global namespace
as that is where structs are defined. Searched in the local
namespace can get the driver confused with references to
undefined structs. (Bug #493)
- (simul_efun.c) If a simul_efun object appeared before being blessed
explicitely, it may be an old backup copy. This situation is
now rejected as the variable/function definitions may differ
subtly. (Bug #489)
13-Oct-2007 (Lars Duening)
- (interpret, simulate.c) Changed the apply cache counters to 'unsigned
long' to reduce the possibility of an overflow (Bug #520).
- (interpret.c) setup_new_frame() now updates the csp->funstart entry
by itself, instead of having the caller do it. This is not just
more convenient, but also avoids problems with possible errors
during its execution (as the error handling will try to create
a stack trace). (Bug #495)
07-Oct-2007 (Lars Duening)
- (comm.c) When in charmode, don't attempt to read in as much data
as the buffer has left space: otherwise the handling of such an
'overlong command' confuses the charmode engine and causes the socket
to close prematurely. Yes, this is more a workaround than a real fix
(Bug #442).
- (simulate, interpret) The value thrown in a catch is now held in
the catch context could be leaked if a second error happens and
is caught in the master::runtime_error() handler (Bug #513).
- (configure) When testing for libiconv, reference a real libiconv method.
This catches situations where libiconv exists, but is of the
wrong architecture.
06-Oct-2007 (Lars Duening)
- (configure) gentoo Linux requires the '-n' argument for 'tail +2' to
work correctly (thanks, Juanjo!).
- (comm.c) Removed a crasher when running with --check-refcounts: References
by snooping non-interactives weren't counted (Bug #492).
- (sprintf.c) Removed a 64-bit issue (comparison of two values with
differing value ranges) (Bug #490)
- (prolang.y) upd_long() and read_long() weren't 64-bit-safe (even though
ins_long() already was) (Bug 491).
- (prolang.y) With the corrections to the inheritance handling done some
time ago, the lfuns backing inline closure can be again made 'private
nomask' (Bug #511).
- (simulate.c) load_object(): The object filename to load must not be
empty (Bug #500).
- (mstrings, obtable.c) Made sure that otable uses the same hasher
as mstring (Bug #500).
- (object, simulate.c) clone_object(): When initializing a clone's variables
using #pragma share_variables, really use the variables from the
blueprint object being given, not relying on the program.
This allows the handling of inherited blueprint objects with replaced
programs. (Bug #483)
- (simulate.c) replace_program(): If the program of a blueprint is replaced,
the old program's blueprint pointer is NULLed out as it is no longer
accurate. (Bug #483)
- (mudlib/uni-crasher/crasher.c) 'New' version from Bug #91.
- (my-rusage.h, files.c) Removed obsolete macro PROT() (Bug #504).
- (interpret.c) foreach(int i : <negative number>) now throws an error
(Bug #503).
03-Oct-2007 (Lars Duening)
- (mapping.c, object.c) Removed C-99 features.
01-Oct-2007 (Gnomi)
- (mapping.c) resize_mapping() didn't check for destructed objects as keys,
which made operations like map-([0]) after an object destruction
potentially fatal (Bug #517).
30-Sep-2007 (Lars Duening) (3.3.715)
- Created snapshot.
04-Nov-2006 (Lars Duening, Philip Hancke)
- (pkg-tls, main.c) Added new options --tls-crlfile and --tls-crldirectory
to hold the Certificate Revocation information.
- (pkg-tls, func_spec) New efun tls_refresh_certs() to reload the
certificates and certificate revocations.
09-Jul-2006 (Lars Duening) (3.3.714)
- Created snapshot.
14-Jun-2006 (Lars Duening)
- (array.c) Removed a memory leak when array intersection or subtraction
failed.
- (mapping, array, interpret.c, prolang.y) Implemented the array/mapping
intersection.
12-Jun-2006 (Lars Duening)
- Oh dear, has it been that long?
- (make_func.y) Modified a case of undefined behaviour in the creation
of the character classification tables: only 'unsigned char' types have
a defined overflow behaviour (thanks, Erik!)
- (configure) -fno-force-mem is deprecated.
09-May-2006 (Lars Duening)
- (xalloc.c) If the driver runs low on memory, it also prints the
current object and program in the low-on-memory message.
06-May-2006 (Lars Duening)
- (pkg-tls) New efuns hash() and hmac() offer flexible hash and HMAC
calculation if the driver is compiled to use OpenSSL (provided by
Philipp).
- (pkg-tls.c) Removed a compilation error occuring with GnuTLS.
- (lex.c) New macros __OPENSSL__ and __GNUTLS__ are set depending on
which TLS package is being used.
06-May-2006 (Gnomi)
- (prolang.y) Corrected the linenumber counting for inline closures.
23-Apr-2006 (Lars Duening)
- (mstring) The max hash length used is now available as macro constant.
- (otable.c) Both mstrings and C-strings are hashed with the same max
length. This corrects a bug with extremely long object names (Bug #466).
- (structs.c) The calculation of the first part of a struct's hash
uses what the mstring code has already calculated.
30-Mar-2006 (Lars Duening)
- (prolang.y) Removed a dead branch.
- (pkg-tls.c) Removed a possible compiler warning (Bug #464).
- (prolang.y) Removed a bison warning when structs aren't used.
27-Mar-2006 (Lars Duening)
- (pkg-tls.c) Added support for GEN_EMAIL, GEN_URI and GEN_DNS
certificates. tls_verify_callback() now prints diagnostics
only if the '-d' option was given (thanks, Philipp).
18-Mar-2006 (Gnomi)
- (interpret.c) In apply cache entries for non-existing functions, the
garbage collector counted the reference to the string name twice,
causing the use of deallocated memory (Bug #463).
16-Mar-2006 (Lars Duening)
- (comm.c) Moved the declaration of a variable which was declared in the
middle of a block - gcc doesn't complain, but it's not ISO-C (Bug #462).
14-Mar-2006 (Gnomi)
- (closure, object.c, interpret, exec.h, gcollect.c) lfun closures now
keep track to which program they belong, to avoid ambiguities
in case of complex inheritance relationships. This also affects
the savefile format: lfun closures are saved with their inheritance
path (Bug #443, #444).
- (prolang.y) If a non-virtual baseclass was inherited multiple times
with a virtual class inside the inheritance tree, its members
were merged even though they shouldn't (Bug #422).
- (prolang.y) The LPC compiler used a global variable for typetracking,
which caused errors when types changed inside a variable
initialisation (Bug #394).
12-Mar-2006 (Lars Duening) (3.3.713)
- Created snapshot.
- (comm.c) Master function disconnect() receives the remaining input data is
passed as the second argument (suggested by Philipp).
08-Mar-2006 (Malcom Tester)
- (lp-245/obj/master.c) Made the move implementation more robust.
07-Mar-2006 (Lars Duening)
- (pkg-tls.c) Two modifications to increase reconnect stability (thanks,
Philipp!).
- (prolang.y) Extended a LPC compiler warning when function indices
are adjusted.
06-Mar-2006 (Lars Duening)
- (backend, comm.c, object) The logon(obj) function moved from
backend.c into object.c, and was renamed logon_object() - it's
more sensical this way.
- (comm.c) If the master::connect() initiates a secure connection
which gets stuck in the handshake, neither logon() is called nor
is the prompt printed. Also, if the tls_init_connection() didn't
set a callback, the driver will provide a callback to logon().
This way logon() won't be called unless the connection is up
and running.
- (mudlib/psyc-tls.c) Example for using the tls_check_certificate()
efun (thanks, Philipp).
03-Mar-2006 (Lars Duening)
- (pkg-tls.c) tls_check_certificate() does more interpretation of
the result and returns better data (provided by Philipp).
01-Mar-2006 (Lars Duening)
- (interpret.c) A missing return is noted at runtime only once per
function. This is achieved by runtime code modification, but we
do that for switch() as well (Bug #430).
28-Feb-2006 (Lars Duening)
- (pkg-idna) Added support for International Domain Names (provided
by Philipp - thanks!).
- (configure, Makefile) Added a target 'install-headers' to install
all driver LPC header files.
- (simulate.c) Virtual blueprint objects are guaranteed to have their
'clone' flag unset.
- (string_spec, simulate.c) Renamed COMP_OBJ to the more intuitive
COMPILE_OBJECT.
- (interpret.c) Removed the stipulation that CATCH_RESERVED_COST
must be twice as much as MASTER_RESERVED_COST, since the master
reserve is used automatically anyway (suggested by Gnomi).
- (efuns.c) sscanf(): The new modifier '+' requires the matching of
the characters after a field in order to consider the field
as matched.
20-Feb-2006 (Lars Duening)
- (Makefile.in) Added a dependency to create patchlevel.h, even if
the program is made with 'make ldmud'.
20-Feb-2006 (Gnomi)
- (comm.c) remove_interactive() clobbered the current_object, setting
it to NULL. It is now preserved (Bug #431).
- (interpret.c) When executing an efun closure, the tracedepth wasn't
incremented accordingly (Bug #441).
- (simulate.c) When executing a non-toplevel callback, the tracedepth
should not be zeroed out (Bug #441).
08-Jan-2006 (Lars Duening)
- (make_func.y) When parsing the func_spec file, the preprocessor
conditionals were handled in a buffer in a no-longer existing
stack frame. So far, we were lucky, but on a 64-bit machine
that space was needed by the Bison parser.
- (driver.h, smalloc.c, slaballoc.c) If the machine uses a 8-Byte
malloc alignment (e.g. all PowerPC machines), the allocator does
not replace the system malloc().
- (mud/lp-245/) Since the recent change to how simul_efuns are called
(see Bug #419), the LP-245 lib was broken. This has been corrected.
05-Dec-2005 (Lars Duening)
- (configure, machine.h.in, config.h.in) Added a configuration check
for SQLite3.
- (pkg-sqlite, many files) Added SQLite support (Bug #11).
04-Dec-2005 (Gnomi)
- (prolang.y) Private lfuns no longer hide simul-efuns.
- (prolang.y) Private lfuns can be hidden by public functions without
warning, ie. the former are now really invisible to inheritors. This
also corrects a crasher with multi-level virtual inherits.
- (prolang.y) Multiple virtual inheritance of the same program with
changing visibility is now handled with a better calculation of
the final visibilities. (Bug #362)
04-Dec-2005 (Lars Duening)
- (interpret.c) Calling an unbound lambda cleaned the control stack
twice, causing errors (Bug #374).
- (simul_efun.c) Only public simul-efuns can be called. This was always
valid for sefuns outside the 256-range, but now also applies to
normal sefuns as well (Bug #419)
- (simul_efun, prolang.y, closure.c, interpret.c) The number of direct
callable simul-efuns is now configurable in the simul_efun.h. I
also increased it to 65536 from 256.
- (closure.c) Simul-efuns were still called with call_other instead
of call_direct.
02-Dec-2005 (Lars Duening)
- (gcollect.c) Added a log output when all objects are data-cleaned, as
it might be the cause for some observed slowdowns.
- (closure.c, interpret.c) For completeness sake: removed the compilation
errors happening when disabling the new inline closures (Bug #423).
27-Nov-2005 (Lars Duening)
- (object.c) Efun present(): Modified the <n> search behaviour so that the
numbering is applied over both inventory and environment
together. Before, the numbering was individual in each
space, leading to situations where low-numbered objects in the
environment were hidden by those in the inventory (Bug #417).
- (object.c) Efun function_exists(): The 'FEXISTS_ALL' result also contains
information about the function's type, flags, and number of
arguments (Bug #410).
26-Nov-2005 (Lars Duening)
- (efuns.c) Efun sscanf(): Added test whether the constant characters after
a %-field also match - if not, the %-field is considered unmatched
(suggested by Largo).
- (efuns, func_spec) Efuns md5()/sha1(): Accept the number of iterations as
optional argument (Bug #418).
24-Nov-2005 (Lars Duening) (3.3.712)
- Created snapshot.
- (md5.c) The ROTATE_LEFT macro wasn't 64-bit clean (Bug #413).
- (interpret.c) Using foreach(), when looping over a mapping with no values,
or with only the index being extracted, the loop actually loops over the
mapping and not just the indices copied into an array (Bug #388).
- (object.c) Efun set_environment(): clear the RESET_STATE flag of
of the moved object's original environment, if any (Bug #387).
- (efuns.c) Efun md5()/sha1() can now hash arrays of numbers as well
(Bug #411).
- (xalloc.c) The string_copy() function checks if the requested
memory is actually allocated, throwing an error if not (Bug #397).
- (simulate.c) Errors during the processing of a fatal() will be
recognized and treated as double-fatal (Bug #408).
- (interpret.c) free_svalue() now recognizes the free of nested
structures and de-serializes them to avoid stack overflows (Bug #416).
- (Makefile.in, version.sh, patchlevel.h.in) Removed PRCS support.
24-Nov-2005 (Gnomi)
- (actions.c) When re-using a sentence structure for marker_sent,
the shadow_ob member wasn't cleared out, causing crashes
down the road (Bug #0000414).
- (closure.c) bind_lambda() doesn't ignore unbindable closures
when the second argument is missing (Bug #407).
09-Oct-2005 (Lars Duening)
- (closure.c) replace_program_lambda_adjust() forgot to clear the
object references from the auxiliary lambda it created (Bug #0000412).
08-Oct-2005 (Lars Duening)
- (closure.c) When freeing bound unbound_lambdas, the code forgot to
remove the reference to the creator object of the unbound_lambda.
- (closure.c) Efun symbol_function() leaked an object reference (Bug
#0000412).
- (closure.c, object.h) Made the object reference logs a bit more
expressive.
31-Oct-2005 (Philipp Hancke)
- (pkg-tls.c) When accepting a SSL connection, request a client
certificate. The driver itself won't check the correctness,
but the result will be available in the connection status.
30-Oct-2005 (Lars Duening) (3.3.711)
- Created snapshot.
29-Oct-2005 (Lars Duening)
- (backend.c) The backend call to cleanup_all_objects() is now
controlled with a low/high watermark logic, to prevent
repeated calls in consecutive backend cycles: if one cleanup
didn't remove enough destructed objects, it is unlikely
that immediately following ones will.
- (pkg-tls.c) The OpenSSL read/writes are now retried when necessary.
- (configure) When searching for the mysqlclient library in the
usual places, the configure script forgot to clear out the
cache flag.
- (smalloc.c) Removed a compilation error when SBRK_OK wasn't defined.
- (mstrings, many files) The find-in-table statistics were done
incompletely.
- (structs.c) The test for struct equivalence now recurses through
member structs; otherwise changes in an contained struct wouldn't
be reflected in the containing struct.
- (prolang.y) Clarified the 'Unknown type' error messages when
derefencing structs.
19-Oct-2005 (Lars Duening)
- (pkg-tls.c) tls_check_certificate() now returns the low-level API
values, and throws an error if the connection is not secure.
11-Oct-2005 (Lars Duening)
- (erq/erq.c, xerq/socket.c) Corrected compilation warnings.
- (lex.c) to_int() no longer accepts "x<num>" as valid sedecimal
notation (Bug #0000402).
10-Oct-2005 (Lars Duening)
- (backend.c) Added a clear_state() at the beginning of the
process_objects() loop, so that errors during the cleanup find
a consistent machine state (Bug #0000405).
09-Oct-2005 (Lars Duening)
- (simulate.c) If the catch() handling notices an out-of-memory
situation, the catch() is ignored. This also fixes an endless
recursion (Bug #0000406).
04-Oct-2005 (Lars Duening)
- (doc/concepts/overloading) New man page (thanks, Coogan!).
28-Sep-2005 (Lars Duening)
- (doc/efun/clone_object) Clarified the variable initialisation.
23-Aug-2005 (Lars Duening)
- (Makefile.in) The PRCS rules first check if PRCS is available.
20-Jun-2005 (Lars Duening) (3.3.710)
- (patchlevel.h.in, version.sh, mk-patchlevel.sh, Makefiles)
Modified the version numbering system to be compatible between
Subversion and PRCS.
20-Jun-2005 (Lars Duening) (3.3.709)
- (xalloc.c) xalloc used REPLACE_MALLOC before it was defined,
leading to compilation errors on systems supporting it (Bug #0000393).
19-Jun-2005 (Lars Duening) (3.3.708)
- (pkg-pgsql, func_spec) Added new efun pg_conv_string(), courtesy
of Philipp.
- (efuns.c) Added new flag setting '4' to get_type_info() for closures
(Bug #0000392).
- (parse.c) Possibly corrected a refcounting bug in handling prepositions
(Bug #0000391).
- (closure.c) Since the operators #'&, #'|, #'^ and #'! are now considered
efuns, the closure compiler skipped the special treatment of these.
As an added bonus of the correction, #'| and #'^ can now take
an arbitrary number of arguments, too. (Bug #0000389)
10-Jun-2005 (Lars Duening) (3.3.707)
- (gcollect, backend.c) If the number of destructed pending objects
exceeds the number of active objects, a cleanup of all objects
is triggered. Also, the incremental cleanup in each cycle
cleans at least the number of objects destructed in the cycle.
06-Jun-2005 (Lars Duening) (3.3.706)
- (object.c, sprintf.c, structs.c) Removed a couple compilation warnings
on x86-64.
15-May-2005 (Lars Duening) (3.3.705 = 3.4.0)
- (simulate.c) runtime_error(), runtime_warning() and heart_beat_error()
received a new argument 'caught' (Bug #0000385).
15-May-2005 (Lars Duening) (3.3.704)
- (object.c) Single-character operator closures like #'- couldn't
be restored in arrays due to some outdated hack in the parser
(Bug #0000384 and #0000386).
15-May-2005 (Lars Duening) (3.3.703)
- (sprintf) sprintf("%c", 0) returned an empty string instead of a
string with the 0 character, because the code used the system
sprintf() for this formatting internally (Bug #0000378).
14-May-2005 (Lars Duening) (3.3.702)
- (sprintf) Printing structures with "%O" or "%Q" in non-compact
mode also prints the names of the structure members (Bug #0000380).
13-May-2005 (Lars Duening) (3.3.701)
- (configure) Added a check to see if the system is using a broken iconv
(part of glibc 2.0-2.2) - this iconv can throw the driver into an
endless loop (Bug #0000377).
13-May-2005 (Lars Duening) (3.3.700)
- (lex.c) When adding strings in preprocessor conditionals, the lhs
string was freed twice, causing memory corruption (reported by Tobias).
24-Apr-2005 (Lars Duening) (3.3.699)
- (config.h.in, gcollect.c) Added a specific define LOG_NEW_CLEANUP
to enable the logging of the automatic cleanup activity. This
is useful if the cleanup is suspicious of hogging the CPU.
- (main.c, pkg-tls.c) Improved the documentation for the TLS commandline
options, removed a crasher when only one of the two cert locations
is specified (thanks, Coogan!).
- (xalloc.c) Added warning if ptmalloc is used under FreeBSD.
- (configure) New configuration parameter '--with-tls-path' allows
to specifiy a non-standard location for the TLS installation.
01-Apr-2005 (Lars Duening) (3.3.698)
- (pkg-tls.c) Added FreeBSD 5.4 compatibility (thanks, Ralph!).
- (simulate, many files) Renamed error() to errorf() due to a collision
with gnutls.h include files under newer compilers.
01-Apr-2005 (Lars Duening) (3.3.696, .697)
- (port.c) Corrected a C99 incompatibility (thanks, Ralph!).
- (simulate.c, backend) The commands/s and compiled lines/s statistics
are part of the 'status tables' output.
- (gcollect.c) Added a missing variable initialisation (thanks, Ralph!).
27-Mar-2005 (Lars Duening) (3.3.695)
- (patchlevel.h, main.c, lex.c) Simplified the version number handling
in anticipation of the 3.4 branch.
27-Mar-2005 (Lars Duening) (3.3.694)
- (backend.c) I reintroduced the numeric limit on the number of objects
to data-clean, as even with the random factor it could happen
that the driver tries to cleanup hundreds of objects in one cycle.
The numeric limit is calculated such that all listed objects can
be cleaned in half of the configured cleanup cycle.
27-Mar-2005 (Lars Duening) (3.3.693)
- (slaballoc.c) Corrected the free-steps statistics.
- (backend.c) The data-cleanup didn't pay attention to the backend
timing, occasionally causing the driver to clean up thousands
of objects in one cycle.
- (gcollect.c) The cleanup of the fixed datastructures (wizlist, driver
hooks) did not observe the overall cleanup timing - on muds with
lots of data in the default wizlist entry this lead to annoying
lags.
25-Mar-2005 (Lars Duening) (3.3.692)
- (simulate.c) Modified the callback setup so that efun callbacks
can take normal lvalues; and timed function/closure callbacks
take protected lvalues - but not vice versa.
24-Mar-2005 (Lars Duening) (3.3.691)
- (gcollect.c) Added a log output for the time it takes to data-clean
objects.
- (config.h.in, slaballoc.c) The sorting of the partial slab freelists
is now configurable by hand.
- (slaballoc.c) Added weighted-average statistics for number of steps
per freed block.
- (interpret, backend.c, call_out.c, efuns.c heart_beat.c, simulate.c)
Added a statistic (last and time-weighted average) about the total
execution ticks and time per LPC thread.
20-Mar-2005 (Lars Duening) (3.3.690)
- (backend, main, simulate.c) Updated the last-data-cleaned statistics
to be weighted over time; and generalized the statistics implementation
in general.
18-Mar-2005 (Lars Duening) (3.3.689)
- (backend.c) Improved the synch heartbeat condition expression.
- (heartbeat.c) I had forgotten to remove all remnants of an exploratory
change.
17-Mar-2005 (Lars Duening) (3.3.688)
- (backend.c) The synchronous heartbeat timing wasn't initialised properly.
13-Mar-2005 (Lars Duening) (3.3.687)
- (main, backend.c, heartbeat.c) The ALARM_TIME and HEART_BEAT_INTERVAL
time are now configurable at compile and start time (based on
a patch by Gnomi).
12-Mar-2005 (Lars Duening) (3.3.686)
- (func_spec, object.c) The efun tell_object() can now take an array,
mapping, struct or object as second argument, calling catch_msg() in
the target in that case (Bug #0000354).
- (func_spec, object.c) The efuns tell_room() and say() can now take a
mapping, object or struct instead of an array as second argument for
the catch_msg() mechanism.
09-Mar-2005 (Lars Duening) (3.3.685)
- (mapping.c) The hash/hybrid statistics were somewhat off.
- (gcollect, backend.c, simulate.c) The default time interval for
a data cleanup is now available as macro in gcollect.h . And
since we have that time interval, the number-to-process limit
in process_objects() didn't make much sense anymore.
06-Mar-2005 (Lars Duening) (3.3.684)
- (slaballoc.c) Tuned the allocator: the partially-used slab lists
are now lazily order for better usage.
- (interpret.c) For an uncallable closure, the code forgot to clean
out the CSP before throwing the error (Bug #0000374).
- (doc/efun/snoop) Corrected the description of the return value (Bug
#0000372).
26-Feb-2005 (Lars Duening) (3.3.683)
- (efuns.c) regreplace() didn't update the stack pointers properly,
causing crashes down the road (reported by Bardioc).
25-Feb-2005 (Lars Duening) (3.3.682)
- (mapping.c) Indexing a mapping with strings didn't quite work yet: the
hash computation didn't take into effect that strings are no longer
tabled just to use them as rvalue indices.
- (simulate.c) If a callback didn't have a valid object associated with
it (e.g. unbound_lambda()s), the code forgot to remove the arguments
from the stack (Bug #0000370).
- (simulate.c) Uncalleable closures given as callbacks are now detected
and cause a runtime error (Bug #0000370).
- (simulate.c) A runtime in a regreplace() substitution closure leaked
the regexp structure. I changed the whole thing to automatic
cleanup (Bug #0000370).
24-Feb-2005 (Lars Duening) (3.3.681)
- (mstrings) Re-integrated the stringtable structures into the strings:
on the whole, the majority of strings will be tabled so reducing
the overhead for this case is beneficial.
24-Feb-2005 (Lars Duening) (3.3.680)
- (mstrings, closure.c, interpret.c) Debugging 3.3.679: reallocating a
string 'under the hood' is no longer possible as the string data is now
an integral part of the string structure. This disables the
mstr_append() optimizations.
21-Feb-2005 (Lars Duening) (3.3.679)
- (mapping.c) get_map_lvalue() didn't correctly check the mapping size:
it checked against the current and not the future size (Bug #0000369).
- (mapping, simulate.c) Added a statistic for hash and hybrid mappings (for
now just the count).
- (mstrings, gcollect.c, array.c, closure.c, i-svalue_cmp.h, interpret.c,
simulate.c) Simplified the string implementation to reduce the overhead.
21-Feb-2005 (Lars Duening) (3.3.678)
- (slaballoc.c, smalloc.c) I hate crashers which don't happen on my machine:
the merging of the esbrk() result with adjacent free blocks crashed
the driver (Bug #0000368).
20-Feb-2005 (Lars Duening) (3.3.677)
- (configure, mapping.c, simulate) It is now possible to determine
the max number of mapping entries (keys) in addition to the total
mapping size (Bug #0000360).
- (main.c) New commandline option '--max-mapping-keys' to determine
separately the maximum number of entries in a mapping.
20-Feb-2005 (Lars Duening) (3.3.676)
- (smalloc.c) Corrected a crasher in realloc().
- (smalloc.c, slaballoc.c) New memory allocated with esbrk() is now
coagulated with existing free memory if possible (Bug #0000364).
20-Feb-2005 (Lars Duening) (3.3.675)
- (pkg-tls.c) Removed compilation errors when using GnuTLS.
- (comm.c) The charmode/noecho mode is changed in remove_input_to()
only if the first pending input_to() is removed. Hopefully this
fixes Bug #0000363.
20-Feb-2005 (Lars Duening) (3.3.674)
- (prolang, simulate.c) During the compilation of the master object, simul
efuns are disabled.
20-Feb-2005 (Lars Duening) (3.3.673)
- (smalloc.c, slaballoc.c) The memory block size computation failed
on large blocks, giving bad statistics.
13-Feb-2005 (Lars Duening) (3.3.672)
- (pkg-tls.c) Philip provided a tls_check_certificate() efun.
12-Feb-2005 (Lars Duening) (3.3.671)
- (pkg-tls.c) My change was premature.
- (mstrings.c) The printing of percent values was missing a conversion
to float in order to actually compute the percent values.
11-Feb-2005 (Lars Duening) (3.3.670)
- (mstrings.c) The extended string statistics didn't count the tabled
comparisons correctly.
- (lex.c) New macro __BOOT_TIME__ expands to the time() the driver
was booted.
- (comm, pkg-tls.c) New interactive_t flag 'outgoing_conn' is TRUE for
connections openened by net_connect(). This is used by TLS (OpenSSL)
to set the proper state for the session.
- (slaballoc.c, smalloc.c) When using brk() for core allocation, the
returned memory address was one word too low.
09-Feb-2005 (Lars Duening) (3.3.669)
- (object, simulate.c, backend.c) The list of destructed-but-referenced
objects is scanned for deallocatable objects only when a flag
signals that there actually are candidates. This should reduce
the CPU load when destructed objects accumulate.
- (mstrings, various files) Added statistics to check how much the
shared string table actually helps performance. They are printed
in the 'status tables' command.
07-Feb-2005 (Lars Duening) (3.3.668)
- (smalloc.c, slaballoc.c) The large block handler is now capable
of handling blocks up to 2**32 words. This is especially useful
on systems using malloc() instead of sbrk() for core memory
allocation (reported by Menaures).
- (efuns.c, smalloc.c, slaballoc.c) The extended malloc statistics
are now separate from 'status malloc' in 'status malloc extstats'
(Bug #0000358).
01-Feb-2005 (Lars Duening) (3.3.667)
- (pkg-mccp.c) In start_mccp_compress(), the interactive pointer
was used before being set. I moved the set&check forward
(Bug #0000361).
- (pkg-tls.c) The success code passed to the TLS-handshake callback
was incorrect: on success, it was passed as '1' instead of '0'
(reported by Philipp).
31-Jan-2005 (Lars Duening) (3.3.666)
- (xalloc.c) Forgot to remove a fatal() used to debug slaballoc (Bug
#0000359).
- (slaballoc.c) Removed compiler warnings (Bug #0000358).
- (mregex.c) Great - Kerberos has a function 'error_message()' in
a global include file (reported by Rajko).
- (comm.c) Do not print the prompt to interactives which are currently
negotiating a TLS handshake.
- (pkg-tls.c) During the execution of a tls-init callback, the callback
is protected against premature freeing.
- (interpret.c) The range foreach (i: __INT_MIN__ .. __INT_MAX__)
now works as well (I added an internal flag for this case to allow one
extra pass through the loop (Bug #0000355).
- (pkg-mccp.c) With the telnet machine disabled, it is now possible to
still use outgoing compression with start_mccp_compression(), assuming
a suitable client program is used on the other end (suggested by
Philipp).
30-Jan-2005 (Lars Duening) (3.3.665)
- (interpret.c) foreach(i: x..__INT_MAX__) never executed because
of internal overflow. By changing the meaning of the internal 'count'
from 'upper limit' to 'iterations left', this overflow was
avoided (Bug #0000355).
30-Jan-2005 (Lars Duening) (3.3.664)
- (xalloc, slaballoc, configure, efuns.c) Added new 'slaballocator'
which provides a better use of the free small block storage.
- (interpret.c) When using foreach() on references, the protector
structure was allocated too small - a stupid typo (Bug #0000353).
22-Jan-2005 (Lars Duening) (3.3.663)
- (actions, simulate, gcollect.c) Unused action and shadow sentences
are no longer held in a freelist, but instead returned directly
to the memory allocator.
22-Jan-2005 (Lars Duening) (3.3.662)
- (efuns.c) Deep-copying a mapping employing shared arrays as keys (e.g. ([
arr, ([ arr ]) ])) prematurely freed the copied array as the code
didn't keep track of the copied data itself, but of the svalues it was
stored in - and for mapping keys these svalues were local variables
(Bug #0000351).
- (comm.c) If telnet-negs were turned off in linemode, the driver started
treating lineends as if in charmode, which the higher routines
didn't expect (reported by Philip).
19-Jan-2005 (Lars Duening) (3.3.661)
- (gcollect.c) When a program was swapped out, the GC didn't clear the refs
of its name (Bug #0000348).
- (mregex.c) If a regexp function was asked to use both RE_TRADITIONAL
and RE_PCRE, and the regexp doesn't compile for both, the resulting
error leaked some structures (Bug #0000349).
17-Jan-2005 (Lars Duening) (3.3.660)
- (gcollect.c) The names of programs of destructed objects didn't
get their references cleared properly in a GC, leaking the
program names if the destructed object was held by
a self-reference (Bug #0000099).
- (closure.c) Determining the closure location leaked the
program's name (Bug #0000347).
16-Jan-2005 (Lars Duening) (3.3.659)
- (configure) Corrected the mySQL library check (Bug #0000346).
14-Jan-2005 (Lars Duening) (3.3.658)
- (interpret, array.c, mapping.c, parse.c, simulate.c, files.c)
The new function push_error_handler() simplifies the creation
of T_ERROR_HANDLER values.
- (object.c) Exceptions during a restore no longer leak values
(Bug #0000344).
- (smalloc.c) The extended large-free statistics was still off.
14-Jan-2005 (Lars Duening) (3.3.657)
- (array.c) Efun unique_array() no longer leaks memory if aborted
by an exception (Bug #0000345).
14-Jan-2005 (Lars Duening) (3.3.656)
- (gcollect.c, object.c) The GC forgot to clean out the refcounts
of the names of the destructed objects, which meant that if
the destructed object was held by a self-reference, the name
would receive an extra reference count and leak until the
next GC (Bug #0000343).
14-Jan-2005 (Lars Duening) (3.3.655)
- (backend.c) Tweak to the process_objects() loop: the loop now
really allows to have a given number of objects being cleant
per loop, not just checked for being cleanable.
14-Jan-2005 (Lars Duening) (3.3.654)
- (smalloc.c) Small block splits now make sure, that the remaining
block has a minimum size. This size is currently configured
to 3 words = 12 Bytes, as the driver doesn't need that many
of the even smaller blocks.
- (object, gcollect.c, backend.c) The data cleanup is now timed
independent of the time of the last reference: similar to
reset the cleanup takes place in random intervals based
on the configured cleanup-time (or one hour if the cleanup-time
is 0).
13-Jan-2005 (Lars Duening) (3.3.653)
- (util/xerq/erq.c) The erq didn't check if the calculated timeout
for the next select() had become negative. (Bug #0000342).
12-Jan-2005 (Lars Duening) (3.3.652)
- (mapping.c) Indexing a 0-width mapping returned pointers to memory outside
the mapping, causing weird crashes. The solution is to return pointers
to the global const1 (when found), or to a local svalue-0 instance
(when not found and a lvalue is requested) (Bug #0000341).
10-Jan-2005 (Lars Duening) (3.3.651)
- (configure) Added yet another path to the search for a mySQL installation.
09-Jan-2005 (Lars Duening) (3.3.650)
- (doc/efun/send_udp) Added a note about the blocking behaviour of
name lookups.
- (configure) The mySQL test was not quite correct.
09-Jan-2005 (Lars Duening) (3.3.649)
- (configure) Added another path to the search for a mySQL installation.
08-Jan-2005 (Lars Duening) (3.3.648)
- (settings/timewarp) New settings file.
- (mudlib/sys/files.h, files.c) Efun get_dir() can now return
access times and file modes (suggested by Mats).
08-Jan-2005 (Lars Duening) (3.3.647)
- (configure, pkg-mysql.c) Adjusted the search for the mySQL include
files to allow for local installations (Bug #0000338)
08-Jan-2005 (Lars Duening) (3.3.646)
- (func_spec, lex, prolang.y, interpret.c) New pragma 'range_check'
allows to check the validity of array ranges at runtime - these
are the range checks currently controlled by the warn_deprecated
pragma.
08-Jan-2005 (Lars Duening) (3.3.645)
- (smalloc.c) Corrected some bugs in the extended statistics.
- (comm, simulate.c, mudlib/sys/debug_info.h) Added statistics for
the incoming network traffic, and also display the total
amount of data sent/received in the 'status tables' command.
04-Jan-2005 (Lars Duening) (3.3.644)
- (main.c, doc/driver/invocation, INSTALL) Corrected the documentation
(Bugs #0000333 and #0000335).
31-Dec-2004 (Lars Duening) (3.3.643)
- (mapping.c) Corrected the hashing function so that for efun/sefun/operator
closures the object information is no longer part of the hash. Without
that, mappings treat closure keys differently than the '=='/'!='
operators, which is not a good thing.
31-Dec-2004 (Lars Duening) (3.3.642)
- (lex.c) Factored the handling of preprocessor statements and of
closures out of the yylex switch.
29-Dec-2004 (Lars Duening) (3.3.641)
- (closure, object.c) The driver internally now uses the closure creation
functions as well - there were more places where lambdas were
initialized by hand than I expected to be.
- (closure.c) The location determination for closures didn't check
carefully enough if the pc was correct or not.
28-Dec-2004 (Lars Duening) (3.3.640)
- (pkg-mysql.c) Most mySQL efuns are now privileged as ("mysql", "<efun
name>") (Bug #0000318).
- (pkg-pgsql.c) All Postgres efuns are now privileged as ("pgsql", "<efun
name>").
28-Dec-2004 (Lars Duening) (3.3.639)
- (interpret) inter_pc is now always visible, as it's needed by the
closure origination tracking.
- (closure) Added functions to create basic closure types, primarily
so that other closure creators (like FinalFrontier's stringcompiler)
don't have to do it by hand (and break with every change to the
closure structure).
27-Dec-2004 (Lars Duening) (3.3.638)
- (mudlib/sys/tls.h) Corrected (Bug #0000331)
- (doc/efun/m_values) Explained the lack of predictable order in the result
(Bug #0000329)
- (closure, gcollect.c, interpret.c) Non-operator/efun/sefun closures now
keep a reference to the program location where they are created, for
more informative printing (error messages and otherwise).
23-Dec-2004 (Lars Duening) (3.3.637)
- (comm.c, sys/input_to.h) The input_to() flag INPUT_APPEND allows
to queue input_to()s (suggested by Volker Behr).
23-Dec-2004 (Lars Duening) (3.3.636)
- (lex, efuns.c) Another small correction to the number parsing in to_int():
negative numbers exceeding the limits are properly mapped to INT_MIN,
not -INT_MAX. Unfortunately too large negative numbers seen by
the LPC compiler are still mapped to -INT_MAX due to the lack
of proper overflow handling in the compiler; however, the compiler
now emits a warning on these occasions.
- (comm.c, pkg-tls.c) More TLS bugfixes by Fippo and Peng (Bug #0000138 and
#0000140).
22-Dec-2004 (Lars Duening) (3.3.635)
- (pkg_tls, func_spec, configure) Incorporated the GNUTLS patches from Peng
and Gawain: use the new gnutls parameter generation if available;
properly handle threading; don't request a client certificate since we
don't need it; and the new fun tls_available() returns whether the
TLS package could be initialized or not (Bug #0000082).
22-Dec-2004 (Lars Duening) (3.3.634)
- (func_spec, efuns.c) New efun regexp_package() to determine the
currently active default regexp package.
22-Dec-2004 (Lars Duening) (3.3.633)
- (prolang.y) The no-warn-deprecated opcodes weren't included in the
size calculations for the lvalue indexing shuffling.
- (lex.c, efuns.c) The overflow checking in the number parsing routine
was overeager, causing Evermore to no longer boot. The checking
now really compares against the largest possible number, instead
of simply checking the sign (Bug #0000327).
21-Dec-2004 (Lars Duening) (3.3.632)
- (lex.c) The number parsing now recognizes overflows and forces these
numbers to be LONG_MAX (Bug #0000327).
- (mstrings.c) mstring_realloc_string() (used for example to append
to strings) didn't check if the string was indirectly tabled,
potentially freeing memory which was still in use otherwise
(reported by Bardioc).
- (settings/evermore) Updated to the latest version.
- (prolang.y, interpret.c) The array indexing warnings are now controlled
by the warn_deprecated pragma (Bug #0000325).
18-Dec-2004 (Lars Duening) (3.3.631)
- (interpret.c) Assignments to negative-sized ranges now throw
an error; indexing of ranges with out of bounds limits generate
warnings (Bug #0000325).
- (interpret.c) In DEBUG mode: when setting up an inherited call, check
that the given inherit index is sensible.
17-Dec-2004 (Lars Duening) (3.3.630)
- (xalloc) Added a new function prexalloc() to re-allocate permanent
memory.
- (pkg-tls.c) The allocator for the TLS package of course needs to
allocate permanent memory so that the GC won't deallocate
the library's memory (Bug #0000323).
11-Dec-2004 (Lars Duening) (3.3.629)
- (gcollect.c) Closures found to be bound to destructed objects are
replaced by 0s, not #'undef closures (Bug #0000322).
- (closure) The function store_undef_closure() is no longer needed.
09-Dec-2004 (Lars Duening) (3.3.628)
- (xalloc.c) Modified xalloc() to accept allocations of size 0 (again as the
C standard demands).
07-Dec-2004 (Lars Duening) (3.3.627)
- (pkg-tls.c) Added allocation wrapper so that gnutls allocations can
be traced using the driver's mechanisms (thanks, Peng!)
- (xalloc.c) Modified rexalloc() and xfree() to accept NULL pointers
as well (as the C standard demands) (Bug #0000132).
06-Dec-2004 (Lars Duening) (3.3.626)
- (erq/erq.c) The erq didn't quite use correct data lengths when sending UDP
packets, either (thanks, Tobias!)
03-Dec-2004 (Lars Duening) (3.3.624, .625)
- (erq/erq.c) The erq errorneously assumed a constant data length
when receiving UDP packets (thanks, Tobias!)
- (comm.c, object.c) The driver didn't check if the privilege_violation()
called for input_to() or rename_object() destructed the object
in question (Bug #0000316).
30-Nov-2004 (Lars Duening) (3.3.623)
- (comm.c) Fixed a memory leak when a no-bank input_to was denied (Bug
#0000143)
29-Nov-2004 (Lars Duening) (3.3.622)
- (interpret.c) When indexing a string for assignment, the driver failed
to duplicate the string, leading to interesting effects if the string
was used as mapping key (reported by Andre).
27-Nov-2004 (Lars Duening) (3.3.621)
- (interpret.c) When calling inherited functions in objects with virtual
parents, the function adjusting the offsets always returned NULL
instead of the pointer to the parent. This was a fallout from the
closure change.
26-Nov-2004 (Lars Duening) (3.3.620)
- (Makefile.in, doc/man/ldmud.1) Added the automatic generation of a manpage
from the drivers '--longhelp' output.
- (src/bugs, src/done, src/wk) Moved the data from these directories
into the bugtracker.
26-Nov-2004 (Lars Duening) (3.3.618, .619)
- (closure.c) Calls to explicitely inherited lfun closures weren't compiled
correctly in lambda()s (Bug #0000145).
25-Nov-2004 (Lars Duening) (3.3.617)
- (prolang.y) When the new inline closures were disabled, the LPC compiler
produced incomplete code for the inline closure constants, and
the interpreter didn't interpret it correctly either.
24-Nov-2004 (Lars Duening) (3.3.616)
- (closure, gcollect.c, interpret.c, object.c prolang) Implemented proper
closures explicitely referencing inherited functions.
22-Nov-2004 (Lars Duening) (3.3.615)
- (comm.c) Efun net_connect(): on multihomed machines the created
socket is bound to the hostname given with the --hostname option (Bug
#0000137).
15-Nov-2004 (Lars Duening) (3.3.614)
- (efuns.c) You learn a new thing every day: I never realized that
strtol() supports "+34" and similar - efun to_int() can now
interpret that again, too (reported by Bardioc).
13-Nov-2004 (Lars Duening) (3.3.613)
- (lex.c, efuns.c) Embarassing: the number parsing method assumed that the
string at least started with a digit - this broke to_int().
(Bug #0000141)
12-Nov-2004 (Lars Duening) (3.3.612)
- (pkg-alists.c) Efun insert_alist() no longer returned the insertion
position for keys not yet in a key array (reported by Bardioc).
11-Nov-2004 (Lars Duening) (3.3.611)
- (efuns.c, lex) Efun to_int() now supports the '0x', '0b', and '0o'
bases (suggested by Steve Goucher).
30-Oct-2004 (Lars Duening) (3.3.610)
- (func_spec, object.c) Introduced the (str, n) form for efun present()
(Bug #0000134).
26-Oct-2004 (Lars Duening) (3.3.609)
- (smalloc.c) Ok, ordering the small block freelists was a bad idea - I
removed that now. Ordering the large block freelists doesn't seem
to make a performance difference, so I keep it in for now.
24-Oct-2004 (Lars Duening) (3.3.608)
- (backend.c) Reduced the frequence of data-cleanup such that at least
time_to_clean_up seconds (or 3600 seconds) must have passed since
the last reference.
- (smalloc.c) smalloc now supports allocations of 0 byte length (needed
to replace malloc()).
14-Oct-2004 (Lars Duening) (3.3.607)
- (comm.c) The NOECHO hook call specified only two arguments when
three were required (reported by Bardio and Steve G.).
11-Oct-2004 (Lars Duening) (3.3.606)
- (mregex.c) Added a number of NULL pointer checks to the deallocation
of regular expressions (reported by Bardioc, #0000130, #0000135).
29-Sep-2004 (Lars Duening) (3.3.605)
- (smalloc.c) Corrected a bug in the SMALLOC_ORDER_FREELIST code for
small blocks: the code forgot to store the block size into the
free blocks, which caused the defragment code to do wondrous things
(reported by Bardioc).
27-Sep-2004 (Lars Duening) (3.3.604)
- (pkg_tls.c) Corrected the callback handling for tls_init_connection()
(Bug #0000131).
- (driver.h) Added a macro MIN() for those systems which don't have it.
16-Sep-2004 (Lars Duening) (3.3.603)
- (config.h.in, smalloc.c, xalloc, main.c, sysmalloc.c, xptmalloc.c)
New manual config.h macro MALLOC_EXT_STATISTICS enables extended
block statistics in smalloc. The statistics can be retrieved
with debug_info(DINFO_DATA, DID_MEMORY), and are also printed as
part of the 'status malloc' command. This is an experiment to
see if we can get more information about the small heap
fragmentation this way.
15-Sep-2004 (Lars Duening) (3.3.602)
- (config.h.in, smalloc.c, main.c) New manual config.h macro
SMALLOC_ORDER_FREELISTS instructs smalloc to keep its freelists ordered
by block address. This is an experiment to see if the high heap
fragmentation can be reduced this way.
12-Sep-2004 (Lars Duening) (3.3.601)
- (prolang.y, lex) New pragma (no_)warn_function_inconsistent to control
the handling of redefined functions which differ in return or argument
types. This is intended to easen the adaptation of legacy mudlib
code (suggested by Wayne).
12-Sep-2004 (Lars Duening) (3.3.600)
- (prolang.y) When checking the redefinition of inherited variables, do
allow the redefinition of static inherited variables with other
static variables (it will generated warning, though). Also the
equivalency of nosave and static was applied too late (reported by
Willem).
- (func_spec, efuns.c, main) Added an 'exit code' argument to the shutdown()
efun (Bug #0000129).
- (func_spec, interpret.c, prolang.y) The pragma warn-deprecated is now
expressed through a prefix bytecode where appropriate (Bug #0000059,
#0000093).
09-Sep-2004 (Lars Duening) (3.3.599)
- (mregex.c) On a collision in the hash table, the regdata_t structure
was freed with a call to free_regexp() - not good (Bug #0000128).
07-Sep-2004 (Lars Duening) (3.3.598)
- (main, mregex.c, simulate.c) The H_REGEXP_PACKAGE hook can now accept
the value 0 to fall back onto the package defined by the commandline
arguments/configuration.
06-Sep-2004 (Lars Duening) (3.3.597)
- (ed.c, lex.c, mregex) Removed USE_PCRE remnants which among other things
disrupted compilation (Bug #0000126).
04-Sep-2004 (Lars Duening) (3.3.596)
- (mregex, simulate.c, efuns.c) Implemented the concurrent use of both
regexp packages.
04-Sep-2004 (Lars Duening) (3.3.595)
- (configure, main.c, simulate.c) Added the glue to select a default
regexp package via commandline option or driver hook. The regexp
logic itself is still unchanged.
04-Sep-2004 (Lars Duening) (3.3.594)
- (mregexp, ed.c) Changed the regexp implementation to use a pImpl
idiom - this will allow to use traditional regexps and PCRE
in parallel.
04-Sep-2004 (Lars Duening) (3.3.593)
- (comm.c, simulate.c) Added new input_to() flag 'INPUT_LOCAL' to switch
only the driver side input mode between LINE and CHAR (Bug #0000124).
03-Sep-2004 (Lars Duening) (3.3.592)
- (interpret.c, simulate.c) Removed memory leaks (thanks, Gnomi!)
(Bug #0000120).
- (sprintf.c) Too large fieldsizes or precisions are caught (Bug #0000119).
- (closure, object.c) Some operator closures were saved using the wrong
names, making the restoration impossible. Also, restoring closures
within arrays wasn't robust enough (Bug #0000118).
- (comm.c) Clarified the warnings for input_to modechanges for objects
with telnet disabled (Bug #0000124).
- (comm.c) When switching out of CHARMODE, the driver accidentally
discarded any pending input lines after the current one. (thanks,
Gnomi) (Bug #0000123)
01-Sep-2004 (Lars Duening)
- (pkg-tls.c) Added a bugfix to the session creation (thanks, Phillipp!)
31-Aug-2004 (Lars Duening) (3.3.591)
- (prolang.y) The real correction to the memory corruption problem: it
happened when an inline closure returned a struct, because the
compiler derefenced the returntype entry during the cleanup even
though it was an uncounted reference. The problem however showed
up only when the compilation failed and the struct involved was
a private struct, because in all other cases the struct had enough
references left to survive.
30-Aug-2004 (Lars Duening) (3.3.590)
- (prolang.y) The move of the PREPARE_INSERT() in the last patch caused
the driver to generate faulty bytecode.
- (prolang.y) Function definitions didn't count the reference for the
returntype, which lead to memory corruption/crashes when handling
struct returntypes. Unfortunately now we have a memory leak
when structs are used as returntypes - there is something to be said for
using C++... (reported by Bardioc).
23-Aug-2004 (Lars Duening) (3.3.589)
- (prolang.y) Removed a C99 construct which broke compilation on C90
compilers. I hope. (Bug #0000116).
23-Aug-2004 (Lars Duening) (3.3.588)
- (array.c, pkg-mccp.c) Removed compiler warnings (thanks, Andre).
22-Aug-2004 (Lars Duening) (3.3.587)
- (interpret.c) Calls from destructed objects to other objects
(including simul-efun calls) now elicit a warning (Bug #0000113).
- (configure, config.h, mregex, pkg-pcre, main.c) The driver now tries
to use the system's PCRE library if available, while offering an
override to use the builtin package regardless.
21-Aug-2004 (Lars Duening) (3.3.586)
- (interpret.c) If a lambda was executed inside a catch() and threw an
error, the error routines didn't clean up the protective reference
held in current_lambda (Bug #0000114).
- (efuns.c) to_string(closure) leaked the closure (Bug #0000114).
- (ed.c) The 'M' command leaked the regular expression (Bug #0000114).
19-Aug-2004 (Lars Duening) (3.3.585)
- (prolang.y, interpret.c, func_spec) Float variables without initializer
are now properly initialized to float-0 instead of number-0 (reported
by Bardioc).
- (pkg-mccp.c) When ending a MCCP connection failed due to an error, the
zlib datastructures weren't deallocated (Bug #0000111, fix by Alwin).
08-Aug-2004 (Lars Duening) (3.3.584)
- (simulate.c) When printing a load-object error with a long filename,
the message is limited to the length of the error message buffer (Bug
#0000109).
- (simulate, xalloc.c) The length of the error message and error format
buffer are now given by two macros, to facilitate easier adaptation
of depending program segments.
01-Aug-2004 (Lars Duening) (3.3.583)
- (backend.c) If the garbage_collection() couldn't open a passed file,
the filename was leaked (reported by xtian).
- (mstrings.c) Corrected the statistics display for itabled strings.
- (smalloc.c) The allocated small block statistics was confused by
the mem_increment() feature.
29-Jul-2004 (Lars Duening) (3.3.582)
- (lex.c) The macros __FLOAT_MIN__ and __FLOAT_MAX__ now reflect
the limits for 'double' floats (Bug #0000101).
28-Jul-2004 (Lars Duening) (3.3.581)
- (call_out.c) When printing the uid for an object with an error, make
sure that there is an uid to print (reported by Bardioc).
- (mudlib/crashleak.c) Donated by Menaures: a modification of the crasher
object, looking for memory leaks (Bug #0000102).
25-Jul-2004 (Lars Duening) (3.3.580)
- (interpret.c) If the struct lookup operator receives arguments of
the wrong type, it just throws an error instead of crashing the
driver, as this can happen with careless funcall(#'->)s (Bug #0000097).
- (efuns.c) to_array('symbol) crashed the driver because it tried to
free the symbol as a string (Bug #0000097).
- (interpret.c) The trace collection into an array now uses unlimited
arrays, otherwise a too-small limit would cause the driver
to enter an endless error loop (Bug #0000097).
- (object, gcollect.c) If a save_{object,value} failed and thus
left a pointer table behind, a following GC would free the table
without resetting the pointer. The next save_{object, value} would
then use the freed memory (Bug #0000097).
25-Jul-2004 (Lars Duening) (3.3.579)
- (xerq/erq.c) If select() in the main loop was interrupted by a signal,
the ERQ still proceeded to evaluate the fd-sets.
- (xerq/execute.c) The debug logging of the execute parameters didn't
work.
- (comm.c) If an ERQ callback function accepts an array, the numbers
are now all passed on positive (range 0..255).
24-Jul-2004 (Lars Duening) (3.3.578)
- (xerq/defs.h) ERQ_DEBUG level wasn't properly translated into
debug output.
- (xerq/socket.c) Added a few level 2 diagnostics.
- (interpret.c) Removed two left-over DEBUG diagnostics (reported
by Bardioc).
- (comm.c) input_to() didn't properly check its arguments (Bug #0000098).
- (call_out.c) If a call-out causes an error, all further call-outs for
the same user are re-scheduled to the next cycle. This is mainly
meant to stop run-away call-outs causing too-long-evaluations while
re-scheduling calls to themselves (Bug #0000095).
21-Jul-2004 (Lars Duening) (3.3.577)
- (array.c, interpret.c) Removed a number of memory leaks caused by
runtime errors during array operations which exceeded the max
array size (Bug #0000096).
- (comm.c) If input_to() wasn't given a valid prompt, it leaked
the memory for the internal input-to structure (Bug #0000096).
- (comm.c) If binary_message() was given an array of non-ints, it leaked
the memory for the internal message string (Bug #0000096).
- (bitstrings.c) The bitstring operators would leak the memory for
the result if encountering an invalid bitpattern (Bug #0000096).
- (files.c) If tail() couldnt' find the file, it didn't free the
string with the pathname (Bug #0000096).
16-Jul-2004 (Lars Duening) (3.3.576)
- (interpret.c) When printing a warning during the creation of in inline
closure, the global stack pointer was one too low (thanks, Gnomi)
(part of Bug #0000091)
14-Jul-2004 (Lars Duening) (3.3.575)
- (prolang.y) The 'missing return' warning is no longer triggered if
a function ends with raise_error() or throw().
- (comm.c) Efun input_to(): the check for a change in the CHARMODE mode
did not properly check if the command_giver was valid - this could
cause a segfault if input_to() was used without an interactive (Bug
#0000090).
- (smalloc.c) If the allocation exceeds the numerical limits and the
allocation is not in MALLOC_SYSTEM mode, a simple diagnostic is printed
and the allocation fails. This way, an " "*MAX_INT won't crash
the mud. (Bug #0000086)
- (array.c) The array allocation now checks if the size of the requested
array exceeds the numerical limits (part of Bug #0000091)
13-Jul-2004 (Lars Duening) (3.3.574)
- (prolang.y) The 'public foo() shadows private bar()' warning no longer
warns about the __INIT() function (Bug #0000085).
- (efuns.c) Removed a memory leak in ctime( <vector> ) (Bug #0000087).
- (simulate.c) In catch(), the check if there are enough evals left
was done before the reserve had been added to the eval cost. Since
the handling for this case was changed to a runtime error, this
caused the error handler to subtract a reserve which wasn't there,
in the process messing up eval cost handling (Bug #0000088).
- (simulate.c) The restoration of eval limits didn't handle the case
of a fixed eval cost (USE_EVAL_COST > 0) correctly if the process had
used more than the given amount: the total eval cost was set to the
given amount, instead of adding the amount to the previous eval cost
value (Bug #0000077).
12-Jul-2004 (Lars Duening) (3.3.573)
- (actions.c) Efun remove_action() didn't check if the sentence under
scrutiny is a true verb or a shadow sentence - this caused a crash
if a shadow object executed remove_action(1, shadowee) (Bug #0000080).
11-Jul-2004 (Lars Duening) (3.3.572)
- (comm.c, actions.c) On a too long message or command, print the
first 200 characters as debugging aid (Bug #0000078).
10-Jul-2004 (Lars Duening) (3.3.571)
- (interpret.c) The tracedepth was always increased, but only decreased
when traceing was active (#0000070)
10-Jul-2004 (Lars Duening) (3.3.570)
- (pcre/) PCRE no longer directly changes the EVAL_COST, instead the
MATCH_LIMIT option is used to limit the execution of backtracking
expressions. Updated the documentation. (Bug #0000075)
08-Jul-2004 (Lars Duening) (3.3.569)
- (pcre/) Upgraded PCRE to version 4.5; however, there is additional work
to be done as PCRE 4.5 offers additional features (Bug #0000075)
01-Jul-2004 (Lars Duening) (3.3.568)
- (doc/efun/previous_object) Corrected to reflect actual behaviour (Bug
#0000073).
- (lex.c) The symbol __MAX_MALLOC__ is set to what is actually set
in the global 'max_malloced' and not just the configuration
value MAX_MALLLOCED (Bug #0000069).
29-Jun-2004 (Lars Duening) (3.3.567)
- (comm.c) Improved the check for input_to() bitflags on an object with
telnet disabled so that only changes in the mode are warned about.
21-Jun-2004 (Lars Duening) (3.3.566)
- (xalloc) The memory reserves were allocated with xalloc(), but freed
with mem_free() - not good (reported by Heiko).
- (mstrings) Corrected a compiler error (thanks, Ralph!)
14-Jun-2004 (Lars Duening) (3.3.565)
- (doc/) Corrected a number of German manpages.
- (comm.c) net_connect() didn't compile with IPv6 (reported by Fini).
- (mstrings, object.c) Contradicting the documentation, save_object()
did not strip a trailing '.c' from the given filename (reported by
Niflheim@Unitopia) (Bug #00000067).
30-May-2004 (Lars Duening) (3.3.564)
- (interpret.c) Calling privilege_violation() with only three arguments
accidentally instructed the interpreter to pass four (reported
by Ralph).
- (simulate.c) limited() accidentally removed all arguments for the
closure to execute.
30-May-2004 (Lars Duening) (3.3.563)
- (smalloc.c) When using PThreads, don't request memory via sbrk() - on
Linux systems this leads to corrupted memory.
- (simulate) Added a new runtime limit LIMIT_COST (f-010320).
- (interpret, simulate) For limited() and set_limits() the limit
values are passed to the privilege_violation call (f-020131-0).
28-May-2004 (Lars Duening) (3.3.562)
- (interpret.c, port.h, util/indent/indent_globs.h) Adapted for gcc 3.4.0
(thanks, Ralph!).
- (mud/lp-245) Removed 'missing return value' warnings.
26-May-2004 (Lars Duening) (3.3.561)
- (prolang.y) The 'public shadows private' warning now checks only
for genuinely private functions, not merely hidden ones. This should
make the warning more accurate.
25-May-2004 (Lars Duening) (3.3.560)
- (prolang.y, interpret.c, simulate, string_spec, closure.c) Added
modifier 'reserve' to the catch() instruction in order to
specify the reserved amount of eval ticks at runtime (suggested
by Menaures).
24-May-2004 (Lars Duening) (3.3.559)
- (prolang.y) The compiler emits warnings if the functions defined by
two inherits collide in their visibility. If this produces too
much output, we will have to control this by a pragma. (suggested
by Bardioc).
- (simulate.c) If a catch() doesn't have enough eval time left
(less than CATCH_EVAL_COST), this is thrown as an error from inside
the catch instead of causing the catch to return 0. (suggested
by Menaures).
- (efuns.c) Removed compiler warnings (thanks, Guandalug!)
23-May-2004 (Lars Duening) (3.3.558)
- (object.c) When restoring structs and the saved data is longer than
the struct, make sure that the extra values are skipped in the
data.
23-May-2004 (Lars Duening) (3.3.557)
- (configure) Corrected a typo in the --with-udp-port option (thanks,
LynX).
- (object.c) When restoring structs, the sizes no longer need to match -
the driver restores as many members by position as possible.
23-May-2004 (Lars Duening) (3.3.556)
- (efuns, func_spec) The efuns member() and rmember() can take a
start position.
22-May-2004 (Lars Duening) Showing the first 100 KB of 467.0 KB. Download the archive for the full file.