feat(mqtt): enhance topic substitution overflow handling
Improve the mqttSubstituteTopic function to ensure that it reports overflow when the output buffer is full, preventing silent truncation of topics. Update related tests to verify the new behavior for literal overflow and exact fit scenarios, enhancing robustness and correctness of topic handling.
This commit is contained in:
1 parent
dc44311e49
commit
b7b3b4dcf1
4 files changed
+48
-16
No files matched your search
@@ -214,7 +214,7 @@ void WebConfigServer::finalizeTeardown() {
|
||||
// listener socket is released by _server->end() on stop) and route requests
|
||||
// through the currently attached session, so nothing a live request points at
|
||||
// is ever freed.
|
||||
|
||||
|
||||
_server = NULL;
|
||||
delete _dns;
|
||||
_dns = NULL;
|
||||
|
||||
Reference in new issue
Block a user