Skip to content

Commit cfb6849

Browse files
authored
Merge pull request #14 from rqlite/merge-upstream
Merge upstream
2 parents b5438fd + 6026c7c commit cfb6849

24 files changed

+8842
-6482
lines changed

.github/workflows/cifuzz.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: CIFuzz
2+
on: [pull_request]
3+
jobs:
4+
Fuzzing:
5+
runs-on: ubuntu-latest
6+
strategy:
7+
fail-fast: false
8+
matrix:
9+
sanitizer: [address]
10+
steps:
11+
- name: Build Fuzzers (${{ matrix.sanitizer }})
12+
uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master
13+
with:
14+
oss-fuzz-project-name: 'go-sqlite3'
15+
dry-run: false
16+
sanitizer: ${{ matrix.sanitizer }}
17+
- name: Run Fuzzers (${{ matrix.sanitizer }})
18+
uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master
19+
with:
20+
oss-fuzz-project-name: 'go-sqlite3'
21+
fuzz-seconds: 600
22+
dry-run: false
23+
sanitizer: ${{ matrix.sanitizer }}
24+
- name: Upload Crash
25+
uses: actions/upload-artifact@v1
26+
if: failure()
27+
with:
28+
name: ${{ matrix.sanitizer }}-artifacts
29+
path: ./out/artifacts
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
TARGET = custom_driver_name
2+
ifeq ($(OS),Windows_NT)
3+
TARGET := $(TARGET).exe
4+
endif
5+
6+
all : $(TARGET)
7+
8+
$(TARGET) : main.go
9+
go build -ldflags="-X 'github.com/mattn/go-sqlite3.driverName=my-sqlite3'"
10+
11+
clean :
12+
rm -f $(TARGET)
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package main
2+
3+
import (
4+
"database/sql"
5+
6+
_ "github.com/mattn/go-sqlite3"
7+
)
8+
9+
func main() {
10+
for _, driver := range sql.Drivers() {
11+
println(driver)
12+
}
13+
}

backup.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ package sqlite3
77

88
/*
99
#ifndef USE_LIBSQLITE3
10-
#include <sqlite3-binding.h>
10+
#include "sqlite3-binding.h"
1111
#else
1212
#include <sqlite3.h>
1313
#endif

callback.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ package sqlite3
1212

1313
/*
1414
#ifndef USE_LIBSQLITE3
15-
#include <sqlite3-binding.h>
15+
#include "sqlite3-binding.h"
1616
#else
1717
#include <sqlite3.h>
1818
#endif

error.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ package sqlite3
77

88
/*
99
#ifndef USE_LIBSQLITE3
10-
#include <sqlite3-binding.h>
10+
#include "sqlite3-binding.h"
1111
#else
1212
#include <sqlite3.h>
1313
#endif

0 commit comments

Comments
 (0)