| Summary: | bison-native 'gets' failure | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] OE-Core | Reporter: | Jack Mitchell <jack> |
| Component: | devtools / tool chain | Assignee: | Bogdan Marinescu <bogdan.a.marinescu> |
| Status: | VERIFIED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Medium | CC: | jessica.zhang, laurentiu.serban, meta.mr.watcher, meta.watcher, richard.purdie, song.liu |
| Version: | unspecified | ||
| Target Milestone: | 1.3 M4 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | --- | |
|
Description
Jack Mitchell
2012-07-26 15:46:16 UTC
Build Configuration: BB_VERSION = "1.15.3" TARGET_ARCH = "arm" TARGET_OS = "linux-gnueabi" MACHINE = "qemuarm" DISTRO = "poky" DISTRO_VERSION = "1.2+snapshot-20120726" TUNE_FEATURES = "armv5 dsp thumb arm926ejs" TARGET_FPU = "soft" meta meta-yocto = "master:5157c85776bb8bd7315ef42e6e622aae27ebc79e" This patch fixed it for me, I don't think it's appropriate globally though - but then again is gets actually used at all in bison.. or is this just a fail safe which is now itself obsolete?
--- bison-2.5-van/bison-2.5/lib/stdio.in.h 2011-05-14 23:23:46.000000000 +0100
+++ bison-2.5/lib/stdio.in.h 2012-07-18 19:10:30.497463377 +0100
@@ -177,12 +177,6 @@
"use gnulib module fflush for portable POSIX compliance");
#endif
-/* It is very rare that the developer ever has full control of stdin,
- so any use of gets warrants an unconditional warning. Assume it is
- always declared, since it is required by C89. */
-#undef gets
-_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
-
#if @GNULIB_FOPEN@
# if @REPLACE_FOPEN@
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
Fixed in master: http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=674e951d088e64834b156f32d592c4bf76ea1b2f verified on commit id 8b3aa00029e62df6d05710cf166fd5d09bdb29cf |