feat: add bytes.indexOf, server.acceptBatch, server.pendingCount, stdin data callback, and coverage/valgrind make targets
Implement `bytesIndexOf` foreign function supporting optional start offset for searching byte sequences. Add `serverAcceptBatch` and `serverPendingCount` to net module for batch accepting connections and querying pending queue size. Refactor `stdinFileTimerCallback` to pass read bytes to Wren callback instead of null, with separate handling for EOF. Introduce `coverage_64bit` build config with gcov flags, plus `coverage`, `valgrind`, `clean-coverage`, and `publish` phony targets in Makefile. Fix memory leak in regex by nullifying freed pointers on allocation failure.
This commit is contained in:
Vendored
+2
-1
@@ -1,4 +1,5 @@
|
||||
// skip:
|
||||
// retoor <retoor@molodetz.nl>
|
||||
|
||||
import "io" for Stdin
|
||||
|
||||
Stdin.readLine() // stdin: one line
|
||||
|
||||
Vendored
+2
-1
@@ -1,4 +1,5 @@
|
||||
// skip:
|
||||
// retoor <retoor@molodetz.nl>
|
||||
|
||||
import "io" for Stdin
|
||||
|
||||
System.write("> ")
|
||||
|
||||
Vendored
+2
-1
@@ -1,4 +1,5 @@
|
||||
// skip:
|
||||
// retoor <retoor@molodetz.nl>
|
||||
|
||||
import "io" for Stdin
|
||||
|
||||
Stdin.readLine() // stdin: one line
|
||||
|
||||
+1
-2
@@ -1,6 +1,5 @@
|
||||
// retoor <retoor@molodetz.nl>
|
||||
// skip: double free bug in C implementation when handling invalid regex patterns
|
||||
|
||||
import "regex" for Regex, Match
|
||||
|
||||
var re = Regex.new("[unclosed")
|
||||
var re = Regex.new("[unclosed") // expect runtime error: Unmatched [, [^, [:, [., or [=
|
||||
|
||||
Vendored
-1
@@ -1,5 +1,4 @@
|
||||
// retoor <retoor@molodetz.nl>
|
||||
// skip: multipart parser has pre-existing issues with null bytes and high-byte values
|
||||
|
||||
import "web" for Request
|
||||
|
||||
|
||||
Reference in New Issue
Block a user