Opened 6 years ago
Last modified 6 years ago
#19 assigned defect
zero-length arrays are not defined by standard C
| Reported by: | jerryyu | Owned by: | zany |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | openobex-lib | Version: | |
| Keywords: | Cc: |
Description
{{{ In "obex_header.h", the structure obex_unicode_hdr was defined to contain an zero-length array.
struct obex_unicode_hdr {
uint8_t hi;
uint16_t hl;
uint8_t hv[0];
}
Actually, zero-length array are forbidden by standard C, although it was defined by windows C complier and gcc compiler. To push it to be cross-platform, it's better to follow the standard C.}}}
Attachments (1)
Change History (3)
Changed 6 years ago by jerryyu
comment:1 Changed 6 years ago by jerryyu
- Cc jijun.yu@… removed
- Component changed from obexfs to openobex-lib
comment:2 Changed 6 years ago by zany
- Owner changed from somebody to zany
- Status changed from new to assigned
Note: See
TracTickets for help on using
tickets.

patch for this bug