C For C's Sake
C For C's Sake
As evidenced in - https://github.com/rlepigre/ocaml-imagelib/issues/42 - https://github.com/rlepigre/ocaml-imagelib/pull/43 We could use some more unit tests for the GIF suite :-)
(this is part of @olleolleolle + my work on a test suite for `imagelib`) Here we reach a `Fatal error: exception Invalid_argument("String.sub / Bytes.sub")` in https://github.com/rlepigre/ocaml-imagelib/blob/master/src/imagePNG.ml#L884 Trigger file:  (`length`...
(This is part of the work on a test suite for `imagelib` that @olleolleolle and I are working on.) Here's a trigger for an out-of-bounds array indexing operation in `imagePNG.ml`...
The compression methods seem to be documented at least somewhat here: - `1` / 8-bit: http://www.fileformat.info/format/bmp/corion-rle8.htm - `2` / 4-bit: http://www.fileformat.info/format/bmp/corion-rle8.htm I see `imagemagick` using these compression methods, so maybe...
Hi! What do you think about adding support for progressive parsing/rendering? Here is a demonstration: https://blog.codinghorror.com/progressive-image-rendering/ I'm mostly interested in the non-interlacing variant (due to memory consumption concerns), and it...
This is pretty unclear in the spec, but after receiving `IAC SB kind` you must continue parsing the suboption negotiation parameters until you see `IAC SE`. The current code consumes...
We currently have this: ```ocaml (** {3 Bytestring conversion} *) (** [of_bytes_exn ipv4_octets] is the address represented by [ipv4_octets]. Raises [Parse_error] if [ipv4_octets] is not a valid representation of an...
Source: https://en.wikipedia.org/wiki/IPv6_address#Scoped_literal_IPv6_addresses I had a use for this in SSH forwarding, and wondered if the OCaml SSH stack would be able to support this at some point, so I tried:...
Hi, I'm trying to parse a configuration file (in the `pf` firewall format) that has entries like: ``` utop # Ipaddr.V4.Prefix.of_string "172.16/12";; - : Ipaddr.V4.Prefix.t option = None utop #...
This bit me today while working on a library to parse [pf rules](https://github.com/cfcs/ocaml-pf) and was a little bit tricky to track down (with a trailing comma): ```ocaml utop # Ipaddr.Prefix.of_string...