Commit Graph
1685 Commits
Author SHA1 Message Date
Sergio R. Caprile e8a82d1821 fix casting 2026-09-18 10:45:49 -03:00
eunho87 5d4fffbb14 Guard against NULL return in mg_file_printf
mg_vmprintf() returns io.buf from a mg_iobuf that starts empty. When the
internal mg_iobuf_resize() allocation fails, the buffer is left NULL and
mg_vmprintf() returns NULL. mg_file_printf() passed that result straight
to strlen(data), dereferencing NULL on allocation failure.

Skip the write when mg_vmprintf() returns NULL and return false, matching
how the rest of the codebase checks mg_calloc()/allocation results.
2026-09-15 10:50:14 +09:00
cpq 1e99974b83 health record support 2026-09-11 14:09:55 +01:00
Sergio R. Caprile 7e9ddc2d09 support c->is_full flow control in builtin TCP/IP 2026-09-09 15:55:55 -03:00
Sergio R. Caprile 555c5a76be fix C89 and be tests 2026-09-09 15:53:44 -03:00
Sergio R. Caprile ffcad7ee47 fix too small MSSs, enable auto config 2026-09-08 12:04:25 -03:00
Sergio R. Caprile 5c34018899 add optional TCP retransmission 2026-09-07 15:34:08 -03:00
Sergio R. Caprile c857ddae57 Properly ACK duplicate segments 2026-09-07 13:48:33 -03:00
Sergio R. Caprile f87d439710 fix PPP frame size, enforce L2 max lenghts 2026-09-07 11:14:58 -03:00
Sergio R. Caprile 86adf12a77 improve SAN matching 2026-09-04 17:29:44 -03:00
Sergio R. Caprile a561f3e096 reject improper TLS record lengths 2026-09-04 11:24:30 -03:00
Sergio R. Caprile 2b0a5e9701 improve OID subj handling 2026-09-03 14:06:25 -03:00
Sergio R. Caprile cd05b162a8 account for extension headers in IPv6 transported protocols checksums 2026-09-01 21:33:48 -03:00
robert 9ddac8faa7 Terminate destination buffer in mg_url_decode 2026-09-01 17:33:56 +03:00
robert 9123330f72 Avoid computing offset twice 2026-09-01 16:39:56 +03:00
Sergio R. Caprile 5a317e81d9 make FIN wait for TLS drain 2026-08-31 10:03:27 -03:00
cpq e7cfaa70c7 Add a cap to mg_dash_send_change() 2026-08-27 09:43:56 +01:00
robert 897d26edfb nits 2026-08-26 15:11:09 +03:00
robert 0d97280af4 Enable multicast in NETC driver 2026-08-25 10:48:21 +03:00
Sergey Lyubka afc84b7c92 Merge pull request #3664 from cesanta/drainudp
make builtin UDP honor c->is_draining, as socket does
2026-08-23 12:54:16 +01:00
Sergey Lyubka 66bf5952a4 Merge pull request #3660 from cesanta/ack
handle ACK in FIN, fix ACK to FIN + payload
2026-08-23 12:53:43 +01:00
Sergey Lyubka f002c30cbb Merge pull request #3665 from cesanta/fatfs
unbreak fatfs
2026-08-23 12:52:54 +01:00
robert e312219e80 Add OTA for IMXRT1180 2026-08-20 10:40:58 +03:00
cpq 2aff813795 Fix dosctrings 2026-08-15 11:23:15 +01:00
robertc2000 9c4506763b Merge pull request #3666 from cesanta/netc
Add Ethernet controller (NETC) driver for IMXRT1180
2026-08-14 17:01:04 +03:00
robert ec3b9e7c4f Add Ethernet controller (NETC) driver for IMXRT1180 2026-08-14 16:49:15 +03:00
Sergio R. Caprile 304ea2a649 unbreak fatfs 2026-08-13 18:23:09 -03:00
Sergio R. Caprile 83bac34094 make UDP honor c->is_draining 2026-08-13 12:41:55 -03:00
Sergio R. Caprile 02bdbb9ed6 update version 2026-08-12 09:41:29 -03:00
robertc2000 84553d06a0 Merge pull request #3662 from cesanta/flash-unlock
Flash unlock validation on STM32
2026-08-11 16:41:57 +03:00
Sergio R. Caprile 5df2445bc9 Merge commit from fork
fix TCP opt parser
2026-08-11 09:20:36 -03:00
Sergio R. Caprile 90890e4c63 Merge commit from fork
strenghten len checks
2026-08-11 09:16:05 -03:00
Sergio R. Caprile a6deed5868 Merge commit from fork
fix missing check
2026-08-11 09:10:46 -03:00
Sergio R. Caprile 5cdb25f05a Merge commit from fork
fix too short length guard
2026-08-11 09:05:40 -03:00
Sergio R. Caprile d8764746a4 Merge commit from fork
verify chain in bundle
2026-08-11 09:00:21 -03:00
robert fa4a2563e5 Flash unlock validation on STM32 2026-08-11 11:48:19 +03:00
Sergio R. Caprile f58f29b9a0 make BSD C++ compatible,survive to FreeRTOS not being so 2026-08-10 11:40:10 -03:00
Sergio R. Caprile 9c6b4edd37 handle ACK in FIN, fix ACK to FIN + payload 2026-08-07 11:49:28 -03:00
robert 735038c98c fix tests 2026-08-07 17:35:39 +03:00
robert 2696c1ff94 OTA: strenghten checks and introduce HTTPS support 2026-08-07 17:20:26 +03:00
Sergio R. Caprile 9f16806a22 Merge pull request #3648 from cesanta/bsd
BSD layer: Fix handling of full queues, add error handling
2026-08-05 10:47:00 -03:00
Sergio R. Caprile 2988bc9df3 verify chain in bundle 2026-08-04 11:59:22 -03:00
Sergio R. Caprile 758e301f0c fix too short length guard 2026-08-03 14:19:13 -03:00
Sergio R. Caprile 765bb237b7 Add support for DSCP 2026-07-30 17:36:46 -03:00
Sergio R. Caprile b0f5e9cec4 Merge pull request #3656 from cesanta/pppfcs
Add mg_crc16(), make PPP use it
2026-07-30 09:53:53 -03:00
Sergio R. Caprile 125b79bd70 Merge pull request #3654 from cesanta/misc
remove redundant checks, clarify algorithm
2026-07-30 09:52:50 -03:00
Sergio R. Caprile 7821fb9ab4 Add mg_crc16(), make PPP use it 2026-07-29 17:57:30 -03:00
Sergio R. Caprile 3c11521446 misc todo's and related fixes 2026-07-29 16:06:29 -03:00
Sergio R. Caprile 4faa3d5bf1 remove redundant checks 2026-07-29 13:50:32 -03:00
Sergio R. Caprile ac9ebdfb1a fix corner case 2026-07-28 20:21:28 -03:00