Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#18844 closed defect (too_vague)

/bin/sh in some cases needed command prompt more than 512 bytes

Reported by: umka@… Owned by: developers
Priority: high Milestone: Barrier Breaker 14.07
Component: base system Version: Trunk
Keywords: SHell Cc:


a request in odhcp6c

ubus call network.interface notify_proto { "action": 0, "link-up": true, "data": { "passthru": "001700202001067c21f0000000000000000000392001067c21f000000000000000000001" }, "keep": false, "ip6addr": [ { "ipaddr": "2001:67c:21f0:3b89:28f4:e2c8:aa8:380", "mask": "128", "preferred": 604800, "valid": 2592000, "offlink": true } ], "routes6": [ { "target": "::", "netmask": "0", "gateway": "fe80::d047:2b8e:9a2c:5acd", "metric": 1024, "valid": 1799 } ], "dns": [ "2001:67c:21f0::39", "2001:67c:21f0::1" ], "dns_search": [ "" ], "interface": ""

have 554 bytes

Attachments (0)

Change History (3)

comment:1 Changed 3 years ago by anonymous

needed 768 bytes in on row

comment:2 Changed 3 years ago by nbd

  • Resolution set to too_vague
  • Status changed from new to closed

I have no idea what this means

comment:3 Changed 3 years ago by bittorf@…

i think OP means BUSYBOX_DEFAULT_FEATURE_EDITING_MAX_LEN which defaults to 512 bytes.
when reading busybox/libbb/lineedit.c it seems this affects interactive sessions only:

/* Make a local copy of the string up to the position of the cursor.
         * build_match_prefix will expand it into int16_t's, need to allocate
         * twice as much as the string_len+1.
         * (we then also (ab)use this extra space later - see (**))

the questions is, if scripts called via odhcpc (or similar) can eat input >512 bytes...

Add Comment

Modify Ticket

as closed .
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.