Bug 170401 - Header bug fogotten casting
Summary: Header bug fogotten casting
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: libapreq2
Version: 4
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Bojan Smojver
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-10-11 11:13 UTC by Dirk Nehring
Modified: 2007-11-30 22:11 UTC (History)
1 user (show)

Fixed In Version: 2.07-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-01-01 21:14:06 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Dirk Nehring 2005-10-11 11:13:09 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE; rv:1.7.12) Gecko/20050919 Firefox/1.0.7

Description of problem:
The libapreq2 headers contains a bug:

/usr/include/apreq2/apreq_util.h:197: error: invalid conversion from 'void*' to 'char*'


Version-Release number of selected component (if applicable):
2.06-2.fc4

How reproducible:
Always

Steps to Reproduce:
1. Small C program with including apreq_util.h
2.
3.
  

Additional info:

Patch:

<     rv = apr_palloc(p, 3 * slen + 1);
>     rv = (char *)apr_palloc(p, 3 * slen + 1);

Comment 1 Ville Skyttä 2005-10-11 17:52:06 UTC
Reproduced, appears to happen only when using a c++ compiler though.  Will  
report upstream; AFAIK 2.07 will be out real soon now, hopefully this makes it 
in time for that.  Thanks!  

Comment 2 Ville Skyttä 2005-10-15 09:10:10 UTC
The patch is included in upstream 2.07-rc2.  I've updated devel to it, but 
will wait for 2.07 final for FC4. 

Comment 3 Ville Skyttä 2007-01-01 21:14:06 UTC
Fixed 13 Feb 2006 by Bojan.


Note You need to log in before you can comment on or make changes to this bug.