Checking out MyHTML and it looks like it should be easy to make a nice ~100-200 LoC html2markdown using it.https://github.com/lexborisov/myhtml …
-
-
Replying to @RichFelker
I gave up reporting the missing checks for malloc in it, if you care. But treating malloc as always succeeding, I wasn't able to find any UB after some fuzzing efforts.
2 replies 0 retweets 1 like -
Replying to @volatile_void
Excellent - I was wondering if anyone had done any security review on it. I don't care about aborting on malloc failure because my intended use is just a mailcap filter for reading and replying to text/html.
1 reply 0 retweets 0 likes -
Replying to @RichFelker
There is always this risk: —I'm going to send you a 3GiB text —ok let me calloc memory for it… done —good now send me back what's at offset 0x53C8375 of the block you allocated, it's less than 3Gi so it's fine —of course, here it is Crashing is only the best case scenario.
2 replies 0 retweets 0 likes
Yes but I wouldn't expect to see that pattern - normally either it's lots of small allocations for data structures, or large buffers written linearly from offset 0 before any subsequent random-access reads.
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.