Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 105935 - eix does not parse deep cascading profiles
Summary: eix does not parse deep cascading profiles
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Third-Party Tools (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Benedikt Böhm (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-14 01:56 UTC by ash
Modified: 2005-09-19 06:26 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ash 2005-09-14 01:56:50 UTC
If `parent' file of a cascading profile contains strings that are longer than 127 chars (this happens when profile is deep, e.g. /usr/portage/profiles/default-linux/amd64/2005.1/no-multilib/parent), then profile is not parsed fully.

The problem is caused by too small buffer:

bool CascadingProfile::getParentProfile(string &path_buffer)
{
    int _buflen = 128; // here
    char _buf[_buflen];


Reproducible: Always
Steps to Reproduce:
Comment 1 Emil Beinroth 2005-09-18 12:18:58 UTC
Fixed in upstream-cvs.

This bug shouldn't currently affect anyone, because the longest string from the
"parent"-files is "../../../default-linux/amd64/2005.0/no-multilib" (48 character).
Can you confirm this?
Comment 2 ash 2005-09-18 22:59:43 UTC
The bug is caused by parsing 'parent' files with long strings inside of them.
usr/portage/profiles/default-linux/amd64/2005.1/no-multilib/parent contains 
string '# $Header: /var/cvsroot/gentoo-x86/profiles/default-linux/amd64/2005.1/
no-multilib/parent,v 1.1 2005/06/04 21:20:09 eradicator Exp $', which is 132 
symbols long.
Comment 3 Benedikt Böhm (RETIRED) gentoo-dev 2005-09-19 06:26:40 UTC
fixed