Skip to content
#

c99

Here are 300 public repositories matching this topic...

rday
rday commented Mar 2, 2020

Problem:

When you initialize a stuffer with an existing blob, the typical pattern is to write

struct s2n_blob blob;
struct s2n_stuffer stuffer;

GUARD(s2n_stuffer_init(&stuffer, &blob));
GUARD(s2n_stuffer_write(&stuffer, &blob));

This causes a memcpy to write to overlapping pages, which is undefined behavior. A workaround is to use s2n_stuffer_raw_write, but this st

athre0z
athre0z commented Mar 24, 2019

The documentation should always be in sync with the latest changes. Currently, this involves me manually building it and pushing it into an S3 bucket. That could happen automatically through CI.

Additionally, it would be great if we could display a drop-down in the doc that allows viewing documentation for older versions of Zydis as well, similar to what docs.rs does for Rust

flecs
liudr
liudr commented Dec 1, 2019

[update]
I am requesting a list of status_code and their meanings returned by the following function reportedStateCallback(). My port is esp-azure but this status_code should be generic. Thanks.

[original]
I'm using the esp-azure port but the c port has the same function, a callback function when device completes sending device twin update:

static void reportedStateCallback(int status
JohnGilmour
JohnGilmour commented Oct 31, 2019

cbor_item_t *cbor_tag_item(const cbor_item_t *item)
Get the tagged item.
Return
incref the tagged item
Parameters
item[borrow]: A tag

This API does not increment the reference count so either the documentation is incorrect or the code is. The result of this is a system crash, primarily due to the change that checks the reference count:
https://github.com/

rof-ableton
rof-ableton commented Apr 21, 2020

In src/hsluv.h the documentation says for rgb2hpluv: @param[out] ps Saturation. Between 0.0 and 100.0. but I think this is incorrect.

When passing the RGB values 1,1,0 (yellow) the returned Saturation is 1784.236 and for other colors it is also bigger then 100. The values are not wrong according to the CIELUV color space, only the documentation states it incorrectly.

The result from `

Improve this page

Add a description, image, and links to the c99 topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the c99 topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.