I have dwgadd code:
```
layer "foo"
layer.color=7
```

Command ```dwgadd -v9 --as r11 -o foo.dwg ex2.dwgadd``` exits with ```Segmentation fault```
It's same for all versions which I tested.
Segfault in dwgadd with layer.color=7
This is a GitHub Issue
repo:libredwg
owner:LibreDWG
Title : Segfault in dwgadd with layer.color=7
Issue date:

--- start body ---
I have dwgadd code:
```
layer "foo"
layer.color=7
```

Command ```dwgadd -v9 --as r11 -o foo.dwg ex2.dwgadd``` exits with ```Segmentation fault```
It's same for all versions which I tested.
--- end body ---

A segmentation fault occurs in the dwgadd function of LibreDWG when attempting to set the layer color to 7. This indicates a potential vulnerability where an attacker could craft input that causes the application to crash, leading to a Denial of Service (DoS).