aboutsummaryrefslogtreecommitdiff
path: root/src (follow)
AgeCommit message (Collapse)AuthorLines
2023-07-02patch against getcbytes bug, to be tested on linuxChloe Kudryavtsev-10/+45
I didn't catch this in development because macos helpfully zeroes out all malloc pages on allocation, so my buffers *were* \0-terminated. Getcbytes is called in a few spots, namely in setopt, and 4 mime functions. We only ever call setopt using the partial `pt`, so we can just `comp` it with `freeze`. As for mime, we insert a `freeze` in each of the 4 handlers. Either way, also backport the new getcbytes, which still has the failure condition, but only under very specific circumstances.
2023-05-07native: polyfills for get/opt cbytesChloe Kudryavtsev-9/+29
2023-04-03native: fix non-zeroed initializationChloe Kudryavtsev-0/+11
When we initialize an slist but it's meant to be empty, it might not be zero-allocated and thus recognize it's null. Therefore, explicitly zero-initialize jurl_cleanup->slist.
2023-04-03native: make strings more permissiveChloe Kudryavtsev-6/+15
* adds a getcbytes that accepts any JanetBytes * use it across the board, except where we can inform curl of the length
2023-04-02native: fix gc allocation error in jurl :dupChloe Kudryavtsev-1/+1
2023-03-28native: fix compat with curl as old as 7.81.0Chloe Kudryavtsev-0/+8
2023-03-27native: correct classification mistakeChloe Kudryavtsev-2/+2
cookiejar etc just take a filename
2023-03-26native: remove prefixes from authentication keysChloe Kudryavtsev-23/+23
mostly because they're semi-likely to be used quite often
2023-03-26native: implement getinfo on enums and bitmasksChloe Kudryavtsev-9/+122
2023-03-26native: implement getinfo slistsChloe Kudryavtsev-4/+27
2023-03-25native: allow write callback to handle <size bytesChloe Kudryavtsev-2/+5
2023-03-25native: use a macro for size of jurl_optsChloe Kudryavtsev-2/+3
2023-03-24native: add comment for future selfChloe Kudryavtsev-1/+2
in case gc breaks you know, as it well could
2023-03-24native: fix mime stuffChloe Kudryavtsev-6/+4
tl;dr jurl now discovers libcurl bugs due to how complete it is https://github.com/curl/curl/issues/10834
2023-03-24native: rework mimepart entirelyChloe Kudryavtsev-63/+113
2023-03-24native: cleanup: add elaborative commentsChloe Kudryavtsev-0/+8
2023-03-24native: cleanup, jurl.c editionChloe Kudryavtsev-27/+27
2023-03-24native: continue reorganizing: main.c editionChloe Kudryavtsev-86/+96
2023-03-24native: reorganize jurl.hChloe Kudryavtsev-20/+29
It's kind of a pain to find things quickly right now, so I'm sorting everything. Please wait patiently (for you it's all one big push so you're done waiting).
2023-03-24native: fix warningChloe Kudryavtsev-1/+1
"fix"
2023-03-24native: implement -blobChloe Kudryavtsev-8/+20
Is this it? Am I done?
2023-03-24native: fix another segfaultChloe Kudryavtsev-1/+1
I am bad at C I am just humble lua developer plz forgib
2023-03-24native: use getslist universallyChloe Kudryavtsev-13/+3
2023-03-24native: ok this is kind of big, see rest of messageChloe Kudryavtsev-94/+131
splitting this like usual was too much effort sorry * implement mime-headers * move util stuff out of jurl.c * reorganize header a bit (will do more of this soon) * make cleanup universal * wrap slist generation
2023-03-23native: fix two potential runoffsChloe Kudryavtsev-0/+2
2023-03-23Revert "native: NULL-terminate all struct[]s"Chloe Kudryavtsev-12/+9
This reverts commit 5ebde8722822ddac5b79755dbeb4c404f1c879fa.
2023-03-23native: fix nasty bugChloe Kudryavtsev-1/+1
thank you libasan
2023-03-23native: NULL-terminate all struct[]sChloe Kudryavtsev-9/+12
2023-03-23native: add OO-like setopt and getoptChloe Kudryavtsev-3/+26
caveat: if you put, it doesn't return the code instead, it panics on failure
2023-03-23native: implement ssl and security optsChloe Kudryavtsev-1/+105
2023-03-23native: implement mimepostChloe Kudryavtsev-1/+7
2023-03-23all: implement mime-data-cbChloe Kudryavtsev-4/+64
2023-03-23native: main: remove prefixes and rename moduleChloe Kudryavtsev-30/+30
2023-03-23reorganizeChloe Kudryavtsev-0/+1601
jurl-native moved to jurl/native some of the renaming hasn't been done yet