Commit Graph
100 Commits
Author SHA1 Message Date
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
aksdb 0e5cb1b48b ✨ Load and list UOA designs 2022-07-19 18:24:03 +02:00
aksdb d75a85d269 🚧 Implement actions as objects 2022-05-29 11:46:22 +02:00
aksdb dc36f0b09c 💄 Fix more form layouts 2022-05-22 15:51:56 +02:00
aksdb 97c8270b38 🐛 Fix Undo handling 2022-05-22 11:27:27 +02:00
aksdb dfef4d3556 🔧 Increase caches to accommodate larger resolutions 2022-05-08 18:42:01 +02:00
aksdb d30f01ac64 ⬆️ Update Vampyre Imaging lib 2022-05-08 10:47:53 +02:00
aksdb 5e47564252 💄 Enable UI scaling 2022-05-07 11:59:04 +02:00
aksdb 900603dd00 📝 Update the README 2022-05-07 11:00:51 +02:00
aksdb da7bf2e3c5 🙈 Update ignore file 2022-05-07 10:51:52 +02:00
aksdb 1bfbc2e11e ⬆️ Update to Lazarus 2.2 and FreePascal 3.2.2 2022-05-07 10:51:52 +02:00
aksdb 39280f927b * Fixed drop down toolbar buttons to correct their state
* Added terrain grid (ported from CentrED+; Thanks to StaticZ!)
2015-05-17 12:39:57 +02:00
aksdb 1ddaee39d5 * Removed heContrns dependency (replaced by fgl ... again) 2015-05-13 19:09:41 +02:00
aksdb d334728b6c * Fixed memory corruption in frmMain (caused by heContrns)
* Added range selection to frmBoundaries
2015-05-13 19:02:33 +02:00
aksdb 609ff53253 * Added X/Y boundaries 2015-05-11 19:30:23 +02:00
aksdb ffd0cc1028 * Added advanced statics filter (thanks to StaticZ) 2015-05-10 19:48:52 +02:00
aksdb 699fb78d72 * Fixed build modes
* Fixed windows build (RT_RCDATA was missing)
2015-05-10 18:45:06 +02:00
aksdb 484bd5523f * Migrated resources from custom resource manager to windows/lazarus resources (requires windres now!)
* Bumped version to 0.7
2015-05-10 18:20:40 +02:00
aksdb f3f5d12c2f * Added colored lights (thanks to StaticZ :-)) 2015-05-10 11:42:05 +02:00
aksdb 937cfb6323 Added tag 0.6.3 for changeset 3bf040abc031 2015-05-01 11:43:36 +02:00
aksdb e29f69a1a9 Added tag 0.6.2 for changeset 6bda4a5123d7 2015-05-01 11:43:23 +02:00
aksdb 91f3aadb82 * Updated to Lazarus 1.5 2015-05-01 11:42:50 +02:00
aksdb 2e3dd53eeb * Also add Build modes for cedserver
* Fixed widget sets in new debug build modes
2014-03-09 16:55:28 +01:00
aksdb 8085639c30 * Added debug build modes 2014-03-09 16:49:54 +01:00
aksdb 7271fcbabc * Removed obsolete file 2013-11-28 17:27:11 +01:00
aksdb 8f5c141705 * More build mode cleanup
* Directory cleanup and restructuring
2013-11-27 20:58:01 +01:00
aksdb d0557ab86f * More UMapManagement 2013-11-27 20:15:33 +01:00
aksdb b9a45bf43b * Enhanced UXmlHelper (enumerator)
* Added UMapManagement
* Fixed TCPServer to allow address reuse
2013-11-23 20:41:20 +01:00
aksdb 1791fd7494 * Clean up build modes 2013-11-27 18:25:00 +01:00
aksdb 829a604c30 * Added password change support (references #95)
* Fixed 64bit support
* Repaired line endings
* Bumped protocol version
2013-11-20 18:12:52 +01:00
aksdb 9676549ac3 * Updated Vampyre Imaging Lib
* Fixed heContrs compilation
* Fixed region editing in frmLargeScaleCommand and frmRegionControl
* Fixed control alignment in frmMain
2013-11-03 14:12:48 +01:00
aksdb 4a5a835afd * Bumped version
* Updated changelog
* Updated installer
2012-01-14 18:21:40 +01:00
aksdb 5ac13430be * Fixed possible range overflow 2012-01-14 18:09:07 +01:00
aksdb 940e81f123 * Replaced fgl with heContnrs
* Fixed behavior of the undo packet list (fixes #88)
2012-01-14 17:58:59 +01:00
aksdb aa37b1cf1d * Bumped version
* Updated copyright
* Read copyright from resource
* Removed obsolete lines from version.inc
2012-01-07 17:23:07 +01:00
aksdb 811d91cc8a * Refactored tiledata cloning
* Added support for new tiledata format (from the High Seas expansion)
2012-01-07 13:48:59 +01:00
aksdb 88e18b7659 * Fixed compilation with current Lazarus/LCL 2011-12-03 18:48:15 +01:00
aksdb 395c8fbe96 * Fixed TfrmHueSettings not freeing the preset doc 2011-10-03 20:32:46 +02:00
aksdb d2f7bdc54f - Fixed align of the Random checkbox on frmHueSettings 2011-04-01 18:02:38 +02:00
aksdb 5c3a8740c1 - Fixed more range violations (fixes #82) 2011-03-31 22:39:00 +02:00
aksdb abe62e13b8 - Changed the hue change mechanic (store the info in the ScreenBuffer instead of a separate list) (refs #66) 2011-03-30 20:52:24 +02:00
aksdb 4c76aafe47 - Fixed loading of hue presets
- Fixed random pane sliding out of the main window
2011-03-29 22:57:11 +02:00