소스 검색

apply a bugfix from the PHP CVS to the ancient SQLite 2.x sources

Ralf S. Engelschall 18 년 전
부모
커밋
2462a8c24b
2개의 변경된 파일13개의 추가작업 그리고 1개의 파일을 삭제
  1. 12 0
      sqlite/sqlite.patch
  2. 1 1
      sqlite/sqlite.spec

+ 12 - 0
sqlite/sqlite.patch

@@ -13,6 +13,18 @@ Index: sqlite-2.8.17/configure
  
  #########
  # Figure out whether or not we have a "usleep()" function.
+Index: sqlite-2.8.17/src/encode.c
+--- sqlite-2.8.17/src/encode.c.orig	2005-04-24 00:43:22 +0200
++++ sqlite-2.8.17/src/encode.c	2007-02-23 15:28:03 +0100
+@@ -176,6 +176,8 @@
+   int i, e;
+   unsigned char c;
+   e = *(in++);
++  if (e == 0)
++    return 0;
+   i = 0;
+   while( (c = *(in++))!=0 ){
+     if( c==1 ){
 Index: sqlite-3.3.13/Makefile.in
 --- sqlite-3.3.13/Makefile.in.orig	2006-10-03 14:40:42 +0200
 +++ sqlite-3.3.13/Makefile.in	2006-12-18 09:51:03 +0100

+ 1 - 1
sqlite/sqlite.spec

@@ -38,7 +38,7 @@ Class:        BASE
 Group:        Database
 License:      PD
 Version:      %{V_v3}
-Release:      20070219
+Release:      20070223
 
 #   package options
 %option       with_v2              no