Changeset 89f058543fd2e7d04f96018d0b86a576dc59d4c8
- Timestamp:
- 05/02/07 17:49:14
(2 years ago)
- Author:
- Rémi Denis-Courmont <rem@videolan.org>
- git-committer:
- Rémi Denis-Courmont <rem@videolan.org> 1170694154 +0000
- git-parent:
[f953de14eba5c68084c5b034c5e124a9fb9ed956]
- git-author:
- Rémi Denis-Courmont <rem@videolan.org> 1170694154 +0000
- Message:
Fix impossible out-of-bound strcmp
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| rd8ae255 |
r89f0585 |
|
| 137 | 137 | int fam = AF_UNSPEC, proto = IPPROTO_UDP, cscov = 8; |
|---|
| 138 | 138 | |
|---|
| 139 | | if (strlen (p_access->psz_access) >= 4) |
|---|
| | 139 | if (strlen (p_access->psz_access) >= 3) |
|---|
| | 140 | { |
|---|
| 140 | 141 | switch (p_access->psz_access[3]) |
|---|
| 141 | 142 | { |
|---|
| … | … | |
| 148 | 149 | break; |
|---|
| 149 | 150 | } |
|---|
| 150 | | if (strcmp (p_access->psz_access + 3, "lite") == 0) |
|---|
| 151 | | proto = IPPROTO_UDPLITE; |
|---|
| 152 | | if (strncmp (p_access->psz_access, "rtp", 3) == 0) |
|---|
| | 151 | if (strcmp (p_access->psz_access + 3, "lite") == 0) |
|---|
| | 152 | proto = IPPROTO_UDPLITE; |
|---|
| | 153 | } |
|---|
| | 154 | if (strncmp (p_access->psz_access, "rtp", 3) == 0) |
|---|
| 153 | 155 | /* Checksum coverage: RTP header is AT LEAST 12 bytes |
|---|
| 154 | 156 | * in addition to UDP header (8 bytes) */ |
|---|