Skip to content

Commit c2af32b

Browse files
committed
now works on Ubuntu 12.10
An rb_raise() in mask.c was using a string pointer as the fmt arg. gcc on 12.10 flags this as an error due to the obvious security problems.
1 parent 898ddf7 commit c2af32b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# master
22

3+
# Version 0.3.5
4+
5+
* rb_raise() in mask.c no longer passes a string pointer as the fmt arg, stopping gcc bailing out on some platforms [John Cupitt]
6+
37
# Version 0.3.4
48

59
* Update specs for lcms changes, thanks Stanislaw [John Cupitt]

ext/mask.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ mask_arg2mask(VALUE arg, INTMASK **imask, DOUBLEMASK **dmask)
282282
else
283283
errstr = "Expected an int array or an int Mask";
284284

285-
rb_raise(rb_eArgError, errstr);
285+
rb_raise(rb_eArgError, "%s", errstr);
286286
}
287287

288288
if (imask)

0 commit comments

Comments
 (0)