Ticket #185 (closed defect: fixed)
conf-parser and cli-command limit line length to 256
| Reported by: | kritzstapf | Owned by: | lennart |
|---|---|---|---|
| Milestone: | Component: | core | |
| Keywords: | conf-parser line length | Cc: |
Description
Using channel maps with a large amount of channels can cause lines longer than 256 chars. The parser fails to read those lines because they are safed in char array of length 256.
Example
# channel test sink load-module module-remap-sink sink_name=channeltest master=surround master_channel_map=front-left,front-right,rear-left,rear-right,side-left,side-right,center,subwoofer channel_map=front-left,front-left,front-left,front-left,front-left,front-left,front-left,front-left channels=8
Fix
change line 129 of conf-parser.c to create a larger array:
129: char l[256];
129: char l[1024]; // that should be enough
Change History
Note: See
TracTickets for help on using
tickets.
