aksdb
ef124eb495
🚨 Default to no access when no access level is selected
2026-11-15 22:08:32 +01:00
aksdb
b7235f8f93
🚨 Stop account saves with exactly 256 regions from losing them
...
The region count was clamped to 256 and wrapped to zero in the
byte field, truncating the account's region list server-side.
2026-11-15 22:08:32 +01:00
aksdb
74cf40118c
🚨 Truncate tile lists to the wire limit consistently
...
Serializing more than 65535 tiles wrote a wrapped count while
sending every tile, desynchronizing the server-side parse.
2026-11-15 22:08:32 +01:00
aksdb
bd60c99dc3
🚨 Clean up large scale command form teardown
...
Executing with no areas leaked the built packet, and pending tile
selection listeners stayed registered after the form was destroyed.
2026-11-15 22:08:32 +01:00
aksdb
335cfc875c
🚨 Mark mouse-created areas as unsaved changes
...
Drawing a new area rectangle on the map did not arm the save
button, so the area was silently discarded on the next switch.
2026-11-15 22:08:32 +01:00
aksdb
f8f56d6b2f
🚨 Unregister the region dialog from access change notices
...
FormDestroy never removed its listener, leaving a dangling method
pointer in the main form's listener list after teardown.
2026-11-15 22:08:32 +01:00
aksdb
aaaad354b2
🚨 Drop the temp region node before refreshing the list
...
The region list refresh freed all tree nodes, leaving the pending
new-region pointer dangling while its save button stayed armed.
2026-11-15 22:08:32 +01:00
aksdb
4f6e034b5c
🚨 Save edits to the region being edited
...
When switching regions with unsaved changes, the save prompt ran
after the tree had already moved its selection, so the old region's
areas were written into the newly selected region on the server.
The save now targets the region whose areas are loaded in the
editor.
2026-11-15 22:08:32 +01:00
aksdb
9864157f33
🚨 Stop region saves with exactly 256 areas from wiping them
...
The count was clamped to 256 and then stored in a byte, wrapping to
zero, so the server replaced the region with an empty area list.
2026-11-15 22:08:32 +01:00
aksdb
818590ded0
⚡ Cache tile list thumbnails in memory
...
The tile browser decoded art from disk and rebuilt the image on
every repaint of every visible cell; entries are now decoded once
and reused.
2026-11-15 22:08:32 +01:00
aksdb
75220f3dc4
⚡ Set the light mode once per run of tiles
...
The render loop reissued the light state calls for every tile even
when the mode was unchanged.
2026-11-15 22:08:32 +01:00
aksdb
fbfd8e627f
🚨 Clamp UOA design placement altitude in both directions
...
Moving a design only guarded the upper altitude bound, letting tile
altitudes wrap past the signed range.
2026-11-15 22:08:32 +01:00
aksdb
0092f6893e
🚨 Return an empty rectangle when no tile is selected
...
GetSelectedRect left its result undefined when called without a
current tile.
2026-11-15 22:08:32 +01:00
aksdb
b47292a4bc
🚨 Guard location name serialization against empty strings
...
Saving or loading an unnamed location indexed the first character
of an empty string.
2026-11-15 22:08:32 +01:00
aksdb
4d9e02aaef
🚨 Ignore disconnect notices for unknown clients
...
Deleting at index -1 raised an exception and aborted the packet
dispatch when the list had already diverged.
2026-11-15 22:08:32 +01:00
aksdb
5f7e277721
🚨 Free detached DOM nodes when deleting random presets
...
RemoveChild detaches without owning the node; every deleted preset
or overwritten preset entry leaked it.
2026-11-15 22:08:32 +01:00
aksdb
481d6ac905
🚨 Free the edit target list when an edit action fails mid-way
2026-11-15 22:08:32 +01:00
aksdb
dd20f4962d
🚨 Nil the label pointer when freeing a screen block label
...
Freeing without clearing left a dangling reference that a repeated
prepare pass would free again.
2026-11-15 22:08:32 +01:00
aksdb
1fbce3570d
🚨 Release the old material when re-highlighting a static
...
Hovering with hue highlighting reassigned the screen buffer material
without dropping the previous reference, leaking a GL texture on
every hover.
2026-11-15 22:08:32 +01:00
aksdb
f09b8b7fbc
🚨 Validate radar map packet payloads
...
An empty radar map indexed an empty array, and update coordinates
from the server were written into the image without bounds checks.
2026-11-15 22:08:32 +01:00
aksdb
fcb90dffbb
🚨 Handle empty or unreadable radar cache files
...
A zero-byte cache file indexed an empty array, and read errors
leaked the file stream.
2026-11-15 22:08:32 +01:00
aksdb
71865facd8
🚨 Make radar shutdown safe
...
Destroying the radar window dereferenced the image without a nil
check when creation had failed, and leaked the cache file stream on
write errors, skipping cleanup of the remaining objects.
2026-11-15 22:08:32 +01:00
aksdb
93c2af9d9f
🚨 Free the light config document and tolerate a missing file
...
LoadConfig leaked the parsed XML document on every call and aborted
startup when the color config file was absent.
2026-11-15 22:08:32 +01:00
aksdb
043a5a1ccf
🚨 Free the light collection when the light map update fails
2026-11-15 22:08:32 +01:00
aksdb
3dd9ce1d68
🚨 Mark the light manager as initialized
...
The flag was never set, so the framebuffer extension was reloaded on
every frame with lights enabled.
2026-11-15 22:08:32 +01:00
aksdb
b90fbdf190
🚨 Clamp drawn tile altitudes to the valid range
...
Drawn statics could exceed the signed altitude range and wrap
around.
2026-11-15 22:08:32 +01:00
aksdb
1e44b51a06
🚨 Apply random elevation offsets in raise and lower modes
...
The random offset was computed first and then overwritten by the
raise and lower branches.
2026-11-15 22:08:32 +01:00
aksdb
78f945cee7
🚨 Expose the draw action hue
...
The draw action reads its hue field but no property ever exposed
it, so hue selection was silently ignored.
2026-11-15 22:08:32 +01:00
aksdb
3e562ff03d
🚨 Take the elevation target as a signed byte
...
The coordinate-based elevate overload accepted a word and silently
truncated it when writing the signed altitude byte.
2026-11-15 22:08:32 +01:00
aksdb
992666583d
🚨 Guard block requests without coordinates
2026-11-15 22:08:32 +01:00
aksdb
63ca31805e
🚨 Free compression buffers when packet compression fails
...
A compression error leaked the buffers and the wrapped packet,
whose ownership had already been transferred.
2026-11-15 22:08:32 +01:00
aksdb
c4c95b0156
🚨 Validate decompressed packets before dispatch
...
A compressed packet could declare an unbounded decompressed size,
nest compressed packets recursively until stack overflow, or carry a
truncated inner packet whose handler then read uninitialized
memory.
2026-11-15 22:08:32 +01:00
aksdb
d18e01c95c
🔒 Validate login response fields
...
The access level byte and landscape dimensions were trusted from
the network without checks.
2026-11-15 22:08:32 +01:00
aksdb
c4f043a236
🚨 Isolate packet handler exceptions on the client
...
A handler exception left the packet in the queue, re-raising on
every receive until the app aborted. The connection is now dropped
cleanly with a log entry.
2026-11-15 22:06:51 +01:00
aksdb
ad38619b9b
🚨 Validate packet lengths from the server
...
A declared length below the header size desynced the receive queue
and dispatched handlers on garbage, and an unbounded length could
grow the queue without limit.
2026-11-15 22:06:51 +01:00
aksdb
0222c01dc8
🚨 Stop double-freeing the connection packet handler at exit
...
Unit finalization already frees the handler table; freeing the
shared handler again from the datamodule corrupted the heap on
shutdown.
2026-11-15 22:06:51 +01:00
aksdb
997aa4991a
🚨 Stop the range selection helper from leaking
...
Abandoning a selection after the first click leaked the helper and
kept it registered for tile clicks. The helper now tracks the active
instance, copies coordinates instead of holding tile references that
can be evicted, and the listener dispatch tolerates removal during
iteration.
2026-11-15 22:06:51 +01:00
aksdb
a1a40b6f61
🚨 Use the pointer-sized window call on 64-bit Windows
...
SetWindowLong truncates 64-bit window handles, breaking dialog
parenting on Win64 builds.
2026-11-15 22:06:51 +01:00
aksdb
ee0667aff3
🚨 Skip empty font info tables
...
A truncated font resource indexed an empty array on load.
2026-11-15 22:06:51 +01:00
aksdb
c6e1a10d3b
🚨 Check the arrow texture height, not the width twice
2026-11-15 22:06:51 +01:00
aksdb
7c3c4d89c4
🚨 Close the UOA design data file on shutdown
...
The design collection never freed its data stream, leaking the file
handle for every use.
2026-11-15 22:06:51 +01:00
aksdb
d56149a4c1
🚨 Clamp imported UOA design values to their field ranges
...
Out-of-range tile, position, and hue values from a design file
truncated or raised range errors on import.
2026-11-15 22:06:51 +01:00
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
aksdb
816017d4f1
👷 Add CI pipeline
continuous-integration/drone/push Build is passing
2022-08-13 11:50:48 +02:00
aksdb
6aa6496429
⚡ ️ Speed up preview rendering
2022-07-20 20:22:42 +02:00
aksdb
9f66004c44
🐛 Fix invalid Z range on load
2022-07-20 20:22:29 +02:00
aksdb
b83c5f4b2d
🚸 Lock actions during placement
2022-07-20 19:29:55 +02:00
aksdb
54e7209c8d
✨ Finish placement as per preview
2022-07-20 19:23:31 +02:00
aksdb
1753c38eea
🚧 Preview design placement
2022-07-20 18:54:00 +02:00
aksdb
cd983844fa
🔇 Remove debug log
2022-07-19 20:11:08 +02:00
aksdb
7a67e62398
✨ Draw UOA designs
2022-07-19 20:09:24 +02:00