Skip to content

Commit 86523be

Browse files
author
Pavel Cisar
committed
Fix buffer size in iBlob.get_info2
1 parent d63eb43 commit 86523be

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/)
55
and this project adheres to [Semantic Versioning](http://semver.org/).
66

7+
## [1.10.10] - Unreleased
8+
9+
### Fixed
10+
11+
- Extend response buffer size in `iBlob.get_info2`.
12+
13+
714
## [1.10.9] - 2025-01-03
815

916
### Fixed

src/firebird/driver/interfaces.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ def seek(self, mode: int, offset: int) -> int:
384384
return result
385385
def get_info2(self, code: BlobInfoCode) -> Any:
386386
"Returns information about BLOB"
387-
blob_info = (0).to_bytes(10, 'little')
387+
blob_info = (0).to_bytes(20, 'little')
388388
self.get_info(bytes([code]), blob_info)
389389
i = 0
390390
while blob_info[i] != isc_info_end:

0 commit comments

Comments
 (0)