MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / security_normalize_crlf

Function security_normalize_crlf

tests/test_security.c:52–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52static void security_normalize_crlf(char *content) {
53 if (!content) {
54 return;
55 }
56 char *read_cursor = content;
57 char *write_cursor = content;
58 while (*read_cursor) {
59 if (read_cursor[0] == '\r' && read_cursor[1] == '\n') {
60 read_cursor++;
61 }
62 *write_cursor++ = *read_cursor++;
63 }
64 *write_cursor = '\0';
65}
66
67TEST(vendored_integrity_manifest_is_relocatable_and_fail_closed) {
68 FILE *checksums = fopen("scripts/vendored-checksums.txt", "r");

Callers 1

test_security.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected