aksdb
9903de9c24
🚨 Guard animation texture deletion against empty frame lists
...
Destroying an animation material with no frames dereferenced an
empty array.
2026-11-15 22:06:51 +01:00
aksdb
6d0ae63be6
🚨 Clamp write permission areas to the landscape size
...
The write map trusted area coordinates from the login response and
could index a bits array far out of bounds with hostile data.
2026-11-15 22:06:51 +01:00
aksdb
fa288fddf8
🚨 Harden the nodraw map loader
...
A parse error leaked the file handle and negative IDs from a
malformed file indexed the draw bitmap out of bounds.
2026-11-15 22:06:51 +01:00
aksdb
1335e3f40e
🚨 Validate tile and hue IDs from network data
...
Static materials indexed the tiledata array and hue table with
unchecked IDs from the server, crashing the client on malformed
packets.
2026-11-15 22:06:51 +01:00
aksdb
1dc371ed27
🚨 Free the block index when a landscape update fails mid-packet
2026-11-15 22:06:51 +01:00
aksdb
3df6ab93f6
🐛 Free the client statics decode buffer on malformed data
2026-11-15 22:06:51 +01:00
aksdb
d9f7b126b6
🐛 Load client static blocks stored at offset zero
...
The client used the same offset-zero bug as the server loader,
dropping the first static block of a freshly written file.
2026-11-15 22:06:51 +01:00
aksdb
2cc0be66c9
🐛 Keep the screen buffer tail pointer valid on inserts
...
Inserting an item that sorted after everything left the tail
shortcut stale, so later appends unlinked existing nodes. This
leaked screen entries, their textures, and blocked cache eviction
forever.
2026-11-15 22:06:51 +01:00
aksdb
b4a14683cb
🐛 Add half of the dominant slope to effective altitude
...
The altitude helper halved the smaller delta instead of the dominant
one, miscalculating draw priorities on every diagonal slope.
2026-11-15 22:06:51 +01:00
aksdb
3fed4cd5fc
🐛 Use the correct height for landscape draw range
...
The row loop iterated by width, dropping terrain rows whenever the
draw range was clipped asymmetrically at the map borders.
2026-11-15 22:06:51 +01:00
aksdb
f4275217bb
⚡ Encode multimaps from scanlines instead of canvas pixels
...
Reading the canvas per pixel made writing a multimap orders of
magnitude slower than necessary.
2026-11-15 22:06:51 +01:00
aksdb
d5c41c0816
🐛 Stop multimap decode from spinning on truncated data
...
A failed or zero-length run read left the decoder looping forever
without consuming input.
2026-11-15 22:06:51 +01:00
aksdb
d3045de064
🐛 Validate animation data lookups against the entry count
...
Out-of-range IDs indexed the entry array unchecked and corrupted
memory instead of failing.
2026-11-15 22:06:51 +01:00
aksdb
32b8d99f3e
🐛 Report the encoded size of localization entries
...
GetSize counted characters while serialization writes UTF-8 bytes,
desynchronizing any offset arithmetic for non-ASCII text.
2026-11-15 22:06:51 +01:00
aksdb
81f837a746
🐛 Reject out-of-range hue lookups
...
The modulo silently wrapped invalid IDs to a wrong hue group instead
of failing.
2026-11-15 22:06:51 +01:00
aksdb
d41520eca4
🐛 Free the hue decode buffer on malformed data
2026-11-15 22:06:51 +01:00
aksdb
13aae33a02
🐛 Skip empty entries when loading flat land art
...
An art index entry with lookup zero and no size made the decoder
copy the whole remaining art file.
2026-11-15 22:06:51 +01:00
aksdb
0c94cdb24b
🐛 Skip gump entries with no data
...
An index entry with a valid lookup but zero size copied the entire
rest of the gump file into memory before decoding garbage.
2026-11-15 22:06:51 +01:00
aksdb
d2fb8a16ea
🐛 Handle truncated gump data safely
...
A zero run length or a short read at the end of the data left the
row decoder spinning forever, and runs that overshot the row width
wrote past the image buffer. The decode buffer is now freed on
errors as well.
2026-11-15 22:06:51 +01:00
aksdb
2c0eb0cebd
🐛 Deduplicate block event registrations
...
Registering the same change handler twice fired destroy and change
notifications twice for one block.
2026-11-15 22:06:51 +01:00
aksdb
9ed3862b4a
🐛 Validate tiledata lookups against the entry count
...
Out-of-range tile IDs indexed past the arrays and read arbitrary
memory instead of failing.
2026-11-15 22:06:51 +01:00
aksdb
6229d296df
🐛 Use version-aware offsets when writing High Seas tiledata
...
The write path always computed legacy offsets and sizes while the
loader detected and used the High Seas layout, so any tile edit on a
High Seas tiledata.mul shifted records and corrupted the file.
2026-11-15 22:06:50 +01:00
aksdb
ee8dfe5adf
🐛 Free the statics decode buffer on malformed data
...
The constructor leaked its temporary stream when decoding raised on
corrupt static data.
2026-11-15 22:06:50 +01:00
aksdb
d129a1b94f
🐛 Load static blocks stored at file offset zero
...
The lookup check treated offset 0 as empty, silently discarding the
first static block of a freshly written statics file.
2026-11-15 22:06:50 +01:00
aksdb
c0121312ed
🐛 Stop map block clones from leaking their cells
...
Clone overwrote the freshly created cell array without freeing it,
leaking 64 cells per clone, and dropped the block header.
2026-11-15 22:06:50 +01:00
aksdb
dab5f85816
🐛 Run the inherited destructor for animation groups
...
TAnimDataGroup.Destroy skipped the inherited call, so the base class
never fired its destroy notifications and leaked the handler state.
2026-11-15 22:06:50 +01:00
aksdb
c8ef2ccf68
🐛 Free the animation data provider on shutdown
...
The manager released every provider except the animation data
provider, leaking its file stream and the whole animation table.
2026-11-15 22:06:50 +01:00
aksdb
23f323bee1
🐛 Create the texture save buffer for streamed textures
...
Textures loaded from file never had their buffer allocated, so any
save attempt crashed with an access violation.
2026-11-15 22:06:50 +01:00
aksdb
ae9136d53a
🐛 Free the art decode buffer on malformed data
...
The constructor leaked its temporary stream whenever a decode
operation raised, for example on truncated or corrupt art data.
2026-11-15 22:06:50 +01:00
aksdb
c1967a8a41
🐛 Fix art encoder writing corrupted images
...
The static RLE encoder read 16-bit pixels from the 32-bit working
image with a 16-bit stride, garbling every pixel and testing a green
channel bit as the visibility flag. The land encoder shifted every
diamond row to a constant or double-stride column. Both matched the
decoder on load and produced scrambled art on save. Also frees the
conversion image on the early exit paths.
2026-11-15 22:06:50 +01:00
aksdb
c1f5215fb4
🐛 Stop linked list delete from storing a disposed node
...
Delete continued the loop with a dangling previous-node pointer after
disposing the matched entry. It now returns after the first match,
which is the behavior all callers rely on.
2026-11-15 22:06:50 +01:00
aksdb
e527149f63
🐛 Check node type before treating XML children as text
...
Reading or updating a value whose first child was a comment or CDATA
node crashed with a failed class cast.
2026-11-15 22:06:50 +01:00
aksdb
39045b76c1
🐛 Fall back to default on invalid boolean config values
...
ReadBoolean raised an exception on malformed XML text instead of
using the supplied default.
2026-11-15 22:06:50 +01:00
aksdb
5e92d58a6e
🐛 Fix buffered stream flush losing data
...
Flush sized the base stream from its own overridden size, which
delegates to the base stream, so appended data was truncated or the
copy failed. Flushing a reader would have wiped the file; the reader
writes through immediately and needs no flush. Write now also
propagates short writes from the base stream.
2026-11-15 22:06:50 +01:00
aksdb
2bffd2204b
🐛 Guard fixed-length stream reads against short data
...
ReadStringFixed returned uninitialized memory on short reads and
crashed on negative lengths from untrusted input.
2026-11-15 22:06:50 +01:00
aksdb
1498437e26
🐛 Validate fifo stream bounds and locking
...
Seek accepted positions outside the queue, allowing reads before the
buffer, and negative counts reached Move with garbage sizes. Writing
to a locked stream silently dropped the lock window instead of
failing, which corrupts packet parsing.
2026-11-15 22:06:50 +01:00
aksdb
a25c8296de
⚡ Pad fixed-length strings in one step
...
WriteStringFixed grew the string one character at a time, which is
quadratic in the target length.
2026-11-15 22:06:50 +01:00
aksdb
585fd92611
🐛 Fix out-of-bounds reads in stream string readers
...
The null and wide-string readers tested the terminator before the
bounds check, peeked one character past the window, and used a
lock-relative position against the absolute memory base. They also
advanced past a terminator that was never read, desyncing the parser
on malformed input. Reworked them to stay in bounds and to build the
result in linear time.
2026-11-15 22:06:50 +01:00
aksdb
f381647149
🐛 Repair cache invariant after stores
...
StoreID left the last-entry pointer on the final node, so two
consecutive stores without an intervening query nil-dereferenced.
2026-11-15 22:06:50 +01:00
aksdb
4108ed5900
🐛 Fix cache last-entry corruption on hits
...
QueryID set the last-entry pointer to the moved node on every hit,
breaking the pointer-to-second-to-last invariant. StoreID then
orphaned tail entries, leaking cached objects and crashing on cache
destruction.
2026-11-15 22:06:50 +01:00
aksdb
98bfbd7b11
🐛 Reject cache manager sizes below 2
...
A size of 0 or 1 left the internal last-entry pointer nil, crashing on
the first store operation.
2026-11-15 22:01:27 +01:00
aksdb
3f47eba2da
🚨 Fix UfrmLogin not compiling
2024-11-03 16:32:35 +01:00
aksdb
4d92724f4e
✨ Support QT6
2024-11-03 16:32:09 +01:00
aksdb
23b4ebe214
🔨 Add project group
2024-11-03 16:31:41 +01:00
aksdb
3b6b8b6eb3
🚨 Fix cedserver paths
2024-11-03 16:31:17 +01:00
aksdb
27cf279503
🚨 Fix UfrmLargeScaleCommand not compiling
2024-11-03 16:31:04 +01:00
aksdb
955edf8a77
🐛 Fix moving of items freeing the item in the process
continuous-integration/drone/push Build is passing
2022-10-16 17:27:18 +02:00
aksdb
9638bb3fe2
👷 Add win64 build config
2022-10-16 17:26:55 +02:00
aksdb
7be5c8ca7f
👷 Update lazarus in builder
continuous-integration/drone Build is passing
2022-10-16 12:08:55 +02:00
aksdb
e0eee2c023
👷 Upload snapshots
continuous-integration/drone/push Build is passing
2022-08-14 20:00:05 +02:00