Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 87533581 authored by George Burgess IV's avatar George Burgess IV
Browse files

libappfuse: use an explicit buffer size

This patch makes lookup_name use an explicit buffer size, rather than
"whatever the union happens to give me." I don't know if it's the
correct size, but having a 0-length array in this sort of configuration
seems fragile, and will be a compilation error when
https://android-review.googlesource.com/#/c/platform/bionic/+/449363/
goes in.

Bug: 12231437
Test: Builds with the mentioned patch applied to Bionic
Change-Id: I5793c906b7c2417e9a58aa907ef11c282027edb2
parent ceb7814c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -54,7 +54,7 @@ struct FuseRequest : public FuseMessage<FuseRequest> {
    // for FUSE_READ
    fuse_read_in read_in;
    // for FUSE_LOOKUP
    char lookup_name[0];
    char lookup_name[kFuseMaxWrite];
  };
  void Reset(uint32_t data_length, uint32_t opcode, uint64_t unique);
};