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 …
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.
-
-
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.
-
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.
End of conversation
New conversation -
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.