View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000332 | easycwmp | Bug | public | 2018-06-08 08:04 | 2018-06-08 18:22 |
Reporter | tomgrean | Assigned To | mohamed.kallel | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Platform | any | OS | any | OS Version | any |
Summary | 0000332: array out of index in src/time.c | ||||
Description | in src/time.c, the declaration is: char local_time[26] = {0}; but in the function, there is a line of this: local_time[26] = '\0'; which is out of the array index. | ||||
Additional Information | I think the author miss-counted some of the array indexes. actually the code should look like this: local_time[24] = local_time[23]; local_time[23] = local_time[22]; local_time[22] = ':'; local_time[25] = '\0'; And one more thing, making variable local_time static is better. | ||||
Tags | No tags attached. | ||||
e-mail notification | |||||
duplicate of | 0000309 | resolved | mohamed.kallel | in module time.c the array for local_time is too short! It MUST be char local_time[27] = {0} |
Date Modified | Username | Field | Change |
---|---|---|---|
2018-06-08 08:04 | tomgrean | New Issue | |
2018-06-08 18:00 | mohamed.kallel | Relationship added | related to 0000309 |
2018-06-08 18:22 | mohamed.kallel | Note Added: 0000871 | |
2018-06-08 18:22 | mohamed.kallel | Relationship replaced | duplicate of 0000309 |
2018-06-08 18:22 | mohamed.kallel | Status | new => resolved |
2018-06-08 18:22 | mohamed.kallel | Resolution | open => fixed |
2018-06-08 18:22 | mohamed.kallel | Assigned To | => mohamed.kallel |