issue_owner_repo
listlengths
2
2
issue_body
stringlengths
0
262k
⌀
issue_title
stringlengths
1
1.02k
issue_comments_url
stringlengths
53
116
issue_comments_count
int64
0
2.49k
issue_created_at
stringdate
1999-03-17 02:06:42
2025-06-23 11:41:49
issue_updated_at
stringdate
2000-02-10 06:43:57
2025-06-23 11:43:00
issue_html_url
stringlengths
34
97
issue_github_id
int64
132
3.17B
issue_number
int64
1
215k
[ "redpwn", "rctf" ]
At the moment, we are hardcoding `document.title` in the JS bundle: https://github.com/redpwn/rctf/blob/ad637da2dbe7488d383982cf5ebd49eb9102d8ba/client/src/config.js#L3 It would be better if we read this value from the `RCTF_NAME` env var instead.
Set `document.title` from RCTF_NAME
https://api.github.com/repos/redpwn/rctf/issues/27/comments
3
2020-02-16T07:32:41Z
2020-05-27T01:04:16Z
https://github.com/redpwn/rctf/issues/27
565,864,978
27
[ "redpwn", "rctf" ]
`yarn lint` should only lint staged files. This prevents the scenario where you run `yarn lint --fix` and forget to commit the linted files.
`yarn lint` on staged files
https://api.github.com/repos/redpwn/rctf/issues/25/comments
0
2020-02-16T05:47:20Z
2020-05-29T18:03:38Z
https://github.com/redpwn/rctf/issues/25
565,856,137
25
[ "redpwn", "rctf" ]
Because we are using a CSS framework, there is a lot of unused CSS increasing the bundle size. We should look into [CSS-Purge](https://www.npmjs.com/package/css-purge) as an option for removing unused CSS, decreasing bundle size.
CSS-Purge
https://api.github.com/repos/redpwn/rctf/issues/24/comments
1
2020-02-16T05:01:53Z
2020-02-19T05:50:31Z
https://github.com/redpwn/rctf/issues/24
565,852,281
24
[ "redpwn", "rctf" ]
We are currently importing the entire font-awesome library when we only, in reality, use a few icons. This increases the bundle size by a lot, which would be worth fixing. https://github.com/redpwn/rctf/blob/master/client/src/index.js#L10
Streamline `font-awesome` imports
https://api.github.com/repos/redpwn/rctf/issues/23/comments
1
2020-02-16T05:00:52Z
2020-02-19T06:59:31Z
https://github.com/redpwn/rctf/issues/23
565,852,202
23
[ "redpwn", "rctf" ]
The verification API currently returns `responses.badKnownEmail` on any error. We should only return this on violation of the uniqueness constraint for `email`. https://github.com/redpwn/rctf/blob/master/server/api/auth-verify.js#L45 We should also return a similar error for a violation on `name`. You can add a ...
Misleading responses on `/auth/verify`
https://api.github.com/repos/redpwn/rctf/issues/22/comments
3
2020-02-16T02:30:21Z
2020-02-17T18:10:11Z
https://github.com/redpwn/rctf/issues/22
565,840,005
22
[ "dvidelabs", "flatcc" ]
New Cmake from ubuntu repository `cmake 4.0.2`, has no back compability to `cmake_minimum_required (VERSION 2.8.12.2)` ``` CMake Error at CMakeLists.txt:2 (cmake_minimum_required): Compatibility with CMake < 3.5 has been removed from CMake. Update the VERSION argument <min> value. Or, use the <min>...<max> synta...
Compatibility with CMake < 3.5 has been removed from CMake.
https://api.github.com/repos/dvidelabs/flatcc/issues/348/comments
0
2025-06-20T11:11:45Z
2025-06-20T11:11:45Z
https://github.com/dvidelabs/flatcc/issues/348
3,162,930,258
348
[ "dvidelabs", "flatcc" ]
Hi, I'm just starting to use FlatBuffers and I noticed this bug. In _verifier.c_, functions _flatcc_verify_buffer_header_with_size()_ and _flatcc_verify_typed_buffer_header_with_size()_ doesn't add the size_prefix offset when reading the file identifier. This results in that it reads the file identifier at the wrong ...
Verifier on buffer with size prefix and file identifier reads file identifier at the wrong offset
https://api.github.com/repos/dvidelabs/flatcc/issues/345/comments
0
2025-06-17T07:30:12Z
2025-06-17T07:30:12Z
https://github.com/dvidelabs/flatcc/issues/345
3,152,389,773
345
[ "dvidelabs", "flatcc" ]
Recently I've noticed that comments started with `///` and placed in the end of `struct` definition (right after the last field of the `struct` and before closing `}` brace) appear outside C language `struct` definition after the schema file's been processed by `flatcc`. Please check following code snippets with refere...
Comment lines placed after the last 'struct' field (in schema file) appear outside generated C language 'struct' definition
https://api.github.com/repos/dvidelabs/flatcc/issues/336/comments
0
2025-05-08T18:26:42Z
2025-05-08T18:26:42Z
https://github.com/dvidelabs/flatcc/issues/336
3,049,770,219
336
[ "dvidelabs", "flatcc" ]
I've checkout latest commit and to my surprise **--schema-length** is no longer available This feature was deprecated ([commit](https://github.com/dvidelabs/flatcc/commit/faa7e1ce65186ac78cebdba7c4af6406f9f8104c#diff-7d452113cdd4c57307afb0148c412ae46a5ff995e9fa00afbe17c440c2825bce)) long time ago: ```c #if FLATCC_REF...
alternative to schema-length?
https://api.github.com/repos/dvidelabs/flatcc/issues/333/comments
3
2025-04-20T19:47:22Z
2025-04-22T14:35:42Z
https://github.com/dvidelabs/flatcc/issues/333
3,007,195,291
333
[ "dvidelabs", "flatcc" ]
Hello, I've noticed that flatcc always strips away the prefix of an included file when formatting the include path in the header file. For instance, if in my flatbuffers schema I have the following: ``` include "path/to/included_schema.fbs"; ``` then in the generated header file the included path will always strip aw...
Add the option to keep the path prefix in the generated include path
https://api.github.com/repos/dvidelabs/flatcc/issues/332/comments
7
2025-04-10T14:38:59Z
2025-04-24T05:58:40Z
https://github.com/dvidelabs/flatcc/issues/332
2,985,923,195
332
[ "dvidelabs", "flatcc" ]
Would be great to see a reference implementation of doing something as typical with cloning as: 1. Deserialize an existing object from a buffer using `clone_as_root`; 2. Update a field in root object, or a field in child object or an array (add/remove elements); 3. Assemble everything back together and serialize it ba...
Better documentation/code example for "clone" operation
https://api.github.com/repos/dvidelabs/flatcc/issues/330/comments
10
2025-04-01T11:33:45Z
2025-04-02T20:17:56Z
https://github.com/dvidelabs/flatcc/issues/330
2,963,167,499
330
[ "dvidelabs", "flatcc" ]
Hello flatcc team. First and foremost, let me express my utmost gratitude to all of you for building and maintaining such a great project. I struggled a lot with Google's official C++ codegen and it just didn't work fully for me. Moreover, it introduced some nonsense related to root objects, which shouldn't be there, b...
A word on Arduino/PlatformIO compatibility
https://api.github.com/repos/dvidelabs/flatcc/issues/328/comments
1
2025-03-27T22:51:57Z
2025-03-28T14:22:38Z
https://github.com/dvidelabs/flatcc/issues/328
2,954,598,650
328
[ "dvidelabs", "flatcc" ]
On windows (at least using msvc) symbols are not exported by default, contrary to linux/macos/*nix (actually depends on `-fvisibility` afaik). To still use a flatcc dll on windows, there are two options: - Using `-DCMAKE_WINDOWS_EXPORT_ALL_SYMBOLS=TRUE` - Using [GenerateExportHeader](https://cmake.org/cmake/help/la...
The c library doesn't export any symbols
https://api.github.com/repos/dvidelabs/flatcc/issues/319/comments
1
2025-03-09T07:19:26Z
2025-03-11T22:46:29Z
https://github.com/dvidelabs/flatcc/issues/319
2,905,254,344
319
[ "dvidelabs", "flatcc" ]
Hi there and sorry if this is the wrong place to ask. When I clone this repo, I can build the monster sample without problems. When I create my own folder, copy the flattc header files into it, generate the flatbuffers header files with flatcc, copy the libflatcc_d.a file and link it in the cmakelists, I always ge...
How to build example in custom project
https://api.github.com/repos/dvidelabs/flatcc/issues/311/comments
1
2024-11-15T10:12:18Z
2024-11-15T10:39:08Z
https://github.com/dvidelabs/flatcc/issues/311
2,661,507,264
311
[ "dvidelabs", "flatcc" ]
Builder’s custom init function provides mechanism to provide custom allocator to flatcc builder. The flatcc_builder_alloc_fun contains alloc and free calls. This allows multiple flatcc builders in a project to have different alloc and free functions. This just requires a new function to be sent during init. Any r...
Custom allocator
https://api.github.com/repos/dvidelabs/flatcc/issues/310/comments
2
2024-11-15T03:35:44Z
2025-03-11T22:35:29Z
https://github.com/dvidelabs/flatcc/issues/310
2,660,624,390
310
[ "dvidelabs", "flatcc" ]
I wanted to know if there is a way to submit security issues. There is no Security.md file in the repo. This is a requirement for me to be able to use the product. Are there plans to add a security policy?
Missing Security policy
https://api.github.com/repos/dvidelabs/flatcc/issues/298/comments
4
2024-09-27T15:09:18Z
2024-10-14T18:20:32Z
https://github.com/dvidelabs/flatcc/issues/298
2,553,172,130
298
[ "dvidelabs", "flatcc" ]
There seems to be unreachable code in [src/compiler/codegen_schema.c](https://github.com/dvidelabs/flatcc/blame/b09f8f4c1d41f5f6e2a66e83dbed24d380c44dca/src/compiler/codegen_schema.c#L91-L93). msvc looks at this block between the two `break`s and raises a warning. From a glance at the code, its analysis seems valid....
Unintended dead code in binary schema generation
https://api.github.com/repos/dvidelabs/flatcc/issues/295/comments
2
2024-09-11T10:08:43Z
2024-09-12T19:00:41Z
https://github.com/dvidelabs/flatcc/issues/295
2,519,281,697
295
[ "dvidelabs", "flatcc" ]
When schema file name called something like `my-supper-game.fbs`. Header guards doesn't change '-' to '_'. Json printer generate function with '-' symbol.
Problems when the schema file name uses '-' as a separator
https://api.github.com/repos/dvidelabs/flatcc/issues/293/comments
1
2024-09-03T06:20:26Z
2024-09-10T04:06:08Z
https://github.com/dvidelabs/flatcc/issues/293
2,502,013,853
293
[ "dvidelabs", "flatcc" ]
Flatcc's `verify_vector` requires that vectors be properly aligned even when the vector is empty. The consumers in https://github.com/google/flatbuffers do not enforce this and moreover the producers will sometimes emit an empty vector which they didn't bother to align. (Encountered in the context of arrow IPC, whic...
Alignment (probably) shouldn't be required for empty vectors
https://api.github.com/repos/dvidelabs/flatcc/issues/287/comments
32
2024-08-14T15:31:30Z
2024-08-19T18:45:35Z
https://github.com/dvidelabs/flatcc/issues/287
2,466,186,905
287
[ "dvidelabs", "flatcc" ]
I debug the program flatcc. found in: external/lex/luthor.c ```c #ifndef lex_isctrl #include <ctype.h> #define lex_isctrl(c) ((c) < 0x20 || (unsigned char)(c) == 0x7f) #endif ``` When the character c is utf8, it will be a negative number. This will result in being judged as a control character. Control charact...
parse fbs file failed when comment with utf8 characters >= 0x80
https://api.github.com/repos/dvidelabs/flatcc/issues/283/comments
2
2024-05-28T10:23:46Z
2024-05-29T11:02:24Z
https://github.com/dvidelabs/flatcc/issues/283
2,320,691,951
283
[ "dvidelabs", "flatcc" ]
I didn't find any examples or docs how to use boolean values and push them into boolean vectors. Orc example has deprecated field as bool, but no other kinds. I have a field in my struct of bool vector: ```cpp table MyStruct { bools: [bool]; ints: [int]; } ``` and I tried different kinds of pushing values ...
Any docs regarding usage of bool and bool vectors?
https://api.github.com/repos/dvidelabs/flatcc/issues/279/comments
4
2024-05-08T14:46:37Z
2024-06-07T10:07:07Z
https://github.com/dvidelabs/flatcc/issues/279
2,285,790,507
279
[ "dvidelabs", "flatcc" ]
[bug_for_flatcc.zip](https://github.com/dvidelabs/flatcc/files/14517264/bug_for_flatcc.zip) Hi everyone! This is my first bug report contribution into the FlatCC project. Thanks for making such an awesome project! Here are the details: # Files attached * build.sh has the build command to repro (define $GCC_PATH...
Anti-Aliasing Bug (Initialize pre-generated message, then modify it)
https://api.github.com/repos/dvidelabs/flatcc/issues/274/comments
23
2024-03-07T01:07:29Z
2024-03-13T12:58:40Z
https://github.com/dvidelabs/flatcc/issues/274
2,172,738,331
274
[ "dvidelabs", "flatcc" ]
A dsPIC33 MCU (16-bit) is being used for data collection. I add a value on "Sample ID" to a buffer format containing real time measurements. The sample ID is 16bits, so wraps after 2^16 samples, The schema is as so ```proto enum DevStatus:ubyte {None = 0, OK = 2} table Sample{ status:SampleStatus; ...
Sometimes Assertion fails with `_add(B, 0)`, but not with `_force_add(B, 0)`
https://api.github.com/repos/dvidelabs/flatcc/issues/272/comments
6
2024-01-12T17:06:13Z
2024-01-24T22:40:22Z
https://github.com/dvidelabs/flatcc/issues/272
2,079,304,414
272
[ "dvidelabs", "flatcc" ]
The following flatbuffer schema does not compile with `flatcc`, but is okay with `flatc` ``` table Alice { } table Bob { } union Bar { a:Alice, b:Bob, } table Foo { bar:Bar (id: 1); } ``` Error message: ``` test.fbs:16:12: error: 'id': id attribute value should be larger to ac...
Unexpected error of "id attribute value should be larger to accommodate hidden union type field"
https://api.github.com/repos/dvidelabs/flatcc/issues/271/comments
1
2023-11-23T10:37:37Z
2023-11-26T14:54:27Z
https://github.com/dvidelabs/flatcc/issues/271
2,007,934,223
271
[ "dvidelabs", "flatcc" ]
## Summary During development of [Damus](https://github.com/damus-io/damus), we noticed an issue with `flatc` that cause certain flatbuffer values to become `NULL` when parsing a JSON with Unicode values. I apologize in advance if this report is missing information, `flatc` is still somewhat new to me. ## Prec...
JSON with Unicode values can cause parsing errors
https://api.github.com/repos/dvidelabs/flatcc/issues/270/comments
4
2023-11-15T21:12:54Z
2024-02-02T10:41:30Z
https://github.com/dvidelabs/flatcc/issues/270
1,995,575,792
270
[ "dvidelabs", "flatcc" ]
I am am compiling and running flatcc on a dsPIC using the XC16 compiler and generally having success with very minor tweaks. When calling `finalize_aligned_buffer` it uses the `__portable_aligned_alloc` implementation but when `malloc` cannot assign the space and it returns nullptr, the alloc does not, instead retu...
_portable_aligned_alloc not returning as expected when malloc is unsuccessful
https://api.github.com/repos/dvidelabs/flatcc/issues/269/comments
3
2023-11-09T10:23:25Z
2023-11-09T12:21:59Z
https://github.com/dvidelabs/flatcc/issues/269
1,985,312,361
269
[ "dvidelabs", "flatcc" ]
I tried to use Flatcc to build vectors that store fixed length arrays, but after the serialized data was deserialized by Python, I printed these fixed length arrays, them all with 0. test.fbs: `struct Key6Bytes { bytes: [uint8:6]; } table KeysArray{ keys: [Key6Bytes]; }` I did not find a similar usage in the ...
How to correctly construct vectors for fixed length arrays?
https://api.github.com/repos/dvidelabs/flatcc/issues/268/comments
1
2023-10-16T10:12:45Z
2023-10-16T10:27:06Z
https://github.com/dvidelabs/flatcc/issues/268
1,944,859,951
268
[ "dvidelabs", "flatcc" ]
If the comment contains UTF8 characters, an error 'unexpected control character in comment' will be reported. ![image](https://github.com/dvidelabs/flatcc/assets/23152044/75b2c726-6b72-44de-adfe-cd73bc37cde5) Debug is ultimately traced back to the lex_emit_comment_ctrl macro definition, commenting out the code th...
The comment contains UTF8 characters.
https://api.github.com/repos/dvidelabs/flatcc/issues/267/comments
12
2023-10-10T08:10:09Z
2023-10-12T13:59:34Z
https://github.com/dvidelabs/flatcc/issues/267
1,934,711,360
267
[ "dvidelabs", "flatcc" ]
### Platform Result of `lsb_release -a`: ``` Distributor ID: Ubuntu Description: Ubuntu 20.04.6 LTS Release: 20.04 Codename: focal ``` running on x86_64 vm Result of `flatcc --version`: ``` flatcc FlatBuffers schema compiler for C by dvide.com version: 0.6.2 ``` ### Error case: When using empty names...
Error compiling nested structs with empty namespace
https://api.github.com/repos/dvidelabs/flatcc/issues/265/comments
2
2023-08-15T08:23:05Z
2023-08-15T15:18:46Z
https://github.com/dvidelabs/flatcc/issues/265
1,851,074,558
265
[ "dvidelabs", "flatcc" ]
Hi, I'm working with two different types of flatbuffers and I want to verify during execution that the type of the buffer it's the correct to avoid errors or strange behaviours. The schemas of the flatbuffers are the nexts: - Detection ``` namespace postprocessed; struct Bbox { x_min:float; x_max:flo...
Unwanted result when verifying buffer
https://api.github.com/repos/dvidelabs/flatcc/issues/261/comments
3
2023-02-09T13:45:51Z
2023-02-10T11:05:19Z
https://github.com/dvidelabs/flatcc/issues/261
1,577,920,865
261
[ "dvidelabs", "flatcc" ]
I'm new to flatbuffers, and I'd like to confirm my understanding. 1. Does the generated json parser rejects any object with unknown fields? I'm asking about this based on trying to parse a tiny subset of a large JSON object returned from an HTTP api, and the generated parser returns the "unknown symbol" error. ...
Question about json parsing: unknown fields, top-level arrays
https://api.github.com/repos/dvidelabs/flatcc/issues/259/comments
6
2022-12-11T19:09:43Z
2022-12-16T20:13:13Z
https://github.com/dvidelabs/flatcc/issues/259
1,490,342,545
259
[ "dvidelabs", "flatcc" ]
Hi @mikkelfj! I found #165 where you replied: > Also, mutation is quite limited in Flatc: you can only mutate simple scalars, and perhaps scalar arrays that doesn't grow. Mutating simple scalars is exactly what we need. Would this be acceptable to add? Background: In a project, we've replaced our old dataty...
Allow mutable scalars
https://api.github.com/repos/dvidelabs/flatcc/issues/253/comments
4
2022-11-16T17:14:48Z
2023-10-24T19:21:38Z
https://github.com/dvidelabs/flatcc/issues/253
1,451,977,016
253
[ "dvidelabs", "flatcc" ]
Hello, wanna ask, can I copy the runtime file to my project, replace roiginal flatfbuffer dep in my C++ project? my schema is generated with flatbuffer in c++. I want my runtime to be small enought with flatbuffer.
Question about C++ and C runtime code compatibility.
https://api.github.com/repos/dvidelabs/flatcc/issues/251/comments
7
2022-11-01T08:14:22Z
2023-10-24T19:39:52Z
https://github.com/dvidelabs/flatcc/issues/251
1,431,048,081
251
[ "dvidelabs", "flatcc" ]
When a source file includes both `flatcc` and `Boost` the following problem appears: ``` staging/include/boost/config/compiler/clang.hpp:314:26: error: missing ')' after '(' #if !__has_cpp_attribute(fallthrough) || __cplusplus < 201406L ^~~~~~~~~~~ staging/include/flatcc/portable/pattribu...
The internal define `fallthrough` leaks to usercode
https://api.github.com/repos/dvidelabs/flatcc/issues/247/comments
8
2022-10-11T15:26:57Z
2022-11-08T20:26:34Z
https://github.com/dvidelabs/flatcc/issues/247
1,404,838,979
247
[ "dvidelabs", "flatcc" ]
Hello, I am trying to use a **vector of union** in my flatbuffers' schema, but unfortunately, there is no documentation how this could be achieved. ```fbs // schema.fbs union Layer { Domain, User } table Structure { layers:[Layer]; } table Domain { loc:int32; } table User { example:int32; } ```...
Documentation for vector of union
https://api.github.com/repos/dvidelabs/flatcc/issues/241/comments
1
2022-08-30T14:26:31Z
2022-08-30T16:51:02Z
https://github.com/dvidelabs/flatcc/issues/241
1,355,857,942
241
[ "dvidelabs", "flatcc" ]
There are multiple compiler warnings when building flatbuffers with mingw there are a multitude of warnings generated, but here is a concatenated log output below ``` flatbuffers/flatbuffers_common_builder.h: In function 'flatbuffers_int16_array_copy_from_pe': flatbuffers/flatbuffers_common_builder.h:341:3: war...
mingw compiler warnings
https://api.github.com/repos/dvidelabs/flatcc/issues/239/comments
1
2022-08-08T19:01:33Z
2022-08-09T15:39:17Z
https://github.com/dvidelabs/flatcc/issues/239
1,332,270,684
239
[ "dvidelabs", "flatcc" ]
When compiling with GCC 11.2.0 (ubuntu 22) with link time optimizations the error below is reported ``` In function 'ht_default_hash_function', inlined from 'ptr_set_hash_function' at ../compiler/./external/hash/ptr_set.c:58:12, inlined from 'ht_insert.constprop' at ../compiler/./external/hash/hash_table...
presumed issue when compiling with LTO + GCC
https://api.github.com/repos/dvidelabs/flatcc/issues/238/comments
12
2022-07-08T12:35:00Z
2024-03-13T13:31:49Z
https://github.com/dvidelabs/flatcc/issues/238
1,298,964,803
238
[ "dvidelabs", "flatcc" ]
Running the test suite with the clang [Undefined Behaviour sanitizer](https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html) I'm getting a bunch of errors: ``` flatcc/src/compiler/parser.c:1276:19: runtime error: applying zero offset to null pointer SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior fla...
Undefined behaviour found by clang sanitizer
https://api.github.com/repos/dvidelabs/flatcc/issues/236/comments
19
2022-06-16T13:51:55Z
2023-11-04T10:18:16Z
https://github.com/dvidelabs/flatcc/issues/236
1,273,596,414
236
[ "dvidelabs", "flatcc" ]
Hello I have a quit complex shema like this: ``` namespace StCfg; struct FilterConfig { field1:uint32; field2:uint32; ........... field54:uint32; ........... field75:uint32; } struct FilterTable { filterConfig:[FilterConfig:10]; } struct StaticCfg { filterTable:FilterTable; ...
Table above 64 KB fails, was Mismatched in create_cached_vtable()
https://api.github.com/repos/dvidelabs/flatcc/issues/235/comments
28
2022-06-14T11:05:59Z
2023-10-25T12:57:12Z
https://github.com/dvidelabs/flatcc/issues/235
1,270,634,412
235
[ "dvidelabs", "flatcc" ]
I get this error message when I create a flatbuffers string: `malloc(): corrupted top size` Here is my code: ``` flatcc_builder_t builder, *B; B = &builder; flatcc_builder_init(B); flatbuffers_string_ref_t state = flatbuffers_string_create_str(B, "bla"); ``` Thank you for your help :)
Creating string fails.
https://api.github.com/repos/dvidelabs/flatcc/issues/234/comments
8
2022-06-08T08:40:02Z
2022-06-10T05:58:39Z
https://github.com/dvidelabs/flatcc/issues/234
1,264,399,074
234
[ "dvidelabs", "flatcc" ]
I have prepared the following flatbuffers schema to show the case ``` namespace TestMSG; table MsgPing { text: string; length: ushort; } table MsgPong { text: string; length: ushort; } union MessageUnion { MsgPing, MsgPong} table ComboMessage { message: MessageUnion; } root_type ComboMes...
Union type field is not read properly between flatc -> flatcc
https://api.github.com/repos/dvidelabs/flatcc/issues/232/comments
9
2022-05-20T12:05:56Z
2022-05-20T15:20:48Z
https://github.com/dvidelabs/flatcc/issues/232
1,243,050,271
232
[ "dvidelabs", "flatcc" ]
Current master branch doesn't build with gcc without `-Wno-sign-conversion`: ``` $ CC=gcc cmake .. $ make ... [ 16%] Building C object src/compiler/CMakeFiles/flatcc.dir/semantics.c.o /home/mars/devel/evp-device-agent/evp_agent/sdkenc/flatcc/src/compiler/semantics.c: In function ‘analyze_struct’: /home/mars/deve...
flatcc cli compiles with clang but not with gcc on Linux
https://api.github.com/repos/dvidelabs/flatcc/issues/231/comments
8
2022-05-10T13:31:31Z
2022-05-10T14:19:47Z
https://github.com/dvidelabs/flatcc/issues/231
1,231,170,251
231
[ "dvidelabs", "flatcc" ]
I'm trying to use flatcc in an embedded ARM-based FreeRTOS system. On my Ubuntu host, I created a schema and ran flatcc to generate the header files, but they use "alignas" on certain struct elements. The version of gcc we're using to generate the embedded ARM app does not support this. I tried recompiling flatcc with ...
flatcc generates header files with "alignas" even after recompiling flatcc with FLATCC_PORTABLE
https://api.github.com/repos/dvidelabs/flatcc/issues/229/comments
6
2022-04-20T04:04:54Z
2022-04-21T10:40:25Z
https://github.com/dvidelabs/flatcc/issues/229
1,209,132,700
229
[ "dvidelabs", "flatcc" ]
the following build command fails `cmake -DFLATCC_INSTALL=on -DFLATCC_RTONLY=on -DCMAKE_BUILD_TYPE=Release && make install` ``` + make install ...
GCC 11 compiler fails to build due to -pedantic and fallthrough
https://api.github.com/repos/dvidelabs/flatcc/issues/227/comments
9
2022-03-29T15:45:58Z
2022-03-29T21:58:43Z
https://github.com/dvidelabs/flatcc/issues/227
1,185,068,752
227
[ "dvidelabs", "flatcc" ]
Has anyone had or know of an example of sorting a vector of tables with flat? Thanks in advance
[Help] Has anyone had or know of an example of sorting a vector of tables?
https://api.github.com/repos/dvidelabs/flatcc/issues/225/comments
1
2022-02-25T10:16:36Z
2022-02-25T10:54:57Z
https://github.com/dvidelabs/flatcc/issues/225
1,150,275,367
225
[ "dvidelabs", "flatcc" ]
We have been waiting for the next release of flatcc for some time now, I am particularly interested in the changes to FLATCC_ASSERT. Is there a plan for a new release any time soon?
When is the next release?
https://api.github.com/repos/dvidelabs/flatcc/issues/224/comments
4
2022-01-10T11:32:55Z
2022-05-23T10:59:04Z
https://github.com/dvidelabs/flatcc/issues/224
1,097,789,712
224
[ "dvidelabs", "flatcc" ]
The following malicious "json" crash when call monster_parse_json function: `{"color":"Red"�"weapons2:[ #,"inventory":[0,1,2,3;4,5,,"color":"Red","weapons":[{"name"K,7,8,9:"Sw}rd","-amage":3},{"name":"Axapons":[{"ne"�damagE":4}},"equipp,4,526,7,8,Q],"coed_type":"Weame":"Axe","dame":5}}` ``` 00000000 7b 22 63 6f...
Crash on parsing unterminated JSON
https://api.github.com/repos/dvidelabs/flatcc/issues/223/comments
3
2021-11-26T09:56:22Z
2021-11-26T15:58:08Z
https://github.com/dvidelabs/flatcc/issues/223
1,064,283,929
223
[ "dvidelabs", "flatcc" ]
Hi, In binary format, a bad length string can cause segmentation fault. With sample monster, change "Orc" string lenght from 0003 0000 to FFFF FFFF, the call of verify crash. ``` 00000000 04 00 00 00 84 ff ff ff 00 00 80 3f 00 00 00 40 |...........?...@| 00000010 00 00 40 40 30 00 00 00 1c 00 00 00 0c 00 ...
Bad binary format may cause segmentation fault when call function verify
https://api.github.com/repos/dvidelabs/flatcc/issues/221/comments
0
2021-11-23T09:33:25Z
2021-11-26T12:12:13Z
https://github.com/dvidelabs/flatcc/issues/221
1,061,015,773
221
[ "dvidelabs", "flatcc" ]
I'm creating a vector of `double`s inside the table, inside the union. If vector is 100 elements big, verification passes. When I use 1000 vector elements the verification fails with: `buffer header too small`. The code is this: ``` int ret; LogData_start_as_root(B); flatbuffers_double_vec_ref_t vec = flatbuffer...
buffer containing large vector
https://api.github.com/repos/dvidelabs/flatcc/issues/220/comments
8
2021-11-08T20:19:32Z
2021-11-09T21:36:17Z
https://github.com/dvidelabs/flatcc/issues/220
1,047,881,276
220
[ "dvidelabs", "flatcc" ]
I'm trying to 'port' C++ based flatbuffer generator to C and I'm getting this error when verifying the buffer: ``` LogData buffer is invalid: vtable offset out of range or unaligned ``` C++ and C buffer hexdumps are not of the same size; there are two bytes of difference. When C generated buffer is fed to the pyth...
vtable offset out of range or unaligned
https://api.github.com/repos/dvidelabs/flatcc/issues/219/comments
16
2021-11-07T19:01:58Z
2023-10-25T14:59:17Z
https://github.com/dvidelabs/flatcc/issues/219
1,046,824,322
219
[ "dvidelabs", "flatcc" ]
I'm unable to find this case exercised in the monster_test suite and I'm unsure about what is the correct way to use the API. I've tried these two variants: ```c int gen_flatgeobuf1(flatcc_builder_t *B) { double xy[] = { 0, 1 }; //double z[] = { 0 }; FlatGeobuf_Geometry_ref_t geometry; ...
Size prefixed buffers with large alignment (e.g. vectors of doubles) do not pass verifier
https://api.github.com/repos/dvidelabs/flatcc/issues/210/comments
30
2021-09-03T23:21:30Z
2023-11-04T10:15:04Z
https://github.com/dvidelabs/flatcc/issues/210
988,151,034
210
[ "dvidelabs", "flatcc" ]
I'm getting an unexpected core dump in usan gcc compilations and test runs of my code (which lives inside PostgreSQL and PostGIS which makes things rather complicated unfortunately but..). This is the initial lines of the dump: ``` #0 0x00007f92bf7f7a77 in __flatbuffers_uoffset_read_from_pe (p=0x55cdcd16ccc1) at ....
Unexpected core dump from __flatbuffers_uoffset_read_from_pe when compiling with usan gcc
https://api.github.com/repos/dvidelabs/flatcc/issues/209/comments
6
2021-09-02T22:21:00Z
2021-09-03T11:14:04Z
https://github.com/dvidelabs/flatcc/issues/209
987,216,170
209
[ "dvidelabs", "flatcc" ]
This may be a noob trap that I fell into, but I believe that things could be improved. All the flatcc_verify_* functions return an ```int``` value, just like the builder API, however error codes are represented differently. It was non-trivial to determine that the int values returned by flatcc_verify_* functions ...
Verify error codes inconsistent with rest of flatcc error codes
https://api.github.com/repos/dvidelabs/flatcc/issues/208/comments
2
2021-08-26T21:46:25Z
2021-09-04T15:16:08Z
https://github.com/dvidelabs/flatcc/issues/208
980,670,152
208
[ "dvidelabs", "flatcc" ]
The diagnostic flags are pushed and popped by include/flatcc/portable/pdiagnostic_push.h & include/flatcc/portable/pdiagnostic_pop.h respectively. However, due to their include guards (PDIAGNOSTIC_PUSH_H and PDIAGNOSTIC_POP_H), this can only work once in each compile unit. Since the prologue and epilogue headers may ...
Diagnostic flags aren't properly restored
https://api.github.com/repos/dvidelabs/flatcc/issues/205/comments
5
2021-08-07T19:38:46Z
2021-08-08T13:15:30Z
https://github.com/dvidelabs/flatcc/issues/205
963,291,674
205
[ "dvidelabs", "flatcc" ]
I'm trying to use 64-bit offset sizes (for uoffset_t and soffset_t, adjusted config, max/min, etc.) `flatcc_builder_create_buffer` is somehow having an additional 2<sup>32</sup> (`UINT32_MAX`+1) added to the written offset. Somewhere before line 783-ish in _src/runtime/builder.c_. ```c write_uoffset(&object...
64-bit offsets: flatcc_builder_create_buffer strange behavior
https://api.github.com/repos/dvidelabs/flatcc/issues/201/comments
2
2021-07-29T19:04:11Z
2021-07-30T14:14:05Z
https://github.com/dvidelabs/flatcc/issues/201
956,125,738
201
[ "dvidelabs", "flatcc" ]
I've no issue in printing the entire Schema tree form the root what I'm looking for is an example of printing partial sub-trees. e.g. Given the schema ``` Table Dependant { name: string; age: int; } table Guardian { name : string; age : int; Dependant [ Dependant ] } root_type Guard...
Example of using json_printer on a sub-tree of schema
https://api.github.com/repos/dvidelabs/flatcc/issues/200/comments
3
2021-07-23T14:25:34Z
2021-07-28T13:04:55Z
https://github.com/dvidelabs/flatcc/issues/200
951,629,017
200
[ "dvidelabs", "flatcc" ]
The problem occurs when using a large enough integer as a default value in fbs for an ulong (and possibly other unsigned types?) and generating JSON parser and printer (again possibly others?). The code generator will produce for example `if (val != 18446744073709541616 || (ctx->flags & flatcc_json_parser_f_force_add)...
Generated header can cause warning: integer constant is so large that it is unsigned
https://api.github.com/repos/dvidelabs/flatcc/issues/194/comments
14
2021-06-22T15:55:19Z
2021-06-24T07:31:35Z
https://github.com/dvidelabs/flatcc/issues/194
927,395,044
194
[ "dvidelabs", "flatcc" ]
I've scratching my head over the attribute implemention. I can see flatcc parses and stores the defined attributes but apart from via the reflector I don't see any way of accessing them from within the builder or the printer. I guess i could use the reflector to use the fbs schema to generate a API which will al...
Question on attribute implementation
https://api.github.com/repos/dvidelabs/flatcc/issues/192/comments
4
2021-05-25T09:50:05Z
2021-05-25T14:16:38Z
https://github.com/dvidelabs/flatcc/issues/192
900,568,825
192
[ "dvidelabs", "flatcc" ]
Hi There, great C based resource just about got my head around building flatbuffers.. I would like to choose to dump the finalised flatbuffers into JSON and XML syntax output.. JSON is easy enough but is there any implementation for printing out to XML syntax? Thanks in advance
Is there a implemention for printing flat-buffers to XML?
https://api.github.com/repos/dvidelabs/flatcc/issues/189/comments
10
2021-05-24T13:58:23Z
2021-07-09T08:00:13Z
https://github.com/dvidelabs/flatcc/issues/189
899,684,041
189
[ "dvidelabs", "flatcc" ]
in parser.c k seems like the size of the rest of buffer on stack(var 'buf' which type is char[]). n is memcpy size as 3rd para. `while` condition k>0 to keep buffer is not full. if enter in `if(k<n)` branch `n=k`,var n is assigned the value of k then `k -=n` ,var k is assigned the value 0 then `--k`, var k is a...
found a integer overflow leads to stack_overflow
https://api.github.com/repos/dvidelabs/flatcc/issues/188/comments
9
2021-05-22T20:54:13Z
2021-05-22T21:50:14Z
https://github.com/dvidelabs/flatcc/issues/188
898,880,352
188
[ "dvidelabs", "flatcc" ]
The function flatcc_json_parser_string_escape is accessing 5 bytes in a region of size 4.
Tests fail on gcc 11.x
https://api.github.com/repos/dvidelabs/flatcc/issues/184/comments
4
2021-05-19T15:30:26Z
2021-05-19T16:26:31Z
https://github.com/dvidelabs/flatcc/issues/184
895,589,233
184
[ "dvidelabs", "flatcc" ]
Had to suppress that warning to be able to compile.
Misleading indentation errors on gcc 11.x
https://api.github.com/repos/dvidelabs/flatcc/issues/183/comments
13
2021-05-19T15:23:01Z
2024-11-21T19:53:12Z
https://github.com/dvidelabs/flatcc/issues/183
895,581,147
183
[ "dvidelabs", "flatcc" ]
The command ``` flatcc --json-printer bug.fbs ``` crashes when processing the schema `bug.fbs` below ``` enum id : int { none = 0 } table get_in { ids: [id]; } ``` The message it prints is: ``` flatcc: ...flatcc/src/compiler/codegen_c.h:102: scalar_type_prefix: Assertion `0' failed. Aborted ...
bug with option --json-printer and vector of enums
https://api.github.com/repos/dvidelabs/flatcc/issues/182/comments
24
2021-05-05T17:36:12Z
2021-05-06T10:20:39Z
https://github.com/dvidelabs/flatcc/issues/182
876,686,256
182
[ "dvidelabs", "flatcc" ]
[ Summary: flatcc should eventually support force_align on vectors - meanwhile use vectors of structs and force_align structs, or use low level builder calls to create aligned vectors access as discussed below - the problems investigated were eventually decided to be incorrect use of API - low level alignment doesn't w...
`force_align` on vectors missing (or: how to align vectors in flatcc?)
https://api.github.com/repos/dvidelabs/flatcc/issues/179/comments
37
2021-04-16T03:12:05Z
2021-04-16T19:39:05Z
https://github.com/dvidelabs/flatcc/issues/179
859,416,003
179
[ "dvidelabs", "flatcc" ]
Blocking of enumeration value out-of-bounds: When assigning values to enumeration members, flatcc only intercepts the members that are actively assigned but ignores the members that follow the enumeration. For example, if you assign 255 to the first member of the enum of the uint8 type, the second member is 256, which ...
The enum value is out of range.
https://api.github.com/repos/dvidelabs/flatcc/issues/176/comments
3
2021-01-18T11:08:06Z
2021-05-05T11:12:52Z
https://github.com/dvidelabs/flatcc/issues/176
788,172,871
176
[ "dvidelabs", "flatcc" ]
``` cmake -G "MinGW Makefiles" -DCMAKE_C_COMPILER=tcc . -- dist install dir D:/Projects/flatcc -- lib install dir D:/Projects/flatcc/lib -- Setting GNU C compiler options with c11 and Posix -- GCC_VERSION: 7.3.0 -- Configured C_FLAGS: -DFLATCC_REFLECTION=1 -D_CRT_SECURE_NO_WARNINGS -std=c11 -pedantic -Wall -We...
Doesn't compile with TCC compiler
https://api.github.com/repos/dvidelabs/flatcc/issues/174/comments
10
2020-12-29T11:04:21Z
2022-03-28T18:08:55Z
https://github.com/dvidelabs/flatcc/issues/174
775,834,026
174
[ "dvidelabs", "flatcc" ]
On windows, when using gcc with the ming32 toolchain, it doesn't compile: ``` bash make [ 6%] Built target flatccrt [ 7%] Building C object src/compiler/CMakeFiles/flatcc.dir/__/__/external/hash/cmetrohash64.c.obj [ 8%] Building C object src/compiler/CMakeFiles/flatcc.dir/__/__/external/hash/str_set.c.obj [ ...
Doesn't compile with mingw32 gcc on windows with -std=c99
https://api.github.com/repos/dvidelabs/flatcc/issues/173/comments
7
2020-12-29T11:00:34Z
2023-10-24T18:44:10Z
https://github.com/dvidelabs/flatcc/issues/173
775,832,301
173
[ "dvidelabs", "flatcc" ]
When running the monster_test twice in a row, its output (stderr) is not the same. Run the following commands to reproduce: ```sh cd build/test/monster_test cmake --build . --target monster_test ./monster_test 2>output1.txt ./monster_test 2>output2.txt diff -u output1.txt output2.txt ``` The output is: ``` -...
monster_test not reproducible
https://api.github.com/repos/dvidelabs/flatcc/issues/172/comments
9
2020-12-21T02:19:36Z
2020-12-21T03:43:38Z
https://github.com/dvidelabs/flatcc/issues/172
771,784,277
172
[ "dvidelabs", "flatcc" ]
It should not be too difficult to get a build on GH Actions working on MacOs, Linux, and Windows. The problem is to get the build working with a long line of old compilers. FlatCC has a default CI build on the master brach and a separate CI build on the ci-more branch that run tests on many more compiler versions. ...
Migrate CI from Travis / Appveyor to Github Actions
https://api.github.com/repos/dvidelabs/flatcc/issues/170/comments
12
2020-12-16T17:33:48Z
2020-12-18T08:42:46Z
https://github.com/dvidelabs/flatcc/issues/170
769,132,249
170
[ "dvidelabs", "flatcc" ]
Add a cmake function that will take one or more flatbuffer definition files and an output directory. The function will then generate the C files in that directory. This prevents code duplication in cmake files. Pull request will follow.
Add cmake helper function to simplify code generation
https://api.github.com/repos/dvidelabs/flatcc/issues/168/comments
1
2020-12-16T11:05:51Z
2023-10-24T19:43:44Z
https://github.com/dvidelabs/flatcc/issues/168
768,727,427
168
[ "dvidelabs", "flatcc" ]
The examples on the page [https://github.com/dvidelabs/flatcc#building-a-buffer](https://github.com/dvidelabs/flatcc#building-a-buffer) use the function `flatcc_builder_get_direct_buffer`, which is inherently crippled in that it quietly returns zero when the buffer is "too large". In my opinion, this function should si...
Misleading usage of a crippled function in the documentation examples
https://api.github.com/repos/dvidelabs/flatcc/issues/166/comments
2
2020-12-03T12:11:08Z
2021-05-05T11:21:59Z
https://github.com/dvidelabs/flatcc/issues/166
756,140,677
166
[ "dvidelabs", "flatcc" ]
I found a discussion which has a 2019 post from a google engineer saying that there are options for mutating flat buffers today. My question is did these changes in flatc carry over into flatcc and if so can you please explain how to do this? [Link to discussion](https://groups.google.com/g/flatbuffers/c/noV9D2cgS4A...
Are finalized flat buffers mutable?
https://api.github.com/repos/dvidelabs/flatcc/issues/165/comments
4
2020-11-10T22:01:57Z
2020-11-11T22:30:58Z
https://github.com/dvidelabs/flatcc/issues/165
740,274,521
165
[ "dvidelabs", "flatcc" ]
Issue to track development on FlatBuffers optional types feature: https://github.com/google/flatbuffers/issues/6014
Track Optional Fields
https://api.github.com/repos/dvidelabs/flatcc/issues/162/comments
3
2020-09-02T13:48:22Z
2022-05-23T07:02:00Z
https://github.com/dvidelabs/flatcc/issues/162
691,037,938
162
[ "dvidelabs", "flatcc" ]
I'm having trouble getting JSON parsing to work for a struct with a fixed size array. I made an example with a very simple schema: ``` struct Vec3Fixed { x:[uint8:3]; } ``` Please see my example program: https://github.com/jrmarkle/flatcc/tree/json_test/test/json_fixed It outputs ``` size 16 {"x":[12,34,...
Parsing JSON for struct with fixed size array
https://api.github.com/repos/dvidelabs/flatcc/issues/157/comments
9
2020-08-20T02:01:27Z
2020-08-31T14:39:34Z
https://github.com/dvidelabs/flatcc/issues/157
682,292,393
157
[ "dvidelabs", "flatcc" ]
Trying to compile flatcc with MinGW (TDM GCC 64) and I am having two, seemingly small, issues: ## 1. Compiling RT lib I'm not entirely sure what's wrong but I was able to make it compile (i.e. the following error wouldn't show), if I flipped the `#ifndef FLATCC_USE_GENERIC_ALIGNED_ALLOC` to `ifdef`... Couldn't find...
MinGW support
https://api.github.com/repos/dvidelabs/flatcc/issues/155/comments
29
2020-06-22T14:53:11Z
2020-06-22T17:10:24Z
https://github.com/dvidelabs/flatcc/issues/155
643,136,788
155
[ "dvidelabs", "flatcc" ]
The following simple program fails to compile with the headers from the latest master branch: main.c ```c #include <flatcc/flatcc.h> #include <flatcc/flatcc_builder.h> int main(){ return 0; } ``` ``` $ gcc main.c In file included from main.c:1: /usr/local/include/flatcc/flatcc.h:32:5: error: unknown typ...
size_t undefined - missing cstdef include
https://api.github.com/repos/dvidelabs/flatcc/issues/154/comments
3
2020-06-22T07:10:39Z
2020-06-22T07:53:08Z
https://github.com/dvidelabs/flatcc/issues/154
642,817,649
154
[ "dvidelabs", "flatcc" ]
Hello, Given the well-known issue of many (all?) popular javascript implementations not supporting 64-bit values in their JSON.parse function, has an optional alternate encoding for 64-bit ints in flatcc's JSON printer/parser been considered? A couple of options would be either a base10 string or a base64 string ...
JSON and 64-bit integer precision in JS
https://api.github.com/repos/dvidelabs/flatcc/issues/153/comments
8
2020-06-19T11:13:23Z
2020-06-22T06:17:14Z
https://github.com/dvidelabs/flatcc/issues/153
641,894,821
153
[ "dvidelabs", "flatcc" ]
In the file `include/flatcc/flatcc_identifier.h` there are a few conversion issues. Since this header is included from `flatbuffers_common_reader.h` I couldn't build it in my project. I used GCC 7.5 with the following flags (partial list) `-Wconversion -Wsign-conversion -Werror`. I'll open a PR soon to point at the p...
A few -Wconversion and -Wsign-conversion warnings
https://api.github.com/repos/dvidelabs/flatcc/issues/151/comments
6
2020-06-08T14:48:18Z
2020-06-11T06:16:02Z
https://github.com/dvidelabs/flatcc/issues/151
634,688,696
151
[ "dvidelabs", "flatcc" ]
Consider the following `schema.fbs` that works just fine with flatbuffers compiler `flatc` ``` table Xyz { id : uint64 ; int : int ; int8 : int8 ; int16 : int16 ; int32 : int32 ; int64 : int64 ; uint : uint ; uint8 : uint8 ; uint16 ...
Valid FB schema fails due to field names
https://api.github.com/repos/dvidelabs/flatcc/issues/150/comments
2
2020-06-02T10:29:55Z
2020-06-02T11:08:07Z
https://github.com/dvidelabs/flatcc/issues/150
629,090,255
150
[ "dvidelabs", "flatcc" ]
How to use CMake FetchContent with flatcc?
https://api.github.com/repos/dvidelabs/flatcc/issues/148/comments
12
2020-05-26T20:31:46Z
2020-06-01T07:09:41Z
https://github.com/dvidelabs/flatcc/issues/148
625,179,312
148
[ "dvidelabs", "flatcc" ]
```struct DbgProcessLimited { processId:int32; name:string; threads:[DbgThreadLimited]; }``` This is in the .fbs file, and when I use `flatcc -w -v debugger.fbs` it returns an error `debugger.fbs:101:5: error: 'name': struct member member can only be of struct scalar, or fixed size scalar array type...
How to compile string
https://api.github.com/repos/dvidelabs/flatcc/issues/144/comments
2
2020-05-17T03:27:25Z
2020-05-17T14:50:40Z
https://github.com/dvidelabs/flatcc/issues/144
619,600,325
144
[ "dvidelabs", "flatcc" ]
If a flatbuffer field gets annotated with "(deprecated)" the JSON parsing of that table fails with error "unknown symbol". Unfortunately, the error reporting is not more detailed. Maybe it has to do with the fact that the table is part of a union? I'm on 6c5a624867d6132c500366f4134c52bf372700a1, but the git log does n...
JSON parsing fails with deprecated fields
https://api.github.com/repos/dvidelabs/flatcc/issues/142/comments
4
2020-03-29T17:10:44Z
2020-03-31T22:38:46Z
https://github.com/dvidelabs/flatcc/issues/142
589,837,916
142
[ "dvidelabs", "flatcc" ]
My solution is: enum PackageType{Type1,Type2} table Type1Table{...} table Type2Table{...} table PackageTable { type:PackageType; data:[uint8];//It may be type1table or type2table } //Serialization: PackageTable_Type_add(Type1); var buf=Type1TableSerialization(); PackageTable_data_create(builder,...
How to distinguish multiple tables
https://api.github.com/repos/dvidelabs/flatcc/issues/141/comments
5
2020-03-22T09:28:31Z
2020-03-29T19:19:11Z
https://github.com/dvidelabs/flatcc/issues/141
585,677,169
141
[ "dvidelabs", "flatcc" ]
I have a very simple schema with a float and a default value for it : ``` namespace Eclectic; table FooBar { val1 : float32 = 1e-18; } file_identifier "NOOB"; root_type FooBar; ``` The generated header truncates the significant digits after the decimal point to just 6, which results in wrong code...
Flatcc codegen truncates precision for default value for floats
https://api.github.com/repos/dvidelabs/flatcc/issues/140/comments
6
2020-03-09T20:21:01Z
2020-04-04T13:40:34Z
https://github.com/dvidelabs/flatcc/issues/140
578,166,766
140
[ "dvidelabs", "flatcc" ]
My platform is [GNU ARM](https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-rm/downloads/7-2018-q2-update) (STM32 Cube), using newlib which does not have posix_memalign(). Yet in `palighned_alloc.h`: ``` #elif (defined(__STDC__) && __STDC__ && defined(__STDC_VERSIO...
Incorrect assessment of presence of posix_memalign
https://api.github.com/repos/dvidelabs/flatcc/issues/138/comments
14
2020-01-24T20:23:44Z
2020-02-18T09:07:30Z
https://github.com/dvidelabs/flatcc/issues/138
554,936,628
138
[ "dvidelabs", "flatcc" ]
Brand new user here. I am a Centos 7 user. I downloaded and ran './scripts/initbuild.sh make' ```initializing build for CMake Unix Makefiles -- The C compiler identification is GNU 4.8.5 -- The CXX compiler identification is GNU 4.8.5 -- Check for working C compiler: /usr/bin/cc -- Check for working C compil...
Cannot build under Centos 7
https://api.github.com/repos/dvidelabs/flatcc/issues/137/comments
6
2020-01-22T18:04:23Z
2020-01-22T19:57:12Z
https://github.com/dvidelabs/flatcc/issues/137
553,705,241
137
[ "dvidelabs", "flatcc" ]
I have this running on a micro and don't want to overwrite/provide dummy functions for _read or _write in case anything else I am using relys on them. I am thinking the functions causing issues with 'undefined ref to _read' or _write errors could be printf, fprintf, or sprintf used in flatcc
Question: Is it possible to disable any function calls in flatcc that result in _read or _write calls
https://api.github.com/repos/dvidelabs/flatcc/issues/136/comments
6
2019-12-11T18:35:55Z
2020-02-21T12:44:45Z
https://github.com/dvidelabs/flatcc/issues/136
536,545,184
136
[ "dvidelabs", "flatcc" ]
I've used `flatcc` to generate all files using the -a flag. I'm then including the generated header file into a basic macOS application using Xcode. However, whenever I try and build, an error is generated when Xcode attempts to expand one of the many macros. Perhaps there's an additional Xcode setting I need to ch...
identifier name conflict (was: Is Xcode 11 supported? )
https://api.github.com/repos/dvidelabs/flatcc/issues/135/comments
16
2019-12-02T10:15:45Z
2019-12-05T15:05:19Z
https://github.com/dvidelabs/flatcc/issues/135
531,025,828
135
[ "dvidelabs", "flatcc" ]
At my company we use 0.4.3 currently, and are testing newer versions. We've found that we cannot build >= 0.5.2 on EL6, due to some issue with C++ introduced in #80 . The compile fails with many errors like: ``` error: 'INT16_C' was not declared in this scope ``` and similar for other integer macros. This sa...
Cannot build on EL6 after 0.5.1
https://api.github.com/repos/dvidelabs/flatcc/issues/134/comments
28
2019-11-25T15:52:56Z
2019-11-26T14:40:49Z
https://github.com/dvidelabs/flatcc/issues/134
528,175,795
134
[ "dvidelabs", "flatcc" ]
I have a table with 3 strings in it that are very short: This is my schema: ![image](https://user-images.githubusercontent.com/32464706/68784301-5690ef00-060a-11ea-8f96-2fbcc21151f0.png) This is my code to serialize the "APNSettings" table: ![image](https://user-images.githubusercontent.com/32464706/68784094-...
Buffer size is huge for 3 string table
https://api.github.com/repos/dvidelabs/flatcc/issues/133/comments
3
2019-11-13T16:47:06Z
2019-11-13T18:07:03Z
https://github.com/dvidelabs/flatcc/issues/133
522,343,489
133
[ "dvidelabs", "flatcc" ]
(Windows 10 powershell) So I have flatcc built and on my path. I put it in the same directory as my .fbs file and my .c test file: ![image](https://user-images.githubusercontent.com/32464706/67954632-a792f300-fbc7-11e9-9c84-6691179b7eb7.png) I call ***flatcc -a Car.fbs*** and 5 files are generated: ![image](https...
Undefined function references even when I set include path
https://api.github.com/repos/dvidelabs/flatcc/issues/132/comments
20
2019-10-31T14:36:54Z
2021-07-01T16:45:25Z
https://github.com/dvidelabs/flatcc/issues/132
515,484,101
132
[ "dvidelabs", "flatcc" ]
flatcc_buffer_finalize_aligned_buffer will use a certain alignment allocation mechanism that depends on compiler flags. This mechanism is static in the object file for the runtime. The free method is also dependent on compiler flags, but those of the application, not the run-time. This can cause the flatccrt run-t...
flatcc_builder_finalize_aligned_buffer and FLATCC_ALIGNED_FREE mismatch
https://api.github.com/repos/dvidelabs/flatcc/issues/131/comments
2
2019-10-03T21:01:42Z
2019-10-04T05:42:11Z
https://github.com/dvidelabs/flatcc/issues/131
502,296,161
131
[ "dvidelabs", "flatcc" ]
After an update to GCC 8.3.1, we start getting a nasty error from C++ files related to the `memory` header: ``` In file included from /opt/rh/devtoolset-8/root/usr/include/c++/8/bits/shared_ptr.h:52, from /opt/rh/devtoolset-8/root/usr/include/c++/8/memory:81, from <censored>.cpp:32...
Portable alignas/alignof breaks in GCC 8.3 when using C++11
https://api.github.com/repos/dvidelabs/flatcc/issues/130/comments
7
2019-09-25T19:38:01Z
2019-09-26T18:52:13Z
https://github.com/dvidelabs/flatcc/issues/130
498,482,364
130
[ "dvidelabs", "flatcc" ]
There are warnings in the code using ```flatcc``` on FreeBSD when generated header is included after STL headers: ``` In file included from my-flatbuffers-to-json.cpp:13: In file included from ./schema_v0_json_printer.h:6: In file included from /usr/local/include/flatcc/flatcc_json_printer.h:36: In file included...
warning: 'bswap64' macro redefined (on FreeBSD)
https://api.github.com/repos/dvidelabs/flatcc/issues/129/comments
5
2019-09-20T07:23:11Z
2020-02-21T12:53:36Z
https://github.com/dvidelabs/flatcc/issues/129
496,191,766
129
[ "dvidelabs", "flatcc" ]
`flatcc -a monster_test.fbs` doesn't produce `flatbuffers_common_verifier.h` as stated in the tutorial/documentation. When I include `monster_test_verifier.h` in my project, without any line of code, I got linking errors: ``` undefined reference to 'flatcc_verify_union_field' undefined reference to 'flatcc_verify...
flatbuffers_common_verifier.h
https://api.github.com/repos/dvidelabs/flatcc/issues/128/comments
9
2019-09-19T15:05:06Z
2019-09-20T12:37:42Z
https://github.com/dvidelabs/flatcc/issues/128
495,859,761
128
[ "dvidelabs", "flatcc" ]
Using latest GIT pull # cat /etc/centos-release CentOS Linux release 7.4.1708 (Core) # uname -a Linux localhost.localdomain 3.10.0-693.el7.x86_64 #1 SMP Tue Aug 22 21:09:27 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux IDL definition ``` table EthEndpointState { ... } table WifiEndpointState { ... ...
table verify always fails
https://api.github.com/repos/dvidelabs/flatcc/issues/127/comments
23
2019-09-18T19:17:24Z
2023-10-26T19:02:07Z
https://github.com/dvidelabs/flatcc/issues/127
495,408,253
127
[ "dvidelabs", "flatcc" ]
I was trying to compile a schema (enum Status). part of it is: table GetStatusResponse { status:Status; } enum Status: byte { status1 = 0, status2 = 1, status3 = 2, status4 = 3 } but it doesnt compile it as an enum. it compiles as a vector. can anyone help me?
Flatcc incorrect behaviour: compiling enum as a vector
https://api.github.com/repos/dvidelabs/flatcc/issues/126/comments
3
2019-08-21T12:53:09Z
2019-09-15T18:06:05Z
https://github.com/dvidelabs/flatcc/issues/126
483,403,014
126
[ "dvidelabs", "flatcc" ]
I've been seeing some peculiar issues with using floats on a big-endian system, so I've created a minimal example to reproduce it and hopefully gain some insight. First, I have this simple schema: ``` table Message { foo: uint16; bar: float32; } root_type Message; ``` Then I wrote a C program to popu...
Floats on big-endian systems
https://api.github.com/repos/dvidelabs/flatcc/issues/125/comments
30
2019-08-15T23:08:33Z
2020-03-11T08:31:13Z
https://github.com/dvidelabs/flatcc/issues/125
481,374,928
125
[ "dvidelabs", "flatcc" ]
I compiled flatcc on my machine (using Fedora 30) and I moved **flatcc** directory in the *include* directory to my `/usr/include` directory and moved the files in the *lib* directory to the `/usr/lib` directory. But Unfortunately, I can not compile my code (That works with flatc) or your example in the *monster* direc...
Unable to compile programs using flatcc
https://api.github.com/repos/dvidelabs/flatcc/issues/124/comments
6
2019-08-01T15:57:24Z
2022-05-30T08:05:44Z
https://github.com/dvidelabs/flatcc/issues/124
475,763,625
124
[ "dvidelabs", "flatcc" ]
i want to verifiy the received table via the onboard verification function: flatcc_verify_field() I generated the flatbuffer for C language. The problem is that the prototype of the verify function is available in header flatcc_verifier.h but there is no function body. Is the function body generation implemente...
verifier: generate function is missing
https://api.github.com/repos/dvidelabs/flatcc/issues/123/comments
6
2019-07-29T08:00:57Z
2019-08-01T12:48:24Z
https://github.com/dvidelabs/flatcc/issues/123
473,906,946
123