Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:kssingvo
bidwatcher
bidwatcher-1.3.15-descr_overflow.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File bidwatcher-1.3.15-descr_overflow.patch of Package bidwatcher
--- /abuild/buildsystem.lavoisier.kssingvo/usr/src/packages/BUILD/bidwatcher-1.3.15/bidwatcher.h 2004-08-12 17:46:49.042959661 +0200 +++ bidwatcher-1.3.15/bidwatcher.h 2004-08-12 17:27:06.000000000 +0200 @@ -110,6 +110,8 @@ #define NUM_COLUMNS 6 #define COMMENT_LENGTH 200 +#define DESCRIPTION_LENGTH 129 + #define FONT_FIX_DFL "-*-clean-medium-r-normal-*-*-120-*-*-c-*-*-*" #define FONT_CLEAN_DFL "-*-clean-medium-r-normal-*-*-140-*-*-c-*-*-*" @@ -139,7 +141,7 @@ // struct auctioninfo { unsigned long long ItemNumber; /* Item Number (User Entered) */ - char Description[129]; /* Description Of Item For sale */ + char Description[DESCRIPTION_LENGTH]; /* Description Of Item For sale */ char Comments[COMMENT_LENGTH];/* User-defined comments */ char currency[10]; /* Bid Currency for the auction */ float CurrentBid; /* Current Bid */ --- /abuild/buildsystem.lavoisier.kssingvo/usr/src/packages/BUILD/bidwatcher-1.3.15/config.h 1970-01-01 01:00:00.000000000 +0100 +++ bidwatcher-1.3.15/config.h 2004-08-12 17:16:54.000000000 +0200 @@ -0,0 +1,88 @@ +/* config.h. Generated by configure. */ +/* config.h.in. Generated from configure.ac by autoheader. */ + +/* Debugging level */ +/* #undef DEBUGGING */ + +/* Define to 1 if you have the <fstream> header file. */ +#define HAVE_FSTREAM 1 + +/* Define to 1 if you have the <fstream.h> header file. */ +/* #undef HAVE_FSTREAM_H */ + +/* Define to 1 if you have the <inttypes.h> header file. */ +#define HAVE_INTTYPES_H 1 + +/* Define to 1 if you have the `socket' library (-lsocket). */ +/* #undef HAVE_LIBSOCKET */ + +/* Define to 1 if you have the <memory.h> header file. */ +#define HAVE_MEMORY_H 1 + +/* Define to 1 if you have the <sstream> header file. */ +#define HAVE_SSTREAM 1 + +/* Define to 1 if you have the <stdint.h> header file. */ +#define HAVE_STDINT_H 1 + +/* Define to 1 if you have the <stdlib.h> header file. */ +#define HAVE_STDLIB_H 1 + +/* Define to 1 if you have the <strings.h> header file. */ +#define HAVE_STRINGS_H 1 + +/* Define to 1 if you have the <string.h> header file. */ +#define HAVE_STRING_H 1 + +/* Define to 1 if you have the <strstream.h> header file. */ +/* #undef HAVE_STRSTREAM_H */ + +/* Define to 1 if `tm_zone' is member of `struct tm'. */ +#define HAVE_STRUCT_TM_TM_ZONE 1 + +/* Define to 1 if you have the <sys/stat.h> header file. */ +#define HAVE_SYS_STAT_H 1 + +/* Define to 1 if you have the <sys/types.h> header file. */ +#define HAVE_SYS_TYPES_H 1 + +/* Define to 1 if your `struct tm' has `tm_zone'. Deprecated, use + `HAVE_STRUCT_TM_TM_ZONE' instead. */ +#define HAVE_TM_ZONE 1 + +/* Define to 1 if you don't have `tm_zone' but do have the external array + `tzname'. */ +/* #undef HAVE_TZNAME */ + +/* Define to 1 if you have the <unistd.h> header file. */ +#define HAVE_UNISTD_H 1 + +/* Name of package */ +#define PACKAGE "bidwatcher" + +/* Define to the address where bug reports for this package should be sent. */ +#define PACKAGE_BUGREPORT "" + +/* Define to the full name of this package. */ +#define PACKAGE_NAME "" + +/* Define to the full name and version of this package. */ +#define PACKAGE_STRING "" + +/* Define to the one symbol short name of this package. */ +#define PACKAGE_TARNAME "" + +/* Define to the version of this package. */ +#define PACKAGE_VERSION "" + +/* Define to 1 if you have the ANSI C header files. */ +#define STDC_HEADERS 1 + +/* Define to 1 if your <sys/time.h> declares `struct tm'. */ +/* #undef TM_IN_SYS_TIME */ + +/* Version number of package */ +#define VERSION "1.3.15" + +/* Define to 'int' if <sys/socket.h> doesn't have it. */ +/* #undef socklen_t */ --- /abuild/buildsystem.lavoisier.kssingvo/usr/src/packages/BUILD/bidwatcher-1.3.15/helpers.cpp 2004-08-12 17:46:49.048959041 +0200 +++ bidwatcher-1.3.15/helpers.cpp 2004-08-12 17:28:31.000000000 +0200 @@ -950,7 +950,7 @@ while (isspace(*scratch)) scratch++; // copy over the description to a newline idx = 0; - while (*scratch != '\n') { + while (*scratch != '\n' && idx<DESCRIPTION_LENGTH-1) { Description[idx++] = *scratch++; } // NULL terminate the description I just parsed off
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor