[asterisk-dev] bug of mmap return in 1.4.0

andy wang ypwangreg at gmail.com
Sun Dec 24 00:10:01 MST 2006


Dear Developer:

There is a bug on 1.4.0 Chan_iax2.c::try_firmware::1413

	fwh = mmap(NULL, stbuf.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
	if (!fwh) {
		ast_log(LOG_WARNING, "mmap failed: %s\n", strerror(errno));
		close(fd);
		return -1;
	}

if mmap fails it will return (-1)

Regards,
Andy


More information about the asterisk-dev mailing list