[ipxe-devel] Issues with sanboot+http and ISOs > 2GB

Geert Stappers stappers at stappers.nl
Wed May 24 05:06:25 UTC 2017


On Wed, May 24, 2017 at 05:25:51AM +0200, Linus Lüssing wrote:
> Get Requests upon trying to boot the live image option in its menu
> makes ipxe create a broken "Range:" header. It looks like:
> 
> "Range: -x--y"
> 
> Which the nginx obviously responds to with a "HTTP/1.1 416
> Requested Range Not Satisfiable".
> 
> It seems like the "%zd" in http_format_range() is causing an integer
> overflow, causing these negative numbers. %zd -> 2*31 = 2GB max.
> 
> Instead of a "%zd" it should probably be something like a "%llu",
> shouldn't it?

I think it should.  So I'm preparing a patch.

Groeten
Geert Stappers
-- 
Leven en laten leven



More information about the ipxe-devel mailing list