Re: [AD] Zero sized bitmaps |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
- To: alleg-developers@xxxxxxxxxx
- Subject: Re: [AD] Zero sized bitmaps
- From: Chris <chris.kcat@xxxxxxxxxx>
- Date: Mon, 22 Aug 2005 15:54:39 -0700
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:from:to:subject:date:user-agent:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=BFhWCzdfotFcrRSb2/rW2YTkMQQ5k39540UCTuL8rxa06yJ3/zj1sJEZK9Rj+Qa7sw1rU/V9pAipu8L7EzxcJFuFF3q+082byeLfQcgUanGKTK/u/bT3xGf1WvrmfAj/6EyupKQ4SpgVFgIVjygpaLRII/kGhiTASpBWX67cSqA=
On Monday 22 August 2005 03:47 pm, AJ wrote:
> what if after you create a 0x1 or 1x0 (which ever it was that was
> allowed) and you attempt to access the ->line[] will that cause a crash ?
Yes. Anything * 0 is 0, which means dat would be 0 bytes long. And since
line[] pointers are derived from the dat pointer..