Files
Binbim b8788c239e
MCP Docker / build-and-push (push) Has been cancelled
feat: SafeLine CE 9.3.9 with pro features
- Remove telemetry: disabled all phone-home (installation notify, false positives, behavior tracking, upgrade tips)
- Version branding: removed 'ce-' prefix, product name changed to '长亭雷池 WAF'
- Detection engine enhancement: strict preset enables all 17 modules with aggressive configs
- Multi-user RBAC: admin/operator/viewer roles with password + TOTP 2FA
- Rate limiting: nginx limit_req per website (RPS, burst, action)
- JS Challenge: browser fingerprint verification page with cookie-based bypass
- Security fixes: removed InsecureSkipVerify, hardcoded credentials, NO_AUTH backdoor
2026-07-04 07:59:04 +08:00

40 lines
696 B
C++

#include "fsa.hh"
#include "unittest/unittest_helper.hh"
#include <algorithm>
#include <iostream>
#include <type_traits>
#include <unistd.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
using namespace std;
const char test[] =
"4 4 1\n"
"3 \n"
"0 0 1\n"
"0 1 2\n"
"1 0 3\n"
"2 0 3\n"
;
int main(int argc, char *argv[])
{
if (argc == 1) {
char filename[] = "/tmp/XXXXXX";
int fd = mkstemp(filename);
write(fd, test, sizeof test-1);
close(fd);
freopen(filename, "r", stdin);
unlink(filename);
}
auto relate = [](const vector<long>&) {};
Fsa fsa = read_dfa().minimize(relate);
print_fsa(fsa);
if (argc == 1)
return fsa.n() == 3 ? 0 : 1;
}