Commit Graph
25 Commits
Author SHA1 Message Date
Brad Arant 78c45d378c Fix File stat-before-open crash risk, JSON string-quoting bug, and MString buffer overflow
- File: stat() only after a successful open() (previously ran first with
  its result ignored, feeding a missing file's garbage st_size into a
  realloc - could crash the whole APIServer on a request for a
  nonexistent static asset)
- JString::setString(): always quote+escape the value instead of going
  through set()'s literal-value guess, which misclassified any string
  starting with digits (e.g. a UUID) as a bare numeric literal and wrote
  it unquoted, corrupting later edits to the same JSON document
- MString::remove() (both overloads): fixed an off-by-one that read one
  byte past the buffer on a completely full string (found via ASan under
  concurrent load)
- CGIFormData: added fields() so callers can iterate every parsed field
  without knowing names in advance (used to merge POST body into
  jet::Global::variables the same way query-string params already are)
2026-09-03 05:14:24 +00:00
brad Arant fd7a9ed860 some smart buffer work. 2025-03-11 07:34:17 -07:00
Brad Arant 01180021b4 Work on the IMFHeader and IMFMessage. 2024-11-11 15:58:58 -08:00
Brad Arant 6697a59c43 Update 2022-06-29 11:07:21 -07:00
Brad Arant 082263f5ea Merge commit from develop 2022-05-23 12:51:44 -07:00
Brad Arant 91286649cc Eliminate includes file and include locally as required. 2022-02-14 07:04:20 -08:00
Brad Arant a37c4e6829 Updated and working. 2022-01-24 14:03:58 -08:00
Brad Arant d4148b0ab4 Optmizations for IMF objects. 2021-09-23 16:30:33 -07:00
Brad Arant a0129273b3 Added testing function for ZString. 2021-09-22 18:01:54 -07:00
Brad Arant deb88cb14d Latest updates. 2021-08-26 22:57:47 -07:00
Brad Arant 1632a41b3e Its working!!! 2021-08-11 21:37:48 -07:00
Brad Arant ff4d818f8b Working Compiling Version 2021-08-07 11:47:01 -07:00
barant ff2c2b7432 All sorts of new crap and adjustments 2021-07-23 11:44:36 -07:00
Brad Arant 7e06591de6 Sync. 2021-01-09 18:27:48 -08:00
Brad Arant c3c9530b4b Advancing along here. 2020-12-09 09:43:52 -08:00
Brad Arant b6f4bf8a71 Got it compiling and somewhat working, except post. 2020-11-29 13:58:17 -08:00
Brad Arant 41852d019c Sync. 2020-11-16 17:00:28 -08:00
Brad Arant c00476719c Added vscode 2020-11-07 17:25:37 -08:00
Brad Arant 6894968732 Compiles now. 2020-10-24 19:19:57 -07:00
barant 4f95b4591b sync. 2020-08-05 11:57:35 -07:00
barant 591705f897 More development on the messaging. 2020-05-07 10:20:22 -07:00
barant 947eef21e2 Continued work. 2020-03-03 15:46:24 -08:00
barant 08169b1c3d Many additions and changes. 2019-09-13 10:29:36 -07:00
Brad Arant 50f6e972de Continued development... 2019-08-02 15:43:31 -07:00
barant 604e196fbb Initial repository load. 2019-07-10 14:19:33 -07:00