clean up and standardize types across the codebase, unify atomic operations, improve UTF-8 handling throughout the system, remove obsolete input and named queue interfaces, redesign process preparation and creation, tighten IPC and service boundaries, improve error handling and reliability, minor documentation cleanup, fix doom surfaces, fix panic in ini parsing.
This commit is contained in:
1 parent
899225f551
commit
c0ad63c27f
226 files changed
+6562
-4147
No files matched your search
@@ -1,5 +1,6 @@
|
||||
// RSSRV resource protocol listeners, sessions, request validation, and capability transfer.
|
||||
|
||||
#include <stdbool.h>
|
||||
#include "rssrv_internal.h"
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
@@ -7,7 +8,7 @@
|
||||
typedef struct RSSRV_SESSION {
|
||||
RSSRV_RESOURCE_SERVICE* Service;
|
||||
SYS_HANDLE Endpoint;
|
||||
uint32_t Administrative;
|
||||
bool Administrative;
|
||||
} RSSRV_SESSION;
|
||||
|
||||
// Replies with one fixed resource-protocol reply and no handle transfer.
|
||||
@@ -317,6 +318,11 @@ static uint32_t RssrvDispatchRequest(RSSRV_RESOURCE_SERVICE* service,
|
||||
NTLSTATUS_INVALID_PARAMETER, NTL_RESOURCE_KIND_INVALID);
|
||||
return 0;
|
||||
}
|
||||
if (!SysSvIsUtf8Text(SysSvFromParts(aux, request.AuxLength))) {
|
||||
(void)RssrvReplyStatus(endpoint, info->MessageId, operation,
|
||||
NTLSTATUS_INVALID_PARAMETER, NTL_RESOURCE_KIND_INVALID);
|
||||
return 0;
|
||||
}
|
||||
for (uint32_t i = 0; i < request.AuxLength; ++i) {
|
||||
if (aux[i] == '/' || aux[i] == '\\' || aux[i] == '\0') {
|
||||
(void)RssrvReplyStatus(endpoint, info->MessageId, operation,
|
||||
|
||||
Reference in new issue
Block a user