Bug 2737 - buildroot configuration tool crashing when the path exceeds 128 characters
Summary: buildroot configuration tool crashing when the path exceeds 128 characters
Status: RESOLVED FIXED
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: unspecified
Hardware: PC Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-27 14:18 UTC by jk
Modified: 2010-11-07 18:54 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments
quick fix (19.59 KB, text/plain)
2010-10-27 14:18 UTC, jk
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jk 2010-10-27 14:18:42 UTC
Created attachment 2629 [details]
quick fix

Install the buildroot to a directory, where the path length exceed 128 characters. Try to run "make oldconfig", the configuration tool is crashing with message buffer overflow detected. The tool "make menuconfig" is probably crashing as well.

The buggy file is located here:
..../package/config/confdata.c
Function:
int conf_write(const char *name) 
uses arrays of size 128B for path.


Am sending you quick fix, which is working for us.

Regars

JK
Comment 1 Peter Korsgaard 2010-11-07 18:54:45 UTC
Thanks, fixed in git (ported the similar patch from the kernel)