Wireshark-commits: [Wireshark-commits] master-2.2 57651b0: Don't let randpkt write packets libwiret

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Tue, 12 Jun 2018 18:25:58 +0000
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=57651b0cb7e2a7401addded9f4ad1c72076c53e9
Submitter: Guy Harris (guy@xxxxxxxxxxxx)
Changed: branch: master-2.2
Repository: wireshark

Commits:

57651b0 by Guy Harris (guy@xxxxxxxxxxxx):

    Don't let randpkt write packets libwiretap can't read.
    
    Wiretap imposes an arbitrary limit on the maximum packet size, to
    prevent it from trying to allocate a huge packet buffer and possibly
    running out of address space on ILP32 platforms or just eating too much
    backing store on LP64/LLP64 platforms.  Don't write packets with a
    length greater than that limit.
    
    Bug: 14107
    Change-Id: Iba4fe3b008b044215647ba3f838ae7b3ac66c585
    Reviewed-on: https://code.wireshark.org/review/28232
    Reviewed-by: Guy Harris <guy@xxxxxxxxxxxx>
    (cherry picked from commit 4e7f4881d2cf6fe69de0661c2441e82dd525e59e)
    Reviewed-on: https://code.wireshark.org/review/28235
    

Actions performed:

    from  617f319   BT Common: use bluetooth_address_type_vals with btcommon.eir_ad.entry.le_bd_addr.type
    adds  57651b0   Don't let randpkt write packets libwiretap can't read.


Summary of changes:
 randpkt_core/randpkt_core.c | 7 +++++++
 1 file changed, 7 insertions(+)