1 #! /bin/sh /usr/share/dpatch/dpatch-run
2 ## security-remote-preauth-crash.dpatch by <divanov@creditreform.bg>
4 ## All lines beginning with `## DP:' are a description of the patch.
8 diff -urNad firebird2-1.5.3.4870~/src/jrd/unix.cpp firebird2-1.5.3.4870/src/jrd/unix.cpp
9 --- firebird2-1.5.3.4870~/src/jrd/unix.cpp 2004-03-29 06:50:11.000000000 +0300
10 +++ firebird2-1.5.3.4870/src/jrd/unix.cpp 2006-03-20 11:46:53.000000000 +0200
15 + if (length >= sizeof(temp)) length = sizeof(temp) - 1;
17 MOVE_FAST(string, temp, length);
24 + if (file_length >= sizeof(temp)) file_length = sizeof(temp) - 1;
26 MOVE_FAST(file_name, temp, file_length);
27 temp[file_length] = 0;