Ignore:
Timestamp:
Jun 29, 2014, 1:42:38 AM (8 years ago)
Author:
jordan
Message:

Fix peer communication vulnerability (no known exploits) reported by Ben Hawkes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.8x/libtransmission/peer-msgs.c

    r14266 r14302  
    3333#include "variant.h"
    3434#include "version.h"
     35
     36#ifndef EBADMSG
     37 #define EBADMSG EINVAL
     38#endif
    3539
    3640/**
     
    16931697    assert (msgs);
    16941698    assert (req);
     1699
     1700    if (!requestIsValid (msgs, req)) {
     1701        dbgmsg (msgs, "dropping invalid block %u:%u->%u",
     1702                req->index, req->offset, req->length);
     1703        return EBADMSG;
     1704    }
    16951705
    16961706    if (req->length != tr_torBlockCountBytes (msgs->torrent, block)) {
Note: See TracChangeset for help on using the changeset viewer.