Yeoul Na

Results issues of Yeoul Na

As reported by @nikic https://github.com/llvm/llvm-project/pull/114495#issuecomment-2464318302 This is likely because the checks are currently implemented to walk through the whole child nodes for every single assignments. We may be able to...

clang:bounds-safety

https://github.com/llvm/llvm-project/pull/129772 `-Wvla-potential-size-confusion` diagnoses when `n` references the file scope variable and not the parameter. ``` int n; void func(int array[n], int n); ``` We may want to extend it to...

clang:frontend
clang:diagnostics
clang:bounds-safety

### Problem: `__counted_by` and related attributes must be treated as type attributes to enable future support for valid use cases such as: ```C void foo(int *__counted_by(*out_count) *out_buffer, size_t *out_count); typedef...

clang:bounds-safety

`__counted_by` should not be allowed to reference struct members from within nested contexts, as this is not supported. The following cases should be rejected with clear diagnostics: ```C struct counted_by_function_pointer_param_late...

clang:bounds-safety

Currently, `counted_by` and related attributes are only supported in struct fields. This issue tracks extending support to: - Function parameters - Return types - Global variables - Local variables For...

clang:bounds-safety

The text isn't super clear because it doesn't make the connection between unknown point size and function type. https://github.com/llvm/llvm-project/pull/166491#discussion_r2501583745

clang:bounds-safety

In `Parser::ParseStructUnionBody`, we have a downstream change that calls `Actions.ActOnFields` before late-parsed attributes are semantically checked (upstream does the opposite). This was intentional to allow `offsetof` expressions in `counted_by` attributes...

clang:bounds-safety

Certain thread safety and bounds safety annotations in C need to reference other fields within the same structure. For example: ```C struct f { int n; int *__counted_by(n) buf; };...

clang:bounds-safety

### Summary When taking the address of a flexible array member annotated with `__counted_by`, `__builtin_dynamic_object_size(&fam, 1)` falls through to layout-derived `llvm.objectsize` and silently discards the `__counted_by` annotation. For statically allocated...

clang:bounds-safety

### Summary A flexible array member annotated with `__counted_by` only makes sense when the underlying object is dynamically allocated (e.g. `malloc(sizeof(*p) + count * sizeof(elem))`). The `__counted_by` attribute promises a...

clang:bounds-safety