Commit Graph
187 Commits
Author SHA1 Message Date
Shauren 57489f4ca9 Core/PacketIO: Reduce the number of catch blocks in WorldSession::Update 2025-11-02 17:19:01 +01:00
Shauren 1027c42352 Core/PacketIO: Replace static_asserts with concepts and add them to PacketUtilities as well 2025-05-23 15:20:57 +02:00
Shauren 85e621f01a Core/PacketIO: Remove ByteBuffer constructor from MessageBuffer 2025-05-23 14:41:39 +02:00
Shauren 5bebf05209 Core/PacketIO: Mark packet parsing exception throwing code paths as [[noreturn]] 2025-05-22 23:17:01 +02:00
Shauren 7ca9e9005d Core/PacketIO: Disable implicit bool to int conversions for ByteBuffer operators 2025-05-21 21:17:38 +02:00
Shauren 8c01996cae Core/PacketIO: Add char overloads to ByteBuffer operators 2025-05-21 18:32:19 +02:00
Shauren ad9984b8a3 Core/PacketIO: Move ObjectGuid and Position::PackedXYZ packet functions out of ByteBuffer 2025-05-16 19:11:12 +02:00
Shauren c6050a319c Core/PacketIO: Rename ByteBuffer::contents to ByteBuffer::data 2025-05-15 19:18:41 +02:00
Shauren 546d23264c Core/Misc: Make string and string_view literal suffixes globally available 2025-05-13 11:41:54 +02:00
Shauren 38f40f5413 Core/PacketIO: Improved bit functions - no longer reads each bit separately 2025-05-12 16:27:55 +02:00
Shauren aa3a62e518 Core/PacketIO: Fixed writing exactly 32 bits 2024-12-20 17:27:18 +01:00
Shauren 5f212c6916 Core/PacketIO: Improved bit functions - no longer writes each bit separately 2024-12-19 19:47:26 +01:00
Shauren 5a1fe84978 Core/PacketIO: Read directly into output variable for numeric ByteBuffer::operator>> overloads 2024-12-19 19:45:58 +01:00
Shauren 736836a3f5 Core/PacketIO: Fixed endian conversions for array operations 2024-12-19 19:43:06 +01:00
Shauren 9ed5f8812b Core/PacketIO: Remove overriding Underlying type from ByteBuffer reads in favor of PacketUtilities::As 2024-12-19 14:57:28 +01:00
Shauren 8eb2a4de78 Core/Misc: Apply consistent formatting in ByteBuffer 2024-12-19 14:42:38 +01:00
Shauren a4ecb2dfae Core/PacketIO: Fixed handling CMSG_UPDATE_ACCOUNT_DATA - compressed value is not a null-terminated string 2024-08-05 14:13:17 +02:00
Shauren d72e91bee2 Core/PacketIO: Use std::string_view to read strings from ByteBuffer 2024-08-03 13:40:17 +02:00
Ovahlord a3db80ce58 Core/PacketIO: increased allowed storage size of ByteBuffer from ~10mb to ~100mb and fixed a logic mistake that was allowing first-time append calls to bypass that size limit (#30037) 2024-06-15 18:12:18 +02:00
Shauren 468a06baf0 Core: Update to 10.2.7 2024-05-08 20:55:51 +02:00
Shauren b888b1b09f Core/Calendar: Implement different timezone support for ingame calendar
Closes #8390
Closes #29427
2023-11-21 12:25:22 +01:00
Shauren d791afae1d Core/Logging: Switch from fmt::sprintf to fmt::format (c++20 standard compatible api) 2023-01-08 21:16:53 +01:00
Shauren 9f30afe352 Core/PacketIO: Updated packet structures to 9.2.0 2022-02-24 23:16:55 +01:00
Shauren cbcd149ce5 Core/Misc: Explicitly include required headers instead of relying on them to be included by other headers 2022-02-11 14:33:35 +01:00
Treeston 9f97fdd31a Core/Common: Tokenizer -> Trinity::Tokenize (PR: #25327)
(cherry picked from commit 534a2388b7c662c8796aabb1ec8cb424879799b6)
2022-02-04 00:27:14 +01:00
Shauren 3ebfa8cc64 Core/PacketIO: Add a validating string helper class for use in packet classes
(cherry picked from commit f2f47f774f3d9c5da1a38b5f20cbfe59c2ff66af)
2021-12-23 23:55:58 +01:00
Shauren a82ae950dd Core/ByteBuffer: Fix string format
(cherry picked from commit 1227e96bd3ecfbb69b9890cd305f1856a27dd2ef)
2021-12-23 19:45:51 +01:00
Shauren 09967ad7fd Core/PacketIO: Validate utf8 in every client packet
(cherry picked from commit 0a2a96efaa20fe5440eb5a2f21ffaddcdcea86d3)
2021-12-23 15:15:08 +01:00
jackpoz b6f28a7ebc Core/Packets: Reduce memory footprint of cached queries (#22297)
Ensure only the minimum required memory is used by caching query packets by calling shrink_to_fit()

(cherry picked from commit deabd4ab453ee8cf1f515bdb32bf9cf9de7f0591)
2021-10-22 23:15:27 +02:00
jackpoz 388034498f Core/Misc: Fix static analysis issues
(cherry picked from commit 9b7c73a19df66849ec829fc5a94875aa9593934d)
2021-02-06 21:41:51 +01:00
Shauren b6ed0c7870 Core/PacketIO: Fixed ByteBuffer auto-flush after b231903932 2020-09-06 15:39:07 +02:00
Shauren b231903932 Core/Misc: Port all the refactors sneaked in master to 3.3.5 include cleanup port 2020-09-04 13:38:24 +02:00
Treeston e9392ad287 Core/Authserver: Authserver cleanup (PR#25093)
- Fix a handful of 1/256 bugs with most significant byte zero in BigNumber
- Get rid of (most of) the C-style arrays in authserver
- CryptoRandom as a unified source for cryptographic randomness
- Bring our other crypto APIs into 2020
- BigNumber usability improvements
- Authserver is now actually readable as a result of all of the above

(cherry picked from commit 210176fd915cf4ba16f428d3c1a249a71f4aa7a7)
2020-08-03 19:39:00 +02:00
Shauren aedab76a11 Core/Misc: Add extra ByteBuffer and WorldPacket constructors allowing to set size immediately 2020-05-20 17:28:38 +02:00
Shauren 06cc0754b8 Core/PacketIO: Updated auction packets to newer build 2020-03-17 18:38:01 +01:00
Aokromes b0bf1275ee New Year 2020-01-02 06:44:10 +01:00
Shauren 11ebe36e57 Core/ByteBuffer: Replace throw() with noexcept 2019-08-24 17:13:17 +02:00
Shauren 455959c606 Core/PacketIO: Rewrite updatefield handling 2019-06-08 17:06:57 +02:00
Shauren 81dd8574bb Core/PacketIO: Removed old and unused ByteBuffer functions 2019-04-01 22:27:24 +02:00
vincent-michael 5620eb9463 Update copyright note for 2019
auto happy = new year(2019);
2019-01-01 10:14:33 +01:00
Shauren 0a779bd791 Core/PacketIO: Updated packet structures to 8.0.1 2018-11-05 00:00:34 +01:00
Shauren b76098651a Core/ByteBuffer: Fixed output truncation in ByteBuffer::hexlike 2018-07-21 15:10:05 +02:00
vincent-michael 7d00ae4045 Update copyright note for 2018
auto happy = new year(2018);
2018-01-01 00:40:17 +01:00
Shauren beb3316089 Core/Shared: Include cleanup 2017-05-13 11:49:09 +02:00
Shauren 3a418a0bbc Core/Common: Include cleanup 2017-05-11 22:29:51 +02:00
Shauren 2f859ffd2e Core/Misc: Fixed issues found by coverity
CID 1374575, 1374574, 1374573, 1374572, 1374563, 1374556
2017-04-26 18:01:50 +02:00
Shauren 6636ca8585 Core/DataStores: Updated sending out hotfixes 2017-04-19 19:10:49 +02:00
Shauren c36f831ab7 Core/Packets: Changed ByteBuffer write exceptions into asserts (reading is unaffected as data comes from untrusted source - client) 2017-01-24 00:08:12 +01:00
vincent-michael 86b98686a9 Update copyright note for 2017
Happy new year
2017-01-01 16:23:13 +01:00
Shauren def8bf0855 Core/Misc: Don't conditionally include non platform specific headers 2016-08-20 13:34:15 +02:00