VM Maker: VMMaker.oscog-EstebanLorenzano.2136.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

VM Maker: VMMaker.oscog-EstebanLorenzano.2136.mcz

commits-2
 
Esteban Lorenzano uploaded a new version of VMMaker to project VM Maker:
http://source.squeak.org/VMMaker/VMMaker.oscog-EstebanLorenzano.2136.mcz

==================== Summary ====================

Name: VMMaker.oscog-EstebanLorenzano.2136
Author: EstebanLorenzano
Time: 22 February 2017, 4:10:00.203815 pm
UUID: 40534c32-ca6b-4e97-91ec-31d509e49b0c
Ancestors: VMMaker.oscog-rsf.2135, VMMaker.oscog-HolgerHansPeterFreyther.2135

Address fortify issue in printf

printf(variable) is dangerous as variable can contain escape sequences. Change the code to define print to printf("%s", s) as seen in other >>#print: implementations.

this is necesary to allow packaging of VM in debian (they will reject the source if it is not commited with this protection)

=============== Diff against VMMaker.oscog-rsf.2135 ===============

Item was changed:
  ----- Method: Cogit>>print: (in category 'printing') -----
  print: aString
+ <cmacro: '(aString) printf("%s", aString)'>
- <cmacro: '(aString) printf(aString)'>
  coInterpreter transcript print: aString!

Item was changed:
  ----- Method: MiscPrimitivePlugin class>>translatedPrimitivesForPharo (in category 'translation') -----
  translatedPrimitivesForPharo
  ^#(
  (Bitmap compress:toByteArray:)
  (Bitmap decompress:fromByteArray:at:)
  (Bitmap encodeBytesOf:in:at:)
  (Bitmap encodeInt:in:at:)
  (ByteString compare:with:collated:)
  (ByteString translate:from:to:table:)
  (ByteString findFirstInString:inSet:startingAt:)
  (ByteString indexOfAscii:inString:startingAt:)
  (String findSubstringViaPrimitive:in:startingAt:matchTable:)
  (ByteArray hashBytes:startingWith:)
  (SampledSound convert8bitSignedFrom:to16Bit:)
  )!