Project

General

Profile

Actions

Bug #3378

closed

Fields having array type without specified size are processed incorrectly

Added by Evgeny Novikov about 12 years ago. Updated about 12 years ago.

Status:
Closed
Priority:
High
Category:
-
Start date:
08/30/2012
Due date:
% Done:

0%

Estimated time:
Detected in build:
svn
Platform:
Published in build:
760fa8a

Description

For example, there is such the structure in module drivers/net/wireless/rtlwifi/rtlwifi.ko:

struct ieee80211_regdomain {
 u32 n_reg_rules;
 char alpha2[2];
 u8 dfs_region;
 struct ieee80211_reg_rule reg_rules[];
};

after C backend it becomes:
struct ieee80211_regdomain
{
  u32 n_reg_rules;
  char alpha2[2U];
  u8 dfs_region;
  struct ieee80211_reg_rule reg_rules[0U];
};

that leads to compilation (and BLAST) errors during initialization.

Actions

Also available in: Atom PDF