- 12 Jul, 2021 1 commit
-
-
Shawn Webb authored
Instead of using asserts, which the compiler may leave out, do proper sanity checking with normal conditionals. Signed-off-by:
Shawn Webb <shawn.webb@hardenedbsd.org>
-
- 16 Jun, 2020 2 commits
-
-
Shawn Webb authored
Signed-off-by:
Shawn Webb <shawn.webb@hardenedbsd.org>
-
Shawn Webb authored
Signed-off-by:
Shawn Webb <shawn.webb@hardenedbsd.org>
-
- 29 Apr, 2020 5 commits
-
-
Shawn Webb authored
When sbuf_printf fails, we should free the string returned from curl_easy_escape to avoid a memory leak. Signed-off-by:
Shawn Webb <shawn.webb@hardenedbsd.org>
-
Shawn Webb authored
I prefer to diverge from style(9) a little by always surrounding conditional branch bodies with brackets, even for one-line bodies. Signed-off-by:
Shawn Webb <shawn.webb@hardenedbsd.org>
-
Shawn Webb authored
In order to enforce using the API to set fields, make the structures opaque. This will help prevent struct field abuse from consumers of this library. Signed-off-by:
Shawn Webb <shawn.webb@hardenedbsd.org>
-
Shawn Webb authored
If sbuf_finish fails, we leak the sbuf. Don't. Signed-off-by:
Shawn Webb <shawn.webb@hardenedbsd.org>
-
Shawn Webb authored
Each message object should only be used once. Since reusing message objects is not supported, ensure that the various struct members are NULL prior to setting them. Use curl_free rather than free when needed. Signed-off-by:
Shawn Webb <shawn.webb@hardenedbsd.org>
-
- 28 Apr, 2020 18 commits
-
-
Shawn Webb authored
Signed-off-by:
Shawn Webb <shawn.webb@hardenedbsd.org>
-
Shawn Webb authored
Signed-off-by:
Shawn Webb <shawn.webb@hardenedbsd.org>
-
Shawn Webb authored
Provide some basic documentation. Signed-off-by:
Shawn Webb <shawn.webb@hardenedbsd.org>
-
Shawn Webb authored
We may want to keep track of the version of libpushover in code (for ABI/API changes, backwards compatibility, etc.) Signed-off-by:
Shawn Webb <shawn.webb@hardenedbsd.org>
-
Shawn Webb authored
sbuf is much easier to work with. Signed-off-by:
Shawn Webb <shawn.webb@hardenedbsd.org>
-
Shawn Webb authored
Properly reflect that we're setting the destination token rather than some random user token. Signed-off-by:
Shawn Webb <shawn.webb@hardenedbsd.org>
-
Shawn Webb authored
I don't want libcurl to output any data to the console. Completely silence libcurl. Signed-off-by:
Shawn Webb <shawn.webb@hardenedbsd.org>
-
Shawn Webb authored
We don't need libcurl to show status/progress. But we do want libcurl to fail when there's an error. Signed-off-by:
Shawn Webb <shawn.webb@hardenedbsd.org>
-
Shawn Webb authored
We'll want to store key-value configuration options for each node. These structures are incomplete, just like the rest of the project. However, this is a good beginning to what the data is going to look like in memory. Signed-off-by:
Shawn Webb <shawn.webb@hardenedbsd.org>
-
Shawn Webb authored
Why, oh why, am I making these mistakes? ;) Signed-off-by:
Shawn Webb <shawn.webb@hardenedbsd.org>
-
Shawn Webb authored
Signed-off-by:
Shawn Webb <shawn.webb@hardenedbsd.org>
-
Shawn Webb authored
Braino. At least this would've just caused a slow memory leak. Nothing to see here. Move along. ;) Signed-off-by:
Shawn Webb <shawn.webb@hardenedbsd.org>
-
Shawn Webb authored
We needs this sanity checking in multiple places, so create a new function internal to libpushover: `pushover_message_priority_sane`. Signed-off-by:
Shawn Webb <shawn.webb@hardenedbsd.org>
-
Shawn Webb authored
Ensuring sane values for any user-defined input is always a good idea. Signed-off-by:
Shawn Webb <shawn.webb@hardenedbsd.org>
-
Shawn Webb authored
Introduce `pushover_free_ctx` and `pushover_free_message`. Signed-off-by:
Shawn Webb <shawn.webb@hardenedbsd.org>
-
Shawn Webb authored
To prevent UAF bugs, use double indirection to set the pointer to NULL if the message was dynamically allocated. In order to know whether to free the pushover_message_t object itself, add a 64-bit wide flags member to the object. Signed-off-by:
Shawn Webb <shawn.webb@hardenedbsd.org>
-
Shawn Webb authored
Signed-off-by:
Shawn Webb <shawn.webb@hardenedbsd.org>
-
Shawn Webb authored
Signed-off-by:
Shawn Webb <shawn.webb@hardenedbsd.org>
-
- 24 Feb, 2020 1 commit
-
-
Shawn Webb authored
Signed-off-by:
Shawn Webb <shawn.webb@hardenedbsd.org>
-