C For C's Sake

Results 83 issues of 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 :-)

enhancement
help wanted

(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: ![id:000051,sig:06,src:000279,op:ext_AO,pos:12](https://user-images.githubusercontent.com/9653993/65685836-3bbae900-e063-11e9-9c74-12ec2f426523.png) (`length`...

bug

(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`...

bug

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...

enhancement
help wanted

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...