| Summary: | The output is strange when using unzip to extract zip file | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] OE-Core | Reporter: | Yi Zhao <yi.zhao> | ||||
| Component: | core | Assignee: | Plauchu Edwin <edwin.plauchu.camacho> | ||||
| Status: | VERIFIED DUPLICATE | QA Contact: | Yi Zhao <yi.zhao> | ||||
| Severity: | normal | ||||||
| Priority: | Medium+ | CC: | benjamin.esquivel, edwin.plauchu.camacho, jose.perez.carranza, meta.mr.watcher, meta.watcher, sgw | ||||
| Version: | 2.2 | ||||||
| Target Milestone: | 2.2 M3 | ||||||
| Hardware: | x86 | ||||||
| OS: | Multiple | ||||||
| Whiteboard: | |||||||
| OS type for building Yocto: | --- | Type of Regression: | Regression (Used to work) | ||||
| Verified: | Documentation change: | No (bug/feature does not impact docs) | |||||
| Attachments: |
|
||||||
|
Description
Yi Zhao
2016-08-15 02:28:36 UTC
Jussi, can team FI fix the broken security fix? Wow, the unzip macros are truly special... but I don't think the approach can be made to work:
+-# define LoadFarString(x) (char *)(x)
++# define LoadFarString(x) "%s",(char *)(x)
LoadFarString is used in 1500 locations, most of them in situations where the sprintf format string is already used. Example:
Info(slide, 0x201, ((char *)slide,
LoadFarString(SymLnkWarnInvalid), FnFilter1(linkfname)))
with this Info implementation
define Info(buf,flag,sprf_arg)
fputs((char *)(sprintf sprf_arg, (buf)), stdout);
ends up calling sprintf like this:
sprintf ((char *)slide,
LoadFarString(SymLnkWarnInvalid),
FnFilter1(linkfname))
Changing LoadFarSting() definition like in the patch will end up printing literal "%s" as filename.
bug 9551 got reopened to fix this problem. *** This bug has been marked as a duplicate of bug 9551 *** verified as duplicate |