mirror of
https://github.com/postgres/postgres.git
synced 2025-06-26 12:21:12 +03:00
Repair problems with overrun of timezone name length. Increase MAXTZLEN
to 10, and be consistent about whether it counts the trailing null (it does not). Also increase MAXDATELEN to be sure no buffer overflows are caused by the longer MAXTZLEN.
This commit is contained in:
@ -12,7 +12,7 @@
|
||||
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: miscadmin.h,v 1.55 2000/04/12 17:16:24 momjian Exp $
|
||||
* $Id: miscadmin.h,v 1.56 2000/05/29 19:16:55 tgl Exp $
|
||||
*
|
||||
* NOTES
|
||||
* some of the information in this file will be moved to
|
||||
@ -85,7 +85,7 @@ extern int DebugLvl;
|
||||
* CTZName is the timezone label.
|
||||
*/
|
||||
|
||||
#define MAXTZLEN 7
|
||||
#define MAXTZLEN 10 /* max TZ name len, not counting tr. null */
|
||||
|
||||
#define USE_POSTGRES_DATES 0
|
||||
#define USE_ISO_DATES 1
|
||||
|
Reference in New Issue
Block a user