Ticket #19 (assigned defect)

Opened 13 months ago

Last modified 13 months ago

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

openobex-05-zero-array.diff (5.2 KB) - added by jerryyu 13 months ago.
patch for this bug

Change History

Changed 13 months ago by jerryyu

patch for this bug

Changed 13 months ago by jerryyu

  • cc jijun.yu@… removed
  • component changed from obexfs to openobex-lib

Changed 13 months ago by zany

  • owner changed from somebody to zany
  • status changed from new to assigned
Note: See TracTickets for help on using tickets.