| Summary: | Segmentation fault using substring at 64 bits | ||
|---|---|---|---|
| Product: | Busybox | Reporter: | Fernando Muñoz <fernando> |
| Component: | Other | Assignee: | unassigned |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | busybox-cvs |
| Priority: | P5 | ||
| Version: | 1.21.x | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Host: | Target: | ||
| Build: | |||
Can't reproduce. Possibly fixed in recent commits. |
Following code crashes busybox: busybox sh -c 'export z=abcdefg;echo ${z:0:9223372036854775807}' (gdb) run sh -c 'export z=abcdefg;echo ${z:0:9223372036854775807}' Starting program: /bin/busybox sh -c 'export z=abcdefg;echo ${z:0:9223372036854775807}' Program received signal SIGSEGV, Segmentation fault. 0x0000000000422287 in ?? () Crash only appears at 64 bits, 32 bits generates no crash.