mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-23 08:31:43 +02:00
Fix/tsan (#3617)
* fix(Foundation): tsan warnings fixes * fix(Thread_POSIX): tsan warnings fixes; add tsan.suppress * fix(Util): tsan fixes * fix(netSSL_OpenSSL): tsan fixes * fix(Data): tsan warnings fixes * feat(ci): add tsan job * feat(ci): add tsan job, another attempt * feat(ci): add tsan job, 3rd attempt * fix(Foundation): tsan warnings fixes * fix(Thread_POSIX): tsan warnings fixes; add tsan.suppress * fix(Util): tsan fixes * fix(netSSL_OpenSSL): tsan fixes * fix(Data): tsan warnings fixes * feat(ci): add tsan job * feat(ci): add tsan job, another attempt * feat(ci): add tsan job, 3rd attempt * fix(ResultMetadata): memory leak #3474 * feat(ci): disable ActiveDispatcher tests for tsan runs * feat(ci): try to fix tsan options file detection (again) * chore(TestLibrary: correct spelling * fix(ci): fix tsan run; add -y to apt; disable samples build for some jobs * fix(ci): add mysql ports * feat(ci): add VS asan * feat(double-conversion): Upgrade double-conversion to v3.2.0 #3624 * chore(asan): disable msvc asan build (dll not found) * chore(double-conversion): move NumericString.h before double-conversion includes to prevent min/max collision; reinstate lost loongarch64 * chore(JSON): sync pdjson with upstream * fix(Statement): Poco::Data::Statement becomes unusable after exception #2287
This commit is contained in:

committed by
GitHub

parent
17fec1b985
commit
ff879f5905
@@ -555,7 +555,7 @@ read_number(json_stream *json, int c)
|
||||
json_error(json, "unexpected byte '%c' in number", c);
|
||||
return JSON_ERROR;
|
||||
}
|
||||
} else if (strchr("123456789", c) != NULL) {
|
||||
} else if (c >= '1' && c <= '9') {
|
||||
c = json->source.peek(&json->source);
|
||||
if (is_digit(c)) {
|
||||
if (read_digits(json) != 0)
|
||||
|
@@ -9,12 +9,12 @@
|
||||
extern "C" {
|
||||
#else
|
||||
#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L)
|
||||
#include <stdbool.h>
|
||||
#else
|
||||
#ifndef bool
|
||||
#define bool int
|
||||
#define true 1
|
||||
#define false 0
|
||||
#include <stdbool.h>
|
||||
#else
|
||||
#ifndef bool
|
||||
#define bool int
|
||||
#define true 1
|
||||
#define false 0
|
||||
#endif /* bool */
|
||||
#endif /* __STDC_VERSION__ */
|
||||
#endif /* __cplusplus */
|
||||
@@ -33,7 +33,7 @@ struct json_allocator {
|
||||
void (*free)(void *);
|
||||
};
|
||||
|
||||
typedef int (*json_user_io) (void *user);
|
||||
typedef int (*json_user_io)(void *user);
|
||||
|
||||
typedef struct json_stream json_stream;
|
||||
typedef struct json_allocator json_allocator;
|
||||
@@ -69,8 +69,8 @@ PDJSON_SYMEXPORT bool json_isspace(int c);
|
||||
/* internal */
|
||||
|
||||
struct json_source {
|
||||
int (*get) (struct json_source *);
|
||||
int (*peek) (struct json_source *);
|
||||
int (*get)(struct json_source *);
|
||||
int (*peek)(struct json_source *);
|
||||
size_t position;
|
||||
union {
|
||||
struct {
|
||||
|
Reference in New Issue
Block a user