stb icon indicating copy to clipboard operation
stb copied to clipboard

stb single-file public domain libraries for C/C++

Results 215 stb issues
Sort by recently updated
recently updated
newest added

**Is your feature request related to a problem? Please describe.** Current "stb_vorbis_get_sample_offset()" returns the sample position at the frame edge. This is not enough for operations that require the sample-accurate...

4 enhancement

**Describe the bug** `UBSAN: runtime error: signed integer overflow: -126340289 * 17 cannot be represented in type 'int'` and `UBSAN: runtime error: signed integer overflow: -2147450975 + -32767 cannot be...

1 stb_image

**Describe the bug** Several `UBSAN runtime error: shift exponent 32 is too large for 32-bit type 'unsigned int'` and similar **To Reproduce** Built stb according to [the oss-fuzz script](https://github.com/nothings/stb/blob/master/tests/ossfuzz.sh) with...

1 stb_image

crash when parse source NOT endswith newline. // main helper function for returning a parsed token static int stb__clex_token(stb_lexer *lexer, int token, char *start, char *end) { lexer->token = token;...

2 bug
priority
stb_c_lexer

## Overview I am proposing to replace stb.h with a new smaller library, stb_lib.h. I am looking for feedback from people currently using stb.h. ## Background stb.h wasn't originally intended...

new library

stb_sprintf: possible unaligned access In the function 'vsprintfcb': https://github.com/nothings/stb/blob/af1a5bc352164740c1cc1354942b1c6b72eacb8a/stb_sprintf.h#L1104 The cast to write-access 's' is not safe. I think it's safe in practice, but it could theoretically lead to an...

code quality
1 stb_sprintf

See https://github.com/syoyo/tinygltf/issues/263. I'll copy the relevant bits here. Try the free cppcheck tool on the code. ![82598968-7c7aeb80-9b79-11ea-873f-e1d8e8f4a4e8](https://user-images.githubusercontent.com/803995/82693246-2ec0ba80-9c2f-11ea-831f-cea12c010653.png) and that's just the start. Most of these warnings can be ignored as...

1 stb_image
can't reproduce

This speeds up loading .hdr images somewhere between 2.6x-2.8x on my machine.

4 enhancement
1 stb_image

i'm assuming it was a typo. fixes the following warning: ``` stb_image.h:4958:14: warning: no previous prototype for 'stbi__unpremultiply_on_load_thread' [-Wmissing-prototypes] 4958 | STBIDEF void stbi__unpremultiply_on_load_thread(int flag_true_if_should_unpremultiply) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ```

2 bug
1 stb_image
2 good-no changes needed