59 Commits

Author SHA1 Message Date
Arpad Borsos 03ebec7fc2 fix: Rewrite the Linux module finder (#431)
It now works in memory, without requiring to mmap the libraries again,
which should make it work correctly on android when loading libraries
directly from apk or appbundle files.

The new code will keep track of readable memory maps and will
translate read requests based on the offset of those memory maps,
making sure that we actually can read whatever we are trying to read.
2021-04-09 14:49:47 +02:00
Arpad Borsos 43c8d9d056 fix: Windows SDK Compiler Warning (#511) 2021-04-09 09:55:32 +02:00
Arpad Borsos 6cb5447f46 meta: Fix typo in gitattributes 2021-03-26 10:11:14 +01:00
Arpad Borsos 0b84cc18b9 fix: Fix JSON parsing/serialization issues found via fuzzing (#502)
This adds a fuzzing target for our json writer/reader, and fixes some problems revealed by it.

- Fixed memory unsafety issues while parsing JSON.
- Fixed invalid JSON serialization for deeply nested values.
2021-03-25 12:50:18 +01:00
Arpad Borsos d220295f8f fix: Avoid memory leak when adding breadcrumbs (#470)
And avoid leaking on some error conditions as well.
2021-02-03 12:07:26 +01:00
Arpad Borsos d5848ded59 feat: Add os context to events automatically (#467) 2021-02-03 11:43:04 +01:00
Arpad Borsos 8335814dae fix: Ensure collection methods on null do not crash (#456)
This tests all the value methods intended for list/object do
not crash when called on a null value, and fixes a faulty return
value while at it.

In addition, this changes a few things around handling of NaN.
2021-01-11 12:55:30 +01:00
Arpad Borsos c78d7c4f6f fix: Use correct logic to detect macOS target (#429) 2020-11-27 09:33:04 +01:00
Arpad Borsos 74c7fb1353 test: Add new rate-limit reason-code tests (#430)
Relay will start to emit a new reason-code pretty soon, so make sure the SDK can deal with it
2020-11-24 13:39:59 +01:00
Arpad Borsos 079993ac26 fix: Update crashpad and suppress C5105 (#428)
This warning was newly introduced in VS 16.8, but breaks with the
Windows SDKs own `winbase.h` header. We will just suppress it for now.
2020-11-20 14:29:59 +01:00
Arpad Borsos 8faa78298d feat: Expose modulefinder (#423) 2020-11-11 14:07:54 +01:00
Arpad Borsos 8a38e57882 fix: Fix building on MinGW (#421)
fixes #420
2020-11-09 12:41:42 +01:00
Arpad Borsos f9ea2e360d fix: Better validate JSON double output (#418) 2020-11-06 13:49:54 +01:00
Jan Michael Auer 7cd5e9cebb fix(crashpad): Send sentry_client with all crashpad requests (#410) 2020-10-29 12:20:38 +01:00
Armin Ronacher 49b3bd6cd1 ref(android): Do not use stb for printf on Android (#409) 2020-10-28 10:27:11 +01:00
Arpad Borsos 6a55ce7c28 fix: Parse/Stringify JSON in a locale-independent way (#408)
fixes #407
2020-10-27 16:47:48 +01:00
Arpad Borsos 291825df4a fix: Append breadcrumbs in binary mode (#395) 2020-10-09 11:35:29 +02:00
Arpad Borsos b908a7a59c fix: Use doubles to represent signal numbers (#392) 2020-10-05 15:48:53 +02:00
Arpad Borsos 004725b274 fix: Change NaN-boxing to Pointer Tagging (#378) 2020-09-30 14:42:24 +02:00
Arpad Borsos b2c6afff3b fix: Increase session errors count for sampled events (#367) 2020-09-15 12:42:16 +02:00
Arpad Borsos fd13157df5 fix: Parse rate limits with multiple categories (#362) 2020-08-26 12:41:56 +02:00
Arpad Borsos 0c5c158c1c fix: Lock scope for duration of flush hook (#348)
Also add some tests and fix winhttp proxy validation.
2020-08-10 16:40:03 +02:00
Arpad Borsos b9e2aab5f6 fix: Lock/refcount global options whenever they are accessed (#333) 2020-07-23 14:38:26 +02:00
Arpad Borsos b1debcb178 fix: Initialize curl in the correct order and update public API (#341) 2020-07-21 17:18:01 +02:00
Arpad Borsos 6d1e0478ec feat: Stabilize sessions and enable by default (#336) 2020-07-15 16:25:14 +02:00