Subversion リポジトリの参照
Diff of /trunk/1.7.x/ccs-patch/security/ccsecurity/util.c
Parent Directory
| Revision Log
| Patch
122 |
snprintf(buffer, buffer_len, "type(%u)", type); |
snprintf(buffer, buffer_len, "type(%u)", type); |
123 |
} |
} |
124 |
|
|
125 |
bool ccs_parse_number_union(char *data, union ccs_number_union *num) |
bool ccs_parse_number_union(char *data, struct ccs_number_union *num) |
126 |
{ |
{ |
127 |
u8 type; |
u8 type; |
128 |
unsigned long v; |
unsigned long v; |
130 |
type = ccs_parse_ulong(&v, &data); |
type = ccs_parse_ulong(&v, &data); |
131 |
if (!type) |
if (!type) |
132 |
return false; |
return false; |
133 |
num->value.min = v; |
num->values[0] = v; |
134 |
num->value.min_type = type; |
num->min_type = type; |
135 |
if (!*data) { |
if (!*data) { |
136 |
num->value.max = v; |
num->values[1] = v; |
137 |
num->value.max_type = type; |
num->max_type = type; |
138 |
return true; |
return true; |
139 |
} |
} |
140 |
if (*data++ != '-') |
if (*data++ != '-') |
142 |
type = ccs_parse_ulong(&v, &data); |
type = ccs_parse_ulong(&v, &data); |
143 |
if (!type || *data) |
if (!type || *data) |
144 |
return false; |
return false; |
145 |
num->value.max = v; |
num->values[1] = v; |
146 |
num->value.max_type = type; |
num->max_type = type; |
147 |
return true; |
return true; |
148 |
} |
} |
149 |
|
|
|
Legend:
Removed from v.2871 |
|
changed lines |
|
Added in v.2888 |
|
|
| |