| Anonymous | Login | Signup for a new account | 2010-09-08 14:19 CEST |
| Main | My View | View Issues | Change Log | Roadmap |
| Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||
| ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||
| 0003929 | [unreal] installing | minor | always | 2010-07-14 22:02 | 2010-08-03 18:33 | ||
| Reporter | warg | View Status | public | ||||
| Assigned To | |||||||
| Priority | normal | Resolution | duplicate | ||||
| Status | closed | Product Version | 3.2.9 | ||||
| Summary | 0003929: patch for ssl.c:437: warning: assignment discards qualifiers from pointer target type | ||||||
| Description |
[warg@beorn Unreal-stable]$ time make -j24 1>/dev/null ssl.c: In function ‘ssl_get_cipher’: ssl.c:437: warning: assignment discards qualifiers from pointer target type patch attached change SSL_CIPHER *c; to const SSL_CIPHER *c; |
||||||
| Additional Information | |||||||
| Tags | No tags attached. | ||||||
| 3rd party modules | |||||||
| QA | Not touched yet by developer | ||||||
| U4: Need for upstream patch | No need for upstream InspIRCd patch | ||||||
| U4: Upstream notification of bug | Not decided | ||||||
| U4: Contributor working on this | None | ||||||
| Attached Files |
|
||||||
|
|
|||||||
Relationships |
||||||
|
||||||
Notes |
|
|
(0016197) syzop (administrator) 2010-07-15 13:20 |
Not that important, but I wonder: How come I don't get this warning? :P http://www.openssl.org/docs/ssl/SSL_get_current_cipher.html [^] also doesn't say anything about const... What's your openssl version? |
|
(0016221) warg (reporter) 2010-07-20 04:08 |
Has nothing to do with SSL version, Syzop, this is type-matching walking-on-eggshells. You'll get this warning on GCC 4.4.4, which I should've said when reporting this. The protection of the pointer's target provided by the const qualifier is lost when the const is thrown out by assigning it to a plain char* pointer. -> SSL_CIPHER *c; // change to: const SSL_CIPHER *c; to fix this warning buf[0] = '\0'; strcpy(buf, SSL_get_version(ssl)); strcat(buf, "-"); strcat(buf, SSL_get_cipher(ssl)); -> c = SSL_get_current_cipher(ssl); |
|
(0016222) ohnobinki (developer) 2010-07-20 04:13 |
> How come I don't get this warning? :P There must be some flag or GCC configuration differences as I also don't get this warning. May I commit this regardless as the current code is wrong? |
|
(0016223) warg (reporter) 2010-07-20 04:44 |
see 0003939 before any commit |
|
(0016252) ohnobinki (developer) 2010-08-03 18:33 |
patch in 0003939 will fix this. |
| Copyright © 2000 - 2008 Mantis Group |