Skip to content
  • Sponsor FirebirdSQL/firebird

  • Notifications You must be signed in to change notification settings
  • Fork 232

Commit 487f423

Browse files
authoredMar 31, 2025
Fix #8435 - Strange error with text concatention UTF8+win1250. (#8483)
1 parent 4bd4f5f commit 487f423

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎src/jrd/blb.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@ ULONG blb::BLB_get_data(thread_db* tdbb, UCHAR* buffer, SLONG length, bool close
649649
n = BLB_get_segment(tdbb, p, n);
650650
p += n;
651651
length -= n;
652-
if (blb_flags & BLB_eof)
652+
if ((blb_flags & BLB_eof) || (n == 0))
653653
break;
654654
}
655655

‎src/jrd/filters.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1101,7 +1101,7 @@ ISC_STATUS filter_transliterate_text(USHORT action, BlobControl* control)
11011101
return isc_transliteration_failed;
11021102
}
11031103

1104-
if (err_position == 0 && bytes_read_from_source != 0 && length != 0 && length < 4)
1104+
if (err_position == 0 && length != 0 && control->ctl_buffer_length < 8)
11051105
{
11061106
// We don't have sufficient bytes to always transliterate a character.
11071107
// A bad input on the first character is unrecoverable, so we cache

0 commit comments

Comments
 (0)