mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-30 19:03:16 +03:00
Do not assume that a pointer can fit in a long inside the printf() code.
Ticket #342. (CVS 1013) FossilOrigin-Name: 5dad7c05e9789e101d5ce75a6f3ea2ffb278b29d
This commit is contained in:
14
manifest
14
manifest
@ -1,5 +1,5 @@
|
|||||||
C Major\supdate\sof\svdbe\stutorial\sto\s2.8.0\sengine.\s(CVS\s1012)
|
C Do\snot\sassume\sthat\sa\spointer\scan\sfit\sin\sa\slong\sinside\sthe\sprintf()\scode.\nTicket\s#342.\s(CVS\s1013)
|
||||||
D 2003-06-07T08:57:58
|
D 2003-06-07T11:29:50
|
||||||
F Makefile.in 98a14dc13a78ca0e12007e974c93aeb098db7f68
|
F Makefile.in 98a14dc13a78ca0e12007e974c93aeb098db7f68
|
||||||
F Makefile.linux-gcc b86a99c493a5bfb402d1d9178dcdc4bd4b32f906
|
F Makefile.linux-gcc b86a99c493a5bfb402d1d9178dcdc4bd4b32f906
|
||||||
F README f1de682fbbd94899d50aca13d387d1b3fd3be2dd
|
F README f1de682fbbd94899d50aca13d387d1b3fd3be2dd
|
||||||
@ -41,7 +41,7 @@ F src/pager.c c4d007fc3572950d9ee20cae03c2beb4e4c12daa
|
|||||||
F src/pager.h 5da62c83443f26b1792cfd72c96c422f91aadd31
|
F src/pager.h 5da62c83443f26b1792cfd72c96c422f91aadd31
|
||||||
F src/parse.y 917250e5d86bdee752355e6617ea2e8ee12438bf
|
F src/parse.y 917250e5d86bdee752355e6617ea2e8ee12438bf
|
||||||
F src/pragma.c f439a6157fe7c8d66dc2c6bfde2abaf23e770e1d
|
F src/pragma.c f439a6157fe7c8d66dc2c6bfde2abaf23e770e1d
|
||||||
F src/printf.c fc5fdef6e92ad205005263661fe9716f55a49f3e
|
F src/printf.c 12ab57e638c8201033c96717df7af59e06933314
|
||||||
F src/random.c 19e8e00fe0df32a742f115773f57651be327cabe
|
F src/random.c 19e8e00fe0df32a742f115773f57651be327cabe
|
||||||
F src/select.c 76b3a5cda76421cfe82d6a96c72308c2518cb2f9
|
F src/select.c 76b3a5cda76421cfe82d6a96c72308c2518cb2f9
|
||||||
F src/shell.c b63089a91d6584df06eaa2e53ea1150c68ab1e61
|
F src/shell.c b63089a91d6584df06eaa2e53ea1150c68ab1e61
|
||||||
@ -165,7 +165,7 @@ F www/speed.tcl 296cc5632d069b56d3ef5409ca0df90f486c10fb
|
|||||||
F www/sqlite.tcl 4bd1729e320f5fa9125f0022b281fbe839192125
|
F www/sqlite.tcl 4bd1729e320f5fa9125f0022b281fbe839192125
|
||||||
F www/tclsqlite.tcl 1db15abeb446aad0caf0b95b8b9579720e4ea331
|
F www/tclsqlite.tcl 1db15abeb446aad0caf0b95b8b9579720e4ea331
|
||||||
F www/vdbe.tcl 14fdcc7fe8a60a6ba8584903636db8dc37eef26a
|
F www/vdbe.tcl 14fdcc7fe8a60a6ba8584903636db8dc37eef26a
|
||||||
P 685a179aae535431ec46922f1aff50a54112e959
|
P 787d986d0f391d26eef7a2639594c465f9599f5b
|
||||||
R d6e85951f3ba270b0e12272eb94105d7
|
R e6e651d4a1ca867cdb1d1a1cc51b5f22
|
||||||
U jplyon
|
U drh
|
||||||
Z 7226a2f79c96b354956ea3473fe74d79
|
Z ae9940e2c16a990723b9c10b3754bf84
|
||||||
|
@ -1 +1 @@
|
|||||||
787d986d0f391d26eef7a2639594c465f9599f5b
|
5dad7c05e9789e101d5ce75a6f3ea2ffb278b29d
|
@ -389,7 +389,7 @@ static int vxprintf(
|
|||||||
longvalue = longvalue/base;
|
longvalue = longvalue/base;
|
||||||
}while( longvalue>0 );
|
}while( longvalue>0 );
|
||||||
}
|
}
|
||||||
length = (long)&buf[etBUFSIZE]-(long)bufpt;
|
length = &buf[etBUFSIZE]-bufpt;
|
||||||
for(idx=precision-length; idx>0; idx--){
|
for(idx=precision-length; idx>0; idx--){
|
||||||
*(--bufpt) = '0'; /* Zero pad */
|
*(--bufpt) = '0'; /* Zero pad */
|
||||||
}
|
}
|
||||||
@ -401,7 +401,7 @@ static int vxprintf(
|
|||||||
for(pre=infop->prefix; (x=(*pre))!=0; pre++) *(--bufpt) = x;
|
for(pre=infop->prefix; (x=(*pre))!=0; pre++) *(--bufpt) = x;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
length = (long)&buf[etBUFSIZE]-(long)bufpt;
|
length = &buf[etBUFSIZE]-bufpt;
|
||||||
break;
|
break;
|
||||||
case etFLOAT:
|
case etFLOAT:
|
||||||
case etEXP:
|
case etEXP:
|
||||||
@ -511,7 +511,7 @@ static int vxprintf(
|
|||||||
/* The converted number is in buf[] and zero terminated. Output it.
|
/* The converted number is in buf[] and zero terminated. Output it.
|
||||||
** Note that the number is in the usual order, not reversed as with
|
** Note that the number is in the usual order, not reversed as with
|
||||||
** integer conversions. */
|
** integer conversions. */
|
||||||
length = (long)bufpt-(long)buf;
|
length = bufpt-buf;
|
||||||
bufpt = buf;
|
bufpt = buf;
|
||||||
|
|
||||||
/* Special case: Add leading zeros if the flag_zeropad flag is
|
/* Special case: Add leading zeros if the flag_zeropad flag is
|
||||||
|
Reference in New Issue
Block a user