Skip to content

Commit

Permalink
Merge pull request #33 from mattn/master
Browse files Browse the repository at this point in the history
Merge upstream
  • Loading branch information
otoolep authored Nov 26, 2024
2 parents 241bc71 + 348128f commit ed04a34
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/cifuzz.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
dry-run: false
sanitizer: ${{ matrix.sanitizer }}
- name: Upload Crash
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
if: failure()
with:
name: ${{ matrix.sanitizer }}-artifacts
Expand Down
1 change: 1 addition & 0 deletions sqlite3.go
Original file line number Diff line number Diff line change
Expand Up @@ -942,6 +942,7 @@ func (c *SQLiteConn) query(ctx context.Context, query string, args []driver.Name
s.(*SQLiteStmt).cls = true
na := s.NumInput()
if len(args)-start < na {
s.Close()
return nil, fmt.Errorf("not enough args to execute query: want %d got %d", na, len(args)-start)
}
// consume the number of arguments used in the current
Expand Down

0 comments on commit ed04a34

Please sign in to comment.