Patch from Julian Foad:
Remove a hack that originally worked around a buffer overflow elsewhere in the file. The buffer overflow was fixed long ago, but the hack was not removed.
This commit is contained in:
@@ -137,17 +137,12 @@ TimezoneContainer::TimezoneContainer(const char *filename)
|
||||
if (feof(infile)) {
|
||||
break;
|
||||
}
|
||||
#ifdef _MSC_VER
|
||||
if( buffer[0] == '#' )
|
||||
continue;
|
||||
#else
|
||||
for (char *p = buffer; *p; p++) {
|
||||
if (*p == '#') {
|
||||
*p = 0;
|
||||
break;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
if (buffer[0]) {
|
||||
data.push_back(new Timezone(buffer));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user