Skip to content

Commit

Permalink
Buffer: match work limits with HarfBuzz 2.7.4
Browse files Browse the repository at this point in the history
HarfBuzz increased work limits for buffers in 2.7.3, causing results
for resource exhaustion tests (morx_34_001 and morx_36_001) to change.
We match these limits so that these tests pass.

See harfbuzz/harfbuzz@1c05f67.
  • Loading branch information
bluebear94 committed Aug 18, 2023
1 parent 1c4c6bd commit f0b9f2e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/buffer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -533,13 +533,13 @@ pub struct Buffer {
}

impl Buffer {
pub const MAX_LEN_FACTOR: usize = 32;
pub const MAX_LEN_MIN: usize = 8192;
pub const MAX_LEN_FACTOR: usize = 64;
pub const MAX_LEN_MIN: usize = 16384;
// Shaping more than a billion chars? Let us know!
pub const MAX_LEN_DEFAULT: usize = 0x3FFFFFFF;

pub const MAX_OPS_FACTOR: i32 = 64;
pub const MAX_OPS_MIN: i32 = 1024;
pub const MAX_OPS_FACTOR: i32 = 1024;
pub const MAX_OPS_MIN: i32 = 16384;
// Shaping more than a billion operations? Let us know!
pub const MAX_OPS_DEFAULT: i32 = 0x1FFFFFFF;

Expand Down

0 comments on commit f0b9f2e

Please sign in to comment.