Since you're increasing an allocation size, don't you also need to adjust the check a few lines earlier for whether the allocation size calculation would overflow? -- Joseph S. Myers joseph@codesourcery.com