ChangeLog 579 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406
  1. 2024-09-11 Even Rouault <even.rouault@spatialys.com>
  2. libtiff v4.7.0rc2 preparation
  3. 2024-09-11 Even Rouault <even.rouault@spatialys.com>
  4. configure.ac: make a provision to look for up to python 3.16 ...
  5. hopefully we'll have ditched autoconf support at that point...
  6. Fix test dependency on tiff2rgba-32BPP that breaks 'make check -jX'
  7. test/tiff2ps*.sh scripts: try to use POSIX only diff flags.
  8. 2024-09-11 Even Rouault <even.rouault@spatialys.com>
  9. Merge branch 'automake_doc_fix' into 'master'
  10. doc/Makefile.am: make sure that 'doc-html' and 'doc-man' targets have dependencies to avoid them to be rebuilt by successive make
  11. See merge request libtiff/libtiff!657
  12. 2024-09-10 Even Rouault <even.rouault@spatialys.com>
  13. Merge branch '4_7_0_rst_rgb2ycbcr_thumbnail' into 'master'
  14. v4.7.0.rst: clarify that rgb2ycbcr and thumbnail are not installed
  15. See merge request libtiff/libtiff!659
  16. 2024-09-10 Even Rouault <even.rouault@spatialys.com>
  17. v4.7.0.rst: clarify that rgb2ycbcr and thumbnail are not installed.
  18. 2024-09-08 Even Rouault <even.rouault@spatialys.com>
  19. doc/Makefile.am: make sure that 'doc-html' and 'doc-man' targets have dependencies to avoid them to be rebuilt by successive make
  20. doc/Makefile.am: move rst_sources and EXTRA_DIST variables on top of file
  21. 2024-09-07 Even Rouault <even.rouault@spatialys.com>
  22. Merge branch 'index_rst_formatting_issue' into 'master'
  23. index.rst: fix formatting issue
  24. See merge request libtiff/libtiff!656
  25. 2024-09-07 Even Rouault <even.rouault@spatialys.com>
  26. index.rst: fix formatting issue.
  27. 2024-09-07 Even Rouault <even.rouault@spatialys.com>
  28. Merge branch 'prepare_release_4_7_0' into 'master'
  29. Prepare release 4.7.0
  30. See merge request libtiff/libtiff!654
  31. 2024-09-07 Even Rouault <even.rouault@spatialys.com>
  32. Doc: remove 'Master' terminlogy.
  33. v4.7.0.rst: remove mention about autoconf-archive since that change has been reverted
  34. Revert "autotools: allow pulling in updated macros from autoconf-archive"
  35. This reverts commit c820d16c30c27b3be6c3d10834b6d75607ae9d77.
  36. Revert "HOWTO-RELEASE: document the necessary dependencies for producing dist tarballs"
  37. This reverts commit f1a91e42b3f23641cb5559fb60e1d73d201275eb.
  38. Revert "configure.ac: fix HAVE_OPENGL determination due to recent changes"
  39. This reverts commit c370e67f7fd9320674544113218b7fbca4f65c2b.
  40. configure.ac: fix HAVE_OPENGL determination due to recent changes.
  41. Update version numbers for 4.7.0.
  42. Update ChangeLog and create release notes for v4.7.0.
  43. 2024-09-06 Even Rouault <even.rouault@spatialys.com>
  44. typo fixes.
  45. 2024-09-06 Even Rouault <even.rouault@spatialys.com>
  46. Merge branch 'autoconf-archive' into 'master'
  47. autotools: allow pulling in updated macros from autoconf-archive
  48. See merge request libtiff/libtiff!645
  49. 2024-09-06 Even Rouault <even.rouault@spatialys.com>
  50. Merge branch 'remove_last_usage_of_get_field_type' into 'master'
  51. Change last usage of get_field_type at TIFFWriteDirectorySec() to set_field_type
  52. See merge request libtiff/libtiff!653
  53. 2024-09-06 Even Rouault <even.rouault@spatialys.com>
  54. libtiff v4.7.0rc1 preparation
  55. 2024-09-06 Even Rouault <even.rouault@spatialys.com>
  56. Merge branch 'autoconf-archive' into 'master'
  57. autotools: allow pulling in updated macros from autoconf-archive
  58. See merge request libtiff/libtiff!645
  59. 2024-09-06 Even Rouault <even.rouault@spatialys.com>
  60. Merge branch 'remove_last_usage_of_get_field_type' into 'master'
  61. Change last usage of get_field_type at TIFFWriteDirectorySec() to set_field_type
  62. See merge request libtiff/libtiff!653
  63. 2024-09-05 Su_Laus <sulau@freenet.de>
  64. Change last usage of get_field_type at TIFFWriteDirectorySec() for codec related tags to set_field_type.
  65. 2024-09-03 Eli Schwartz <eschwartz93@gmail.com>
  66. HOWTO-RELEASE: document the necessary dependencies for producing dist tarballs
  67. autogen.sh: actually return failure if any step failed.
  68. Previously, it exited with failure if and only if the wget calls failed.
  69. But it is possible for any command to fail, e.g. if the autotools are
  70. broken, misconfigured, or missing dependencies.
  71. 2024-09-03 Eli Schwartz <eschwartz93@gmail.com>
  72. autotools: allow pulling in updated macros from autoconf-archive.
  73. Instead of inlining a few macros in acinclude.m4 and forgetting about
  74. them, teach aclocal to install the macros to m4/ when autoreconf is run.
  75. They are no longer tracked in one big file, nor tracked at all in git,
  76. but producing dist tarballs will bundle them up just like `configure`
  77. and `Makefile.in`.
  78. Note: previous behavior of AX_CHECK_GL* was to simply ignore support and
  79. proceed, if it was asked for and not found. The updated macros expect to
  80. opt into this by specifying action-if-not-found.
  81. VL_* is obsolete. Upgrade to AX_CFLAGS_WARN_ALL.
  82. 2024-09-03 Even Rouault <even.rouault@spatialys.com>
  83. Merge branch 'XZY2RGB' into 'master'
  84. Fixes #644 Index comparison as size_t to avoid overflow in TIFFXYZToRGB
  85. Closes #644
  86. See merge request libtiff/libtiff!649
  87. 2024-09-03 Nicolas Badoux <n.badoux@hotmail.com>
  88. Fixes #644 Index comparison as size_t to avoid overflow in TIFFXYZToRGB.
  89. 2024-09-01 Even Rouault <even.rouault@spatialys.com>
  90. Merge branch 'ci_werror' into 'master'
  91. CI: build with -Wall -Wextra -Werror
  92. See merge request libtiff/libtiff!652
  93. 2024-08-30 Even Rouault <even.rouault@spatialys.com>
  94. configure.ac: avoid -Werror passed to CFLAGS to interfere with feature detection
  95. CI: build with -Wall -Wextra -Werror.
  96. 2024-08-30 Roger Leigh <rleigh@codelibre.net>
  97. Merge branch 'ci-old-update' into 'master'
  98. ci: Update "old" build jobs to use Ubuntu 22.04
  99. See merge request libtiff/libtiff!651
  100. 2024-08-30 Roger Leigh <rleigh@codelibre.net>
  101. ci: Update "old" build jobs to use Ubuntu 22.04.
  102. 2024-08-30 Even Rouault <even.rouault@spatialys.com>
  103. Merge branch 'ci-ubuntu-22.04' into 'master'
  104. ci: Update to use Ubuntu 24.04 CI images
  105. See merge request libtiff/libtiff!650
  106. 2024-08-30 Roger Leigh <rleigh@codelibre.net>
  107. ci: Update to use Ubuntu 24.04 CI images.
  108. 2024-08-28 Even Rouault <even.rouault@spatialys.com>
  109. Merge branch 'uv_encode' into 'master'
  110. Fix #645 by using unsigned int for variable indexing an array in uv_decode() and uv_encode()
  111. Closes #645
  112. See merge request libtiff/libtiff!648
  113. 2024-08-28 Nicolas Badoux <n.badoux@hotmail.com>
  114. Fix #645 by using unsigned int for variable indexing an array in uv_decode() and uv_encode()
  115. Change `vi` to unsigned int in `uv_decode()` and `uv_encode()` to ensure that upper bound `UV_NVS` cannot be satisfied by a negative value which will overflow when cast to an unsigned value at array access time. This fixes issue #645 where a segmentation fault was caused.
  116. 2024-08-27 Even Rouault <even.rouault@spatialys.com>
  117. Merge branch 'fix_643_solitary_CustomDirectory_read' into 'master'
  118. Fix #643 by initializing pointer to TIFFSetField() and TIFFGetField() before TIFFReadGPSDirectory
  119. Closes #643
  120. See merge request libtiff/libtiff!647
  121. 2024-08-27 Su Laus <sulau@freenet.de>
  122. Fix #643 by initializing pointer to TIFFSetField() and TIFFGetField() before TIFFReadGPSDirectory
  123. Initialize pointer to TIFFSetField() and TIFFGetField() (i.e. tif-\>tif_tagmethods.vsetfield and tif-\>tif_tagmethods.vgetfield) even if the file is opened with "h" option. This fixes issue #643 where a segmentation fault was caused.
  124. 2024-08-25 Even Rouault <even.rouault@spatialys.com>
  125. Merge branch 'tiff_strip' into 'master'
  126. Add non-zero check before division in TIFFComputeStrip
  127. See merge request libtiff/libtiff!646
  128. 2024-08-23 Nicolas Badoux <n.badoux@hotmail.com>
  129. Add non-zero check before division in TIFFComputeStrip.
  130. 2024-08-15 Even Rouault <even.rouault@spatialys.com>
  131. Merge branch 'fix_564' into 'master'
  132. TIFFScanlineSize64(): revert merge request #564
  133. See merge request libtiff/libtiff!644
  134. 2024-08-15 Even Rouault <even.rouault@spatialys.com>
  135. TIFFScanlineSize64(): revert merge request #564.
  136. https://gitlab.com/libtiff/libtiff/-/merge_requests/564 broke decoding of: "tools/tiffcp -c none in.tif out.tif"
  137. with [in.tif](/uploads/0475a88cf6e66652b030a0a3a0c47313/in.tif)
  138. leading to shift each line of the target image by one extra pixel at each line.
  139. Unfortunately, this cancels what https://gitlab.com/libtiff/libtiff/-/merge_requests/564 tried to fix. I'll let @caolanm propose an alternative fix in a follow-up merge request
  140. 2024-08-15 Even Rouault <even.rouault@spatialys.com>
  141. Merge branch 'coverity_fix_from_MR_634' into 'master'
  142. Fix some Coverity Scan issues introduced by MR 634.
  143. See merge request libtiff/libtiff!643
  144. 2024-08-14 Su_Laus <sulau@freenet.de>
  145. Fix some Coverity Scan issues introduced by MR 634.
  146. 2024-08-11 Even Rouault <even.rouault@spatialys.com>
  147. Merge branch 'lerc-pkgconfig' into 'master'
  148. libtiff-4.pc: Fix `Requires.private` missing `Lerc`.
  149. See merge request libtiff/libtiff!633
  150. 2024-08-11 Even Rouault <even.rouault@spatialys.com>
  151. Merge branch 'manpage_update_directory_incrementing' into 'master'
  152. Amend manpages for changes in current directory index behaviour.
  153. See merge request libtiff/libtiff!639
  154. 2024-08-11 Su Laus <sulau@freenet.de>
  155. Amend manpages for changes in current directory index behaviour.
  156. 2024-08-11 Even Rouault <even.rouault@spatialys.com>
  157. Merge branch 'tiffcrop_coverity_20240723' into 'master'
  158. Attempt to address tiffcrop Coverity scan issues 1605444, 1605445, and 1605449.
  159. See merge request libtiff/libtiff!642
  160. 2024-08-11 Lee Howard <faxguy@howardsilvan.com>
  161. Attempt to address tiffcrop Coverity scan issues 1605444, 1605445, and 1605449.
  162. 2024-08-11 Even Rouault <even.rouault@spatialys.com>
  163. Merge branch 'fix_CurDir_wrong_incrementing' into 'master'
  164. Fix cases where tif_curdir is set incorrectly
  165. See merge request libtiff/libtiff!634
  166. 2024-08-11 Su Laus <sulau@freenet.de>
  167. Fix cases where tif_curdir is set incorrectly.
  168. Fix cases where the current directory number (tif_curdir) is set inconsistently or incorrectly, depending on the previous history.
  169. See additional checks and tests in test/test_directory.c of this MR for intended setting of tif_curdir (i.e. TIFFCurrentDirectory(tif)).
  170. 2024-07-12 Even Rouault <even.rouault@spatialys.com>
  171. Merge branch 'coverity_fixes_tiff2pdf_#2' into 'master'
  172. Try to fix additional Coverity issues in tiff2pdf
  173. See merge request libtiff/libtiff!641
  174. 2024-07-12 Su Laus <sulau@freenet.de>
  175. Try to fix additional Coverity issues in tiff2pdf.
  176. 2024-07-10 Even Rouault <even.rouault@spatialys.com>
  177. Merge branch 'fix_autoconf_diff_parameter_crlf' into 'master'
  178. Add parameter for "diff" used in autoconf test scripts to ignore LF and CRLF differences.
  179. See merge request libtiff/libtiff!640
  180. 2024-07-09 Even Rouault <even.rouault@spatialys.com>
  181. Merge branch 'coverity_fixes_tiff2pdf' into 'master'
  182. Fix Coverity issues in tiff2pdf.
  183. See merge request libtiff/libtiff!638
  184. 2024-07-09 Su Laus <sulau@freenet.de>
  185. Fix Coverity issues in tiff2pdf.
  186. 2024-06-29 Su_Laus <sulau@freenet.de>
  187. Add parameter for "diff" used in autoconf test scripts to ignore LF and CRLF differences.
  188. 2024-06-28 Even Rouault <even.rouault@spatialys.com>
  189. Merge branch 'coverity_fixes_test_thumbnail' into 'master'
  190. Coverity Scan fixes in thumbnail.c and custom_dir_EXIF_231.c
  191. See merge request libtiff/libtiff!637
  192. 2024-06-28 Su Laus <sulau@freenet.de>
  193. Coverity Scan fixes in thumbnail.c and custom_dir_EXIF_231.c.
  194. 2024-06-25 Even Rouault <even.rouault@spatialys.com>
  195. Merge branch 'coverity_fixes' into 'master'
  196. Try to silence new Coverity Scan false positives
  197. See merge request libtiff/libtiff!636
  198. 2024-06-24 Even Rouault <even.rouault@spatialys.com>
  199. Try to silence new Coverity Scan false positives.
  200. There are other warnings in tools/ that I'll let others deal with.
  201. 2024-06-24 Even Rouault <even.rouault@spatialys.com>
  202. Merge branch 'fix/make' into 'master'
  203. fix: error when running make clean
  204. Closes #630
  205. See merge request libtiff/libtiff!635
  206. 2024-06-24 Kévin Dunglas <kevin@dunglas.fr>
  207. fix: error when running make clean.
  208. 2024-06-15 Niklas Hambüchen <mail@nh2.me>
  209. libtiff-4.pc: Fix `Requires.private` missing `Lerc`.
  210. It provides a `.pc` file starting from version 4 in:
  211. https://github.com/Esri/lerc/blob/8d6e8251544bbe1379feb0fe0a0934e43ca1a6cd/Lerc.pc.in
  212. libtiff's CMake build system already has support for this,
  213. adding `Lerc` to `Requires.private` if Lerc is >= 4.
  214. In contrast to the CMake build system, autoconf has no good way
  215. to check for checking the Lerc version, we do it unconditionally
  216. there.
  217. 2024-06-13 Even Rouault <even.rouault@spatialys.com>
  218. Merge branch 'rfc02_text__restore_tools' into 'master'
  219. Text for RFC 2: Restoring needed libtiff tools
  220. See merge request libtiff/libtiff!581
  221. 2024-06-13 Even Rouault <even.rouault@spatialys.com>
  222. Merge branch 'add_some_conversion_test_to_cmake' into 'master'
  223. Port some basic sanity checks from autoconf to cmake.
  224. See merge request libtiff/libtiff!630
  225. 2024-06-10 Even Rouault <even.rouault@spatialys.com>
  226. Merge branch 'tiffcp_coverity_check_malloc_return' into 'master'
  227. tiffcp: Add check for limitMalloc return to fix Coverity CID 1603334
  228. See merge request libtiff/libtiff!632
  229. 2024-06-10 Su_Laus <sulau@freenet.de>
  230. tiffcp add check for limitMalloc return to fix Coverity CID 1603334.
  231. 2024-06-07 Even Rouault <even.rouault@spatialys.com>
  232. Merge branch 'aim-nara-master-patch-67955' into 'master'
  233. Remove unnecessary `2` in tiffcmp name
  234. See merge request libtiff/libtiff!631
  235. 2024-06-07 AIM | Nara <takeshi.naramidate@ai-ms.com>
  236. Remove unnecessary `2` in tiffcmp name.
  237. 2024-05-30 Su_Laus <sulau@freenet.de>
  238. Port some basic sanity checks from autoconf to cmake. Checks are for tiffcp and tiffcrop RGB->YCbCr JPEG conversions (see MR !611 / 'tiffcp_tiffcrop_RGB_YCbCr_tests')
  239. 2024-05-29 Even Rouault <even.rouault@spatialys.com>
  240. Merge branch 'ofz65182' into 'master'
  241. an issue seen in putcontig8bitYCbCr22tile
  242. See merge request libtiff/libtiff!564
  243. 2024-05-29 Caolán McNamara <caolanm@gmail.com>
  244. TIFFScanlineSize64(): fix computation in non-JPEG YCbCr case (#564)
  245. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=65182
  246. 2024-05-29 Even Rouault <even.rouault@spatialys.com>
  247. Merge branch 'fix_375' into 'master'
  248. TIFFRead[Scanline/EncodedStrip/EncodeTile]: 0-initialize output buffer if setupdecode fails ; most codecs: zero-initialize (not-yet-written parts of) output buffer if failure
  249. Closes #375
  250. See merge request libtiff/libtiff!628
  251. 2024-05-29 Even Rouault <even.rouault@spatialys.com>
  252. Merge branch 'tiff2pdf-planar' into 'master'
  253. Inconsistent PLANARCONFIG value for the input and output TIFF in tiff2pdf.c
  254. See merge request libtiff/libtiff!629
  255. 2024-05-29 Timothy Lyanguzov <timothy.lyanguzov@sap.com>
  256. Inconsistent PLANARCONFIG value for the input and output TIFF in tiff2pdf.c
  257. Fixed a bug in tiff2pdf.c whereas the PLANARCONFIG for the output TIFF is set to a fixed value of PLANARCONFIG_CONTIG as opposed to match the value of the input TIFF.
  258. This mainly manifest in the heap-buffer-overread due to the difference of sizes in the buffers (between input and output) allocated and read to the size of output buffer.
  259. Reimplementation of !92
  260. 2024-05-27 Even Rouault <even.rouault@spatialys.com>
  261. tif_lzma/tif_lzw: add code comments.
  262. 2024-05-26 Even Rouault <even.rouault@spatialys.com>
  263. ZSTDDecode: zero-initialize (not-yet-written parts of) output buffer if failure
  264. PixarLogDecode: zero-initialize output buffer if failure.
  265. PackBitsDecode: zero-initialize (not-yet-written parts of) output buffer if failure
  266. JPEGDecode: zero-initialize (not-yet-written parts of) output buffer if failure
  267. LERCDecode: zero-initialize output buffer if failure.
  268. LZMADecode: zero-initialize (not-yet-written parts of) output buffer if failure, and handle repeated calls to decoding same tile/strip if previous failure occured
  269. TWebPDecode: zero-initialize output buffer if failure, and handle repeated calls to decoding same tile/strip if previous failure occured
  270. ThunderDecode: zero-initialize (not-yet-written parts of) output buffer if failure
  271. OJPEGDecode: zero-initialize output buffer if failure.
  272. JBIGDecode: zero-initialize (not-yet-written parts of) output buffer if failure
  273. ZIPDecode: zero-initialize (not-yet-written parts of) output buffer if failure, and handle repeated calls to decoding same tile/strip if previous failure occured
  274. LZWDecode: zero-initialize (not-yet-written parts of) output buffer if failure
  275. TIFFRead[Scanline/EncodedStrip/EncodeTile]: 0-initialize output buffer if setupdecode fails
  276. Fixes #375
  277. 2024-05-25 Su_Laus <sulau@freenet.de>
  278. Text for RFC 2: Restoring needed libtiff tools - file added to doc/Makefile.am and rebased.
  279. Text for RFC 2: Restoring needed libtiff tools - approved with voting history updated.
  280. Text for RFC 2: Restoring needed libtiff tools - further amended.
  281. Text for RFC 2: Restoring needed libtiff tools - amended.
  282. Text for RFC 2: Restoring needed libtiff tools.
  283. 2024-05-23 Even Rouault <even.rouault@spatialys.com>
  284. Merge branch 'tiff2pdf_539' into 'master'
  285. fix tiff2pdf issue #539; however, there certainly remain many JPEG-compressed...
  286. See merge request libtiff/libtiff!597
  287. 2024-05-23 Lee Howard <faxguy@howardsilvan.com>
  288. tiff2pdf: fix issue with JPEG restart-interval marker when converting from JPEG-compressed files
  289. Fixes #539
  290. however, there certainly remain many JPEG-compressed TIFFs which tiff2pdf will fumble without disabling data passthrough (using the -n option) - I supect that it has to do with the JPEG tables being removed from the JPEG and placed into the TIFF headers - as tiff2pdf would need to put these back into the JPEG instead of just passing the data through to the PDF
  291. 2024-05-22 Even Rouault <even.rouault@spatialys.com>
  292. Merge branch 'test_fix' into 'master'
  293. test/Makefile.am: make sure that all test images are bundled by make dist even...
  294. See merge request libtiff/libtiff!626
  295. 2024-05-22 Even Rouault <even.rouault@spatialys.com>
  296. Merge branch 'add_missing_rst_files' into 'master'
  297. doc/Makefile.am: add rfcs/ files in rst_sources variable
  298. See merge request libtiff/libtiff!624
  299. 2024-05-22 Even Rouault <even.rouault@spatialys.com>
  300. test/Makefile.am: make sure that all test images are bundled by make dist even if JPEG or JBIG is not available
  301. 2024-05-22 Even Rouault <even.rouault@spatialys.com>
  302. Merge branch 'timothyl/32bpp-cmake-test' into 'master'
  303. Add new test to CMake
  304. See merge request libtiff/libtiff!625
  305. 2024-05-22 Timothy Lyanguzov <timothy.lyanguzov@sap.com>
  306. Add new test to CMake.
  307. See previous merge request libtiff/libtiff!611
  308. 2024-05-22 Even Rouault <even.rouault@spatialys.com>
  309. doc/Makefile.am: add rfcs/ files in rst_sources variable.
  310. 2024-05-22 Even Rouault <even.rouault@spatialys.com>
  311. Merge branch 'tiffcp_tiffcrop_RGB_YCbCr_tests' into 'master'
  312. Add some basic sanity checks for tiffcp and tiffcrop RGB->YCbCr JPEG conversions.
  313. See merge request libtiff/libtiff!611
  314. 2024-05-22 Lee Howard <faxguy@howardsilvan.com>
  315. Add some basic sanity checks for tiffcp and tiffcrop RGB->YCbCr JPEG conversions.
  316. 2024-05-21 Even Rouault <even.rouault@spatialys.com>
  317. Merge branch 'tiffcp_LZW_JBIG_test' into 'master'
  318. Add basic sanity check for tiffcp LZW->JBIG conversion.
  319. See merge request libtiff/libtiff!612
  320. 2024-05-21 Even Rouault <even.rouault@spatialys.com>
  321. Merge branch 'tiffcrop_masonwilde_fix' into 'master'
  322. Apply "Fix heap-buffer-overflow in function extractImageSection"
  323. See merge request libtiff/libtiff!613
  324. 2024-05-21 Lee Howard <faxguy@howardsilvan.com>
  325. tiffcrop: Apply "Fix heap-buffer-overflow in function extractImageSection"
  326. https://gitlab.com/masonwilde/libtiff/-/commit/848434a81c443f59ec90d41218eba6e48a450a11
  327. authored by zhailiangliang commit 848434a81c443f59ec90d41218eba6e48a450a11
  328. The overflow conditions were previously addressed, but this provides additional error messages.
  329. 2024-05-21 Even Rouault <even.rouault@spatialys.com>
  330. Merge branch 'fix_183_alternative' into 'master'
  331. OJPEG: reset subsampling_convert_state =0 in OJPEGPreDecode (fixes tiff2pdf issue #183)
  332. See merge request libtiff/libtiff!621
  333. 2024-05-21 Even Rouault <even.rouault@spatialys.com>
  334. Merge branch 'thunder-fix' into 'master'
  335. A fix for Thunder RLE
  336. See merge request libtiff/libtiff!623
  337. 2024-05-21 Timothy Lyanguzov <theta682@gmail.com>
  338. A fix for Thunder RLE.
  339. The commit https://gitlab.com/robinwatts/libtiff/-/commit/be0519ca3d222c19008fe160873f3b5c28e6b36b states:
  340. Thunder RLE can fail to decode last run. Bug seen with GhostPDL. Decode of test tif file gives valgrind errors due to the "thunder decode" failing to extract the final run of compressed pixels.
  341. The logic in the decoder, presumably intended to spot overruns of data, is incorrect in that runs that end at the end of a row (npixels == maxpixels) will not be decoded.
  342. Fix this by limiting 'n', the number of pixels to copy. Note that npixels is updated by the 'unlimited' value to ensure the error reporting at the end of the loop still works.
  343. 2024-05-18 Even Rouault <even.rouault@spatialys.com>
  344. Merge branch 'tiff2ps_fax2tiff_476' into 'master'
  345. fix fax2ps and fax2tiff bugs #476
  346. See merge request libtiff/libtiff!598
  347. 2024-05-18 Lee Howard <faxguy@howardsilvan.com>
  348. Fix fax2ps and fax2tiff memory leaks.
  349. Fixes #476
  350. 2024-05-17 Even Rouault <even.rouault@spatialys.com>
  351. Merge branch 'tiff2rgba_469' into 'master'
  352. fix tiff2rgba issue #469
  353. See merge request libtiff/libtiff!600
  354. 2024-05-17 Even Rouault <even.rouault@spatialys.com>
  355. Merge branch 'formatting-fixes' into 'master'
  356. Formatting fixes
  357. See merge request libtiff/libtiff!622
  358. 2024-05-17 Even Rouault <even.rouault@spatialys.com>
  359. Formatting fixes.
  360. 2024-05-17 Even Rouault <even.rouault@spatialys.com>
  361. Merge branch 'coverity_fixes' into 'master'
  362. 3 Coverity Scan fixes in tools & contrib
  363. See merge request libtiff/libtiff!592
  364. 2024-05-17 Even Rouault <even.rouault@spatialys.com>
  365. Merge branch 'tiff2pdf_596' into 'master'
  366. tiff2pdf issue #596
  367. See merge request libtiff/libtiff!594
  368. 2024-05-17 Even Rouault <even.rouault@spatialys.com>
  369. Merge branch 'tiffdither_473' into 'master'
  370. fix tiffdither bug #473
  371. See merge request libtiff/libtiff!599
  372. 2024-05-17 Even Rouault <even.rouault@spatialys.com>
  373. Merge branch 'fax2tiff_468' into 'master'
  374. fix fax2tiff issue #468
  375. See merge request libtiff/libtiff!601
  376. 2024-05-17 Even Rouault <even.rouault@spatialys.com>
  377. Merge branch 'tiff2rgba_background' into 'master'
  378. Add background gradient option for tiff2rgba alpha compositing.
  379. See merge request libtiff/libtiff!610
  380. 2024-05-17 Lee Howard <faxguy@howardsilvan.com>
  381. Add background gradient option for tiff2rgba alpha compositing.
  382. 2024-05-17 Even Rouault <even.rouault@spatialys.com>
  383. Merge branch 'tiff2pdf_253' into 'master'
  384. Fix tiff2pdf issue #253 - red and blue were being swapped for RGBA decoding
  385. See merge request libtiff/libtiff!603
  386. 2024-05-17 Even Rouault <even.rouault@spatialys.com>
  387. Merge branch 'fax2tiff_249' into 'master'
  388. Fix fax2tiff issue #249, unreasonable width input
  389. See merge request libtiff/libtiff!604
  390. 2024-05-17 Even Rouault <even.rouault@spatialys.com>
  391. Merge branch 'tiffcp_tiffcrop_228' into 'master'
  392. correct tiffcp and tiffcrop issue #228
  393. See merge request libtiff/libtiff!605
  394. 2024-05-17 Even Rouault <even.rouault@spatialys.com>
  395. OJPEG: reset subsampling_convert_state =0 in OJPEGPreDecode (fixes tiff2pdf issue #183)
  396. 2024-05-17 Even Rouault <even.rouault@spatialys.com>
  397. Merge branch 'fax2tiff_191' into 'master'
  398. Fix fax2tiff issue #191 - EOFB interpretation
  399. See merge request libtiff/libtiff!606
  400. 2024-05-17 Even Rouault <even.rouault@spatialys.com>
  401. Merge branch 'tiff2pdf_98' into 'master'
  402. Fix tiff2pdf documentation issue #98
  403. See merge request libtiff/libtiff!608
  404. 2024-05-17 Even Rouault <even.rouault@spatialys.com>
  405. Merge branch 'tiffgt_warning' into 'master'
  406. Avoids a warning regarding fallthrough.
  407. See merge request libtiff/libtiff!609
  408. 2024-05-17 Even Rouault <even.rouault@spatialys.com>
  409. Merge branch 'tiffcrop_542_550_552' into 'master'
  410. tiffcrop: fixes #542, #550, #552 (buffer overflows, use after free)
  411. See merge request libtiff/libtiff!595
  412. 2024-05-17 Lee Howard <faxguy@howardsilvan.com>
  413. tiffcrop: fixes #542, #550, #552 (buffer overflows, use after free)
  414. 2024-05-17 Even Rouault <even.rouault@spatialys.com>
  415. Merge branch 'Fedora_am_version' into 'master'
  416. libtiff-am-version.patch from Fedora stating:
  417. See merge request libtiff/libtiff!617
  418. 2024-05-17 Even Rouault <even.rouault@spatialys.com>
  419. Merge branch 'formatting-fixes' into 'master'
  420. Code formatting fixes
  421. See merge request libtiff/libtiff!620
  422. 2024-05-17 Even Rouault <even.rouault@spatialys.com>
  423. Code formatting fixes.
  424. Result of running ``pre-commit run --all``
  425. 2024-05-17 Even Rouault <even.rouault@spatialys.com>
  426. Merge branch 'sphinx_quotes_dashes' into 'master'
  427. Don't let Sphinx inconsistently alter quotes and dashes in rst files.
  428. See merge request libtiff/libtiff!615
  429. 2024-05-17 Even Rouault <even.rouault@spatialys.com>
  430. Merge branch 'tiffmedian_599' into 'master'
  431. tiffmedian issue #599
  432. See merge request libtiff/libtiff!593
  433. 2024-05-17 Lee Howard <faxguy@howardsilvan.com>
  434. tiffmedian: fix memory leaks.
  435. Closes #599
  436. 2024-05-17 Even Rouault <even.rouault@spatialys.com>
  437. Merge branch 'more_spelling_corrections' into 'master'
  438. Typo fixes following...
  439. See merge request libtiff/libtiff!618
  440. 2024-05-17 Lee Howard <faxguy@howardsilvan.com>
  441. Typo fixes following https://gitlab.com/libtiff/libtiff/-/commit/c95c77350820e19c8e273925bc97259727d19695
  442. 2024-05-16 Lee Howard <faxguy@howardsilvan.com>
  443. libtiff-am-version.patch from Fedora stating: Back off the minimum required automake version to 1.11. There isn't anything in libtiff currently that actually requires 1.12, and changing this allows the package to be built on pre-F18 machines for easier testing.
  444. Don't let Sphinx inconsistently alter quotes and dashes in rst files. Author: Laszlo Boszormenyi (GCS) <gcs@debian.org> Bug-Debian: https://bugs.debian.org/1028456
  445. Add basic sanity check for tiffcp LZW->JBIG conversion.
  446. Avoids a warning regarding fallthrough.
  447. Fix tiff2pdf documentation issue #98.
  448. Fix fax2tiff issue #191 - EOFB interpretation.
  449. Update tiffcp.c.
  450. Correct tiffcrop output of RGB JPEG and tiffcp/tiffcrop documentation - issue #228
  451. Fix tiffcp and tiffcrop issue 228 - step 1.
  452. Fix fax2tiff issue #249, unreasonable width input.
  453. Fix tiff2pdf issue #253 - red and blue were being swapped for RGBA decoding
  454. fix fax2tiff issue #468.
  455. fix tiff2rgba issue #469.
  456. fix tiffdither bug #473.
  457. tiff2pdf issue #596.
  458. 2024-05-16 Even Rouault <even.rouault@spatialys.com>
  459. contrib/addtiffo: validate return of TIFFWriteEncodedXXXX() calls (CID 1024680)
  460. tiffdump.c: fix wrong printf formattre in error message (CID 1472932)
  461. tiffset.c: avoid false positive Coverity Scan warning on 64-bit builds (CID 1518997)
  462. 2024-05-16 Even Rouault <even.rouault@spatialys.com>
  463. Merge branch 'master' into 'master'
  464. Fix some Coverity warnings.
  465. See merge request libtiff/libtiff!590
  466. 2024-05-16 Lee Howard <faxguy@howardsilvan.com>
  467. Fix some Coverity warnings.
  468. 2024-05-13 Even Rouault <even.rouault@spatialys.com>
  469. Merge branch 'revert_tools_removement' into 'master'
  470. Restore tools from archive and unsupported and tiffcp -i option with revert.
  471. See merge request libtiff/libtiff!589
  472. 2024-05-11 Su_Laus <sulau@freenet.de>
  473. Apply some newer changes to the reverted code and prepare note for 4.7.0.
  474. Revert "Remove -i option (ignore errors) from tiffcp, because almost all fuzzer issues were consequential errors from ignored errors because of the "-i" option."
  475. This reverts commit 280a568ae887c27a422a5da862398ffdbcd9b84d.
  476. 2024-05-11 Su_Laus <sulau@freenet.de>
  477. Revert "Move most TIFF tools to archive and keep some as unsupported (see #580)."
  478. This reverts commit eab89a627f0a65e9a1a47c4b30b4802c80b1ac45.
  479. # Conflicts:
  480. # tools/unsupported/CMakeLists.txt
  481. # tools/unsupported/tif_tools-unsupported_versioninfo.rc
  482. 2024-05-10 Even Rouault <even.rouault@spatialys.com>
  483. Merge branch 'calloc-transposed-args' into 'master'
  484. Fix -Werror=calloc-transposed-args with gcc 14
  485. See merge request libtiff/libtiff!588
  486. 2024-05-10 Even Rouault <even.rouault@spatialys.com>
  487. Fix -Werror=calloc-transposed-args with gcc 14.
  488. 2024-05-09 Even Rouault <even.rouault@spatialys.com>
  489. Merge branch 'EvaluateIFDdatasizeReading_ossfuzz_68327' into 'master'
  490. EvaluateIFDdatasizeReading(): avoid unsigned integer overflow (master only)
  491. See merge request libtiff/libtiff!586
  492. 2024-04-27 Even Rouault <even.rouault@spatialys.com>
  493. EvaluateIFDdatasizeReading(): avoid unsigned integer overflow (master only)
  494. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=68327
  495. 2024-04-25 Even Rouault <even.rouault@spatialys.com>
  496. Merge branch 'ci-appveyor-cygwin-upgrade' into 'master'
  497. appveyor: Upgrade cygwin packages
  498. See merge request libtiff/libtiff!585
  499. 2024-04-25 Roger Leigh <rleigh@codelibre.net>
  500. appveyor: Upgrade cygwin packages.
  501. 2024-04-25 Even Rouault <even.rouault@spatialys.com>
  502. Merge branch 'libjpeg_turbo_3_0' into 'master'
  503. Change messages/comments refering libjpeg-turbo 2.2 to 3.0
  504. See merge request libtiff/libtiff!584
  505. 2024-04-24 Even Rouault <even.rouault@spatialys.com>
  506. Change messages/comments refering libjpeg-turbo 2.2 to 3.0.
  507. libjpeg-turbo 2.2 was actually released as 3.0. Reflect that
  508. 2024-04-22 Even Rouault <even.rouault@spatialys.com>
  509. Merge branch 'EvaluateIFDdatasizeReading_unsigned_int_overflow_fix' into 'master'
  510. EvaluateIFDdatasizeReading(): avoid potential unsigned integer overflow on corrupted tag
  511. See merge request libtiff/libtiff!582
  512. 2024-04-22 Even Rouault <even.rouault@spatialys.com>
  513. EvaluateIFDdatasizeReading(): avoid potential unsigned integer overflow on corrupted tag
  514. 2024-04-22 Even Rouault <even.rouault@spatialys.com>
  515. Merge branch 'tif_dir_logging-627' into 'master'
  516. tif_dir.c: Log source file, line number, and input tif for directory count error.
  517. Closes #627
  518. See merge request libtiff/libtiff!583
  519. 2024-04-22 Kurt Schwehr <schwehr@gmail.com>
  520. tif_dir.c: Log source file, line number, and input tif for directory count error.
  521. 2024-04-14 Even Rouault <even.rouault@spatialys.com>
  522. Merge branch 'fix_readrgbastrip_fpe' into 'master'
  523. Avoiding FPEs (division by zero) in tif_getimage.c
  524. See merge request libtiff/libtiff!580
  525. 2024-04-09 Zurab Tsinadze <zurab.tsinadze@epfl.ch>
  526. Avoid FPEs (division by zero) in tif_getimage.c.
  527. 2024-04-06 Even Rouault <even.rouault@spatialys.com>
  528. Merge branch 'appveyor-vs2022' into 'master'
  529. appveyor: Add VS2022 builds
  530. See merge request libtiff/libtiff!579
  531. 2024-04-06 Roger Leigh <rleigh@codelibre.net>
  532. appveyor: Add VS2022 builds.
  533. 2024-04-04 Roger Leigh <rleigh@codelibre.net>
  534. Merge branch 'appveyor-mingw-fix' into 'master'
  535. appveyor: Use MinGW-w64
  536. See merge request libtiff/libtiff!578
  537. 2024-04-04 Roger Leigh <rleigh@codelibre.net>
  538. appveyor: Use MinGW-w64.
  539. 2024-04-03 Even Rouault <even.rouault@spatialys.com>
  540. Merge branch 'update_rfc1_status' into 'master'
  541. RFC1: update status to adopted
  542. See merge request libtiff/libtiff!577
  543. 2024-04-03 Even Rouault <even.rouault@spatialys.com>
  544. RFC1: update status to adopted.
  545. 2024-04-03 Even Rouault <even.rouault@spatialys.com>
  546. Merge branch 'rfc1_psc' into 'master'
  547. Doc: add 'RFC 1: Project Steering Committee Guidelines' and a PSC page
  548. See merge request libtiff/libtiff!566
  549. 2024-04-03 Even Rouault <even.rouault@spatialys.com>
  550. Doc: add 'RFC 1: Project Steering Committee Guidelines' and a PSC page.
  551. 2024-04-02 Even Rouault <even.rouault@spatialys.com>
  552. Merge branch 'fix_coverity_test_directory_expansion' into 'master'
  553. Fix coverity scan issue in test_directory.c
  554. See merge request libtiff/libtiff!576
  555. 2024-04-02 Su_Laus <sulau@freenet.de>
  556. Fix coverity scan issue in test_directory.c.
  557. 2024-04-02 Even Rouault <even.rouault@spatialys.com>
  558. Merge branch 'typo_fixes' into 'master'
  559. Various typo fixes
  560. See merge request libtiff/libtiff!575
  561. 2024-04-02 Even Rouault <even.rouault@spatialys.com>
  562. Various typo fixes.
  563. 2024-03-31 Even Rouault <even.rouault@spatialys.com>
  564. Merge branch 'test_directory_expansion_endianness' into 'master'
  565. Enhance test_directory.c with big-endian and little-endian test cases
  566. See merge request libtiff/libtiff!574
  567. 2024-03-30 Su_Laus <sulau@freenet.de>
  568. Enhance test/test_directory.c with big-endian and little-endian test cases.
  569. Insert testcase into test_directory.c for #618 "Failure in TIFFSetSubDirectory() will break subsequent TIFFSetDirectory() calls".
  570. 2024-03-29 Even Rouault <even.rouault@spatialys.com>
  571. Merge branch 'correct_coverity_issues_from_avoid_IFD_overwriting' into 'master'
  572. Correct some coverity issues from "avoid IFD overwriting"
  573. See merge request libtiff/libtiff!573
  574. 2024-03-29 Su_Laus <sulau@freenet.de>
  575. Correct some coverity issues from "avoid IFD overwriting".
  576. 2024-03-28 Even Rouault <even.rouault@spatialys.com>
  577. Merge branch 'fix_gdal_9548' into 'master'
  578. LERC codec: deal with issues with multi-band PlanarConfig=Contig and NaN values
  579. See merge request libtiff/libtiff!572
  580. 2024-03-26 Even Rouault <even.rouault@spatialys.com>
  581. Merge branch 'avoid_IFD_overwriting_other_data_TIFFWriteDirectory' into 'master'
  582. TIFFWriteDirectory: Avoid overwriting following data if an IFD is enlarged.
  583. See merge request libtiff/libtiff!565
  584. 2024-03-26 Su Laus <sulau@freenet.de>
  585. TIFFWriteDirectory: Avoid overwriting following data if an IFD is enlarged.
  586. Avoid overwriting other data if an IFD that has already been written is enlarged. If entries are to be changed in an IFD that has already been written to the file, the memory area can be overwritten as long as the IFD data volume has not increased. Otherwise, the IFD must be written to a different location in the file. Up to now, LibTIFF has simply overwritten the IFD and other data areas in the file.
  587. With this MR, the size of the IFD, and location of IFD data, is tracked and checked if the IFD can be safely overwritten or has to be re-written to another location.
  588. 2024-03-24 Even Rouault <even.rouault@spatialys.com>
  589. LERC codec: deal with issues with multi-band PlanarConfig=Contig and NaN values
  590. Fixes https://github.com/OSGeo/gdal/issues/9530.
  591. Cf https://github.com/OSGeo/gdal/pull/9548 for the GDAL specific fix.
  592. The LERC codec up-to-now didn't do any special processing when writing a strile
  593. in a multi-band PlanarConfig=Contig file, resulting in corruptions. Now we
  594. generate a mask buffer in that situation. Actually, if the NaN values are not
  595. at the same location accross bands, we need to write one mask-per-band, which
  596. requires liblerc >= 3.0, and in that situation change the LERC blob to
  597. multi-band instead of multi-depth/dim, with liblerc >= 3.0. When all bands have
  598. NaN values at the same location, we generate a single mask, which is compatible
  599. of liblerc < 3.0, but requires at last this version of libtiff to be read. This
  600. is the best solution we come with to fix the issue while having the maximum
  601. backward compatibility.
  602. 2024-03-24 Even Rouault <even.rouault@spatialys.com>
  603. Merge branch 'harmonize_TIFFheader_swapping' into 'master'
  604. Correct and harmonize swapping of internal 'tif_header' parameters.
  605. See merge request libtiff/libtiff!571
  606. 2024-03-24 Su Laus <sulau@freenet.de>
  607. Correct and harmonize swapping of internal 'tif_header' parameters.
  608. 2024-03-19 Even Rouault <even.rouault@spatialys.com>
  609. Merge branch 'chore/printf-format-specifiers' into 'master'
  610. chore: use correct format specifiers
  611. See merge request libtiff/libtiff!570
  612. 2024-03-19 Tom <tom@msbit.com.au>
  613. chore: use correct format specifiers.
  614. When building on my Mac, I get the following warnings:
  615. libtiff/tools/tiffcp.c:154:24: warning: format specifies type 'unsigned short' but the argument has type 'tdir_t' (aka 'unsigned int') [-Wformat]
  616. comma, nextImage);
  617. ^~~~~~~~~
  618. libtiff/tools/tiffcp.c:1295:39: warning: format specifies type 'unsigned short' but the argument has type 'tdir_t' (aka 'unsigned int') [-Wformat]
  619. TIFFFileName(bias), TIFFCurrentDirectory(bias),
  620. ^~~~~~~~~~~~~~~~~~~~~~~~~~
  621. libtiff/tools/tiffcp.c:1296:37: warning: format specifies type 'unsigned short' but the argument has type 'tdir_t' (aka 'unsigned int') [-Wformat]
  622. TIFFFileName(in), TIFFCurrentDirectory(in));
  623. ^~~~~~~~~~~~~~~~~~~~~~~~
  624. libtiff/tools/tiffcp.c:1303:37: warning: format specifies type 'unsigned short' but the argument has type 'tdir_t' (aka 'unsigned int') [-Wformat]
  625. TIFFFileName(in), TIFFCurrentDirectory(in));
  626. ^~~~~~~~~~~~~~~~~~~~~~~~
  627. libtiff/tools/tiffsplit.c:174:21: warning: format specifies type 'long long' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
  628. path_len);
  629. ^~~~~~~~
  630. This updates the format specifiers from `PRIu16` to `PRIu32` for `tdir_t`
  631. (which is a `typdef`ed `uint32_t`) and from `TIFF_SSIZE_FORMAT` to
  632. `TIFF_SIZE_FORMAT` for `size_t`, which makes sense given that it's an unsigned
  633. type.
  634. 2024-03-16 Even Rouault <even.rouault@spatialys.com>
  635. Merge branch 'fix_628_FPE_at_TIFFhowmany' into 'master'
  636. Avoiding FPE (division by zero) for TIFFhowmany_32() and TIFFhowmany_64()...
  637. Closes #628
  638. See merge request libtiff/libtiff!568
  639. 2024-03-15 Su_Laus <sulau@freenet.de>
  640. Avoiding FPE (division by zero) for TIFFhowmany_32() and TIFFhowmany_64() macros by checking for denominator not zero before macros are executed. Fixes #628.
  641. 2024-03-14 Even Rouault <even.rouault@spatialys.com>
  642. Merge branch 'fix_wrong_return_TIFFIsBigTIFF_if_swapping_case' into 'master'
  643. Fix wrong return of TIFFIsBigTIFF() in case byte-swapping is acitve
  644. See merge request libtiff/libtiff!567
  645. 2024-03-13 Su_Laus <sulau@freenet.de>
  646. Fix wrong return of TIFFIsBigTIFF() in case byte-swapping is acitve (i.e. little endian image on a big endian machine).
  647. 2024-01-30 Even Rouault <even.rouault@spatialys.com>
  648. Merge branch 'master' into 'master'
  649. Setting the TIFFFieldInfo field `set_field_type` should consider `field_writecount` not `field_readcount`
  650. See merge request libtiff/libtiff!544
  651. 2024-01-30 Timo Stüber <omit66@gmail.com>
  652. Setting the TIFFFieldInfo field `set_field_type` should consider `field_writecount` not `field_readcount`
  653. In most of the cases the field_writecount and field_readcount of the TIFFFieldInfo are equal. But they do not have to be the same.
  654. I encountered this issues when using an older release of Pillow. Since they use custom fields for decoding only, they set the readcount value to 0. As the result _TIFFSetGetType can not identify the type correctly and set TIFF_SETGET_UNDEFINED.
  655. Error Message:
  656. ```
  657. TIFFLib: _TIFFWriteDirectorySec(): Rational2Double: .set_field_type is not 4 but 1.
  658. ```
  659. During the execution of TIFFMergeFieldInfo the fields get_field_type and set_field_type set. I guess the set_field_type should dependent on the field_writecount.
  660. 2024-01-24 Even Rouault <even.rouault@spatialys.com>
  661. Merge branch 'avoid_memory_leaks_using_TIFFCreateDirectory' into 'master'
  662. Avoiding memory leaks when using TIFFCreateDirectory()
  663. See merge request libtiff/libtiff!563
  664. 2024-01-24 Su_Laus <sulau@freenet.de>
  665. Avoiding memory leaks when using TIFFCreateDirectory() by releasing the allocated memory in the tif-structure.
  666. 2024-01-10 Even Rouault <even.rouault@spatialys.com>
  667. Merge branch 'WIN32' into 'master'
  668. Use #ifdef _WIN32 to test for Windows, and tiffio.h: remove definition of __WIN32__
  669. See merge request libtiff/libtiff!562
  670. 2024-01-08 Even Rouault <even.rouault@spatialys.com>
  671. test/raw_decode.c: remove likely ifdef tricks related to old compilers or unusual setups
  672. tif_jpeg.c/tif_ojpeg.c: remove likely ifdef tricks related to old compilers or unusual setups
  673. Remove _TIFFUInt64ToFloat() and _TIFFUInt64ToDouble()
  674. Remove support for _MSC_VER < 1500.
  675. 2024-01-07 Even Rouault <even.rouault@spatialys.com>
  676. Use #ifdef _WIN32 to test for Windows, and tiffio.h: remove definition of __WIN32__
  677. 2023-12-20 Even Rouault <even.rouault@spatialys.com>
  678. Merge branch 'fix_579_non_terminated_ASCII_deletes_one_byte' into 'master'
  679. Fixed issue with non-terminated ASCII arrays where the last character is overwritten (fixes #579)
  680. Closes #579
  681. See merge request libtiff/libtiff!561
  682. 2023-12-20 Su_Laus <sulau@freenet.de>
  683. For non-terminated ASCII arrays, the buffer is first enlarged before a NULL is set at the end to avoid deleting the last character. Fixes #579. Some editorials in tif_dir.c.
  684. 2023-12-09 Even Rouault <even.rouault@spatialys.com>
  685. Merge branch 'fix_624_check_TIFFCreateAnonField_return' into 'master'
  686. Fix 624: Check return value of _TIFFCreateAnonField()
  687. Closes #624
  688. See merge request libtiff/libtiff!560
  689. 2023-12-01 Su_Laus <sulau@freenet.de>
  690. Check return value of _TIFFCreateAnonField().
  691. Fixes #624
  692. 2023-11-27 Even Rouault <even.rouault@spatialys.com>
  693. Merge branch 'TIFFOpenOptionsSetMaxCumulatedMemAlloc' into 'master'
  694. Add TIFFOpenOptionsSetMaxCumulatedMemAlloc()
  695. See merge request libtiff/libtiff!556
  696. 2023-11-27 Even Rouault <even.rouault@spatialys.com>
  697. Add TIFFOpenOptionsSetMaxCumulatedMemAlloc()
  698. This function complements ``TIFFOpenOptionsSetMaxSingleMemAlloc()`` to define the maximum cumulated memory allocations in byte, for a given TIFF handle, that libtiff internal memory allocation functions are allowed.
  699. 2023-11-23 Even Rouault <even.rouault@spatialys.com>
  700. Merge branch 'unity_clang_fixes' into 'master'
  701. Fixes to avoid CLang warnings on unity builds
  702. See merge request libtiff/libtiff!558
  703. 2023-11-23 Even Rouault <even.rouault@spatialys.com>
  704. Fixes to avoid CLang warnings on unity builds.
  705. 2023-11-22 Even Rouault <even.rouault@spatialys.com>
  706. Merge branch 'cmake_UNITY_BUILD' into 'master'
  707. Changes to allow building with cmake -DCMAKE_UNITY_BUILD=ON
  708. See merge request libtiff/libtiff!557
  709. 2023-11-22 Even Rouault <even.rouault@spatialys.com>
  710. CI: test -DCMAKE_UNITY_BUILD=ON.
  711. Changes to allow building with cmake -DCMAKE_UNITY_BUILD=ON.
  712. 2023-11-22 Even Rouault <even.rouault@spatialys.com>
  713. Merge branch 'manpage_506_TIFFClose_check_with_TIFFFlush' into 'master'
  714. manpage: Note on using TIFFFlush() before TIFFClose()
  715. Closes #506
  716. See merge request libtiff/libtiff!555
  717. 2023-11-16 Su_Laus <sulau@freenet.de>
  718. manpage: Note on using TIFFFlush() before TIFFClose() to check that the data has been successfully written to the file.
  719. Closes #506
  720. 2023-11-11 Even Rouault <even.rouault@spatialys.com>
  721. Merge branch 'manpage_621_TIFFOpenOptionsSetMaxSingleMemAlloc' into 'master'
  722. manpage: Update TIFF documentation about TIFFOpenOptions.rst and memory limitting.
  723. Closes #621
  724. See merge request libtiff/libtiff!553
  725. 2023-11-11 Even Rouault <even.rouault@spatialys.com>
  726. Merge branch 'rectify_some_shadowed_declarations' into 'master'
  727. Rectify some shadowed declarations and warnings in tools and test modules.
  728. See merge request libtiff/libtiff!552
  729. 2023-11-11 Even Rouault <even.rouault@spatialys.com>
  730. Merge branch 'fix_TIFFRealloc_usage_to_TIFFReallocExt' into 'master'
  731. Change internally used _TIFFRealloc() to _TIFFReallocExt()
  732. See merge request libtiff/libtiff!554
  733. 2023-11-11 Su_Laus <sulau@freenet.de>
  734. Change internally used _TIFFRealloc() to _TIFFReallocExt(), which respects the TIFFOpenOptionsSetMaxSingleMemAlloc() limit.
  735. 2023-11-11 Timothy Lyanguzov <theta682@gmail.com>
  736. Fix typo.
  737. 2023-11-09 Su_Laus <sulau@freenet.de>
  738. manpage: Update TIFF documentation about TIFFOpenOptions.rst and TIFFOpenOptionsSetMaxSingleMemAlloc() usage and some other small fixes.
  739. 2023-11-08 Su_Laus <sulau@freenet.de>
  740. Rectify some shadowed declarations and warnings in tools and test modules.
  741. 2023-11-04 Even Rouault <even.rouault@spatialys.com>
  742. Merge branch 'fix_583' into 'master'
  743. tif_fax3.c: error out after a number of times end-of-file has been reached (fixes #583)
  744. Closes #583
  745. See merge request libtiff/libtiff!547
  746. 2023-11-04 Even Rouault <even.rouault@spatialys.com>
  747. Merge branch 'fix_622' into 'master'
  748. TIFFReadRGBAStrip/TIFFReadRGBATile: add more validation of col/row (fixes #622)
  749. Closes #622
  750. See merge request libtiff/libtiff!546
  751. 2023-10-31 Even Rouault <even.rouault@spatialys.com>
  752. Merge branch 'extra_limit_getfilesize' into 'master'
  753. tif_dirread.c: only issue TIFFGetFileSize() for large enough RAM requests
  754. See merge request libtiff/libtiff!551
  755. 2023-10-31 Even Rouault <even.rouault@spatialys.com>
  756. tif_dirread.c: only issue TIFFGetFileSize() for large enough RAM requests
  757. 2023-10-31 Even Rouault <even.rouault@spatialys.com>
  758. Merge branch 'TIFFFetchDirectory_remove_useless_check' into 'master'
  759. TIFFFetchDirectory(): remove useless allocsize vs filesize check
  760. See merge request libtiff/libtiff!550
  761. 2023-10-31 Even Rouault <even.rouault@spatialys.com>
  762. TIFFFetchDirectory(): remove useless allocsize vs filesize check.
  763. CoverityScan rightly points that the max value for dircount16 * dirsize
  764. is 4096 * 20. That's small enough not to do any check
  765. 2023-10-31 Even Rouault <even.rouault@spatialys.com>
  766. Merge branch 'limit_getfilesize' into 'master'
  767. tif_dirread.c: only issue TIFFGetFileSize() for large enough RAM requests
  768. See merge request libtiff/libtiff!549
  769. 2023-10-31 Even Rouault <even.rouault@spatialys.com>
  770. tif_dirread.c: only issue TIFFGetFileSize() for large enough RAM requests
  771. Ammends 5320c9d89c054fa805d037d84c57da874470b01a
  772. This fixes a performance regression caught by the GDAL regression test
  773. suite.
  774. 2023-10-31 Even Rouault <even.rouault@spatialys.com>
  775. Merge branch 'tif_dirread-typo' into 'master'
  776. tif_dirread.c: Fix typo: greather -> greater
  777. See merge request libtiff/libtiff!548
  778. 2023-10-31 Kurt Schwehr <schwehr@google.com>
  779. tif_dirread.c: Fix typo: greather -> greater.
  780. 2023-10-31 Even Rouault <even.rouault@spatialys.com>
  781. Merge branch 'fix_614_check_mem_allocation_vs_filelength' into 'master'
  782. Prevent some out-of-memory attacks
  783. See merge request libtiff/libtiff!545
  784. 2023-10-31 Su Laus <sulau@freenet.de>
  785. Prevent some out-of-memory attacks.
  786. Some small fuzzer files fake large amounts of data and provoke out-of-memory situations. For non-compressed data content / tags, out-of-memory can be prevented by comparing with the file size.
  787. At image reading, data size of some tags / data structures (StripByteCounts, StripOffsets, StripArray, TIFF directory) is compared with file size to prevent provoked out-of-memory attacks.
  788. See issue https://gitlab.com/libtiff/libtiff/-/issues/614#note_1602683857
  789. 2023-10-31 Even Rouault <even.rouault@spatialys.com>
  790. tif_fax3.c: error out after a number of times end-of-file has been reached (fixes #583)
  791. TIFFReadRGBAStrip/TIFFReadRGBATile: add more validation of col/row (fixes #622)
  792. 2023-10-30 Even Rouault <even.rouault@spatialys.com>
  793. Merge branch 'fix_failed_subdirectory_read' into 'master'
  794. #618: ensure absolute seeking is forced independent
  795. See merge request libtiff/libtiff!543
  796. 2023-10-25 Manuel Massing <m.massing@virtualities.de>
  797. #618: ensure absolute seeking is forced independent of TIFFReadDirectory success.
  798. This fixes TIFFSetDirectory calls for the case where
  799. TIFFReadDirectory was unsuccessful.
  800. 2023-10-17 Even Rouault <even.rouault@spatialys.com>
  801. Merge branch 'cmake' into 'master'
  802. CMake: Fix TIFF_INCLUDE_DIRS
  803. See merge request libtiff/libtiff!541
  804. 2023-10-12 Even Rouault <even.rouault@spatialys.com>
  805. Merge branch 'fix_616' into 'master'
  806. tif_lzw.c: avoid warning about misaligned address with UBSAN (fixes #616)
  807. Closes #616
  808. See merge request libtiff/libtiff!542
  809. 2023-10-12 Even Rouault <even.rouault@spatialys.com>
  810. Merge branch 'tiffcp_cancel_ycbcr' into 'master'
  811. tiffcp: replace PHOTOMETRIC_YCBCR with PHOTOMETRIC_RGB when outputing to...
  812. See merge request libtiff/libtiff!540
  813. 2023-10-12 Even Rouault <even.rouault@spatialys.com>
  814. tif_lzw.c: avoid warning about misaligned address with UBSAN (fixes #616)
  815. The branch suppressed by this commit wasn't useful as I've verified that
  816. with -O2 and -O3 and gcc or clang, doing a memcpy() + _byteswap_uint64()
  817. generates exactly the same code as _byteswap_uint64(*ptr).
  818. The warning with UBSAN thus only comes from UBSAN generating special code
  819. to catch the misalignment, but is unlikely to cause any issue in
  820. practice given the above observation.
  821. 2023-10-12 Julien Schueller <schueller@phimeca.com>
  822. CMake: Fix TIFF_INCLUDE_DIRS.
  823. 2023-10-08 Even Rouault <even.rouault@spatialys.com>
  824. tiffcp: preserve TIFFTAG_REFERENCEBLACKWHITE when doing YCbCr JPEG -> YCbCr JPEG
  825. 2023-10-07 Even Rouault <even.rouault@spatialys.com>
  826. tiffcp: replace PHOTOMETRIC_YCBCR with PHOTOMETRIC_RGB when outputing to compression != JPEG (refs #571)
  827. 2023-10-05 Even Rouault <even.rouault@spatialys.com>
  828. Merge branch 'kmilos-master-patch-42063' into 'master'
  829. CMake: MinGW compilers don't need a .def file for shared library
  830. See merge request libtiff/libtiff!448
  831. 2023-10-05 Even Rouault <even.rouault@spatialys.com>
  832. Merge branch 'kmilos-master-patch-64997' into 'master'
  833. CMake: move libdeflate and Lerc to Requires.private
  834. See merge request libtiff/libtiff!536
  835. 2023-10-05 Even Rouault <even.rouault@spatialys.com>
  836. Merge branch 'clarify_archive' into 'master'
  837. Doc: clarify unsupported (still in tarball) and archived (only in git) utilities
  838. See merge request libtiff/libtiff!532
  839. 2023-10-05 Even Rouault <even.rouault@spatialys.com>
  840. Merge branch 'fix_571_alternative' into 'master'
  841. tiffcp: Setting the correct photometric interpretation for the output image...
  842. Closes #571
  843. See merge request libtiff/libtiff!539
  844. 2023-10-04 Even Rouault <even.rouault@spatialys.com>
  845. tiffcp: do not copy tags YCBCRCOEFFICIENTS, YCBCRSUBSAMPLING, YCBCRPOSITIONING, REFERENCEBLACKWHITE. Only set TIFFTAG_YCBCRSUBSAMPLING when generating YCbCr JPEG
  846. tiffcp: Setting the correct photometric interpretation for the output image when converting JPEG-YCBCR to JPEG-RGB images.
  847. Closes #571
  848. 2023-09-28 Miloš Komarčević <miloskomarcevic@aim.com>
  849. CMake: move libdeflate and Lerc to Requires.private.
  850. 2023-09-27 Even Rouault <even.rouault@spatialys.com>
  851. Merge branch 'kmilos-windres' into 'master'
  852. CMake: enable resource compilation on all Windows
  853. See merge request libtiff/libtiff!537
  854. 2023-09-27 Miloš Komarčević <miloskomarcevic@aim.com>
  855. CMake: enable resource compilation on all Windows.
  856. 2023-09-15 Even Rouault <even.rouault@spatialys.com>
  857. Merge branch 'fix_608' into 'master'
  858. tif_dirinfo.c: re-enable TIFFTAG_EP_CFAREPEATPATTERNDIM and TIFFTAG_EP_CFAPATTERN tags (fixes #608)
  859. Closes #608
  860. See merge request libtiff/libtiff!534
  861. 2023-09-15 Even Rouault <even.rouault@spatialys.com>
  862. tif_dirinfo.c: re-enable TIFFTAG_EP_CFAREPEATPATTERNDIM and TIFFTAG_EP_CFAPATTERN tags (fixes #608)
  863. 2023-09-09 Even Rouault <even.rouault@spatialys.com>
  864. Merge branch 'fix_606_tiffcp_check_also_input_compression_codec' into 'master'
  865. tiffcp: Fixes #606. Check also codec of input image, not only from output image.
  866. Closes #606
  867. See merge request libtiff/libtiff!533
  868. 2023-09-09 Su_Laus <sulau@freenet.de>
  869. Check also if codec of input image is available, independently from codec check of output image and return with error if not. Fixes #606.
  870. 2023-09-08 Even Rouault <even.rouault@spatialys.com>
  871. Doc: clarify unsupported (still in tarball) and archived (only in git) utilities
  872. 2023-09-08 Even Rouault <even.rouault@spatialys.com>
  873. Merge branch 'update_release_date' into 'master'
  874. Update RELEASE-DATE
  875. See merge request libtiff/libtiff!531
  876. 2023-09-08 Even Rouault <even.rouault@spatialys.com>
  877. Update RELEASE-DATE.
  878. 2023-09-08 Even Rouault <even.rouault@spatialys.com>
  879. Merge branch 'fix_605' into 'master'
  880. autoconf.ac: fix detection of windows.h for mingw (fixes #605)
  881. Closes #605
  882. See merge request libtiff/libtiff!530
  883. 2023-09-07 Even Rouault <even.rouault@spatialys.com>
  884. autoconf.ac: fix detection of windows.h for mingw (fixes #605)
  885. 2023-09-06 Even Rouault <even.rouault@spatialys.com>
  886. Merge branch 'prepare_v4_6_0' into 'master'
  887. Prepare for libtiff 4.6.0 release
  888. See merge request libtiff/libtiff!528
  889. 2023-09-05 Even Rouault <even.rouault@spatialys.com>
  890. doc/index.rst: add warning about tools removal.
  891. 2023-09-05 Even Rouault <even.rouault@spatialys.com>
  892. Merge branch 'fix_603_readme_doc_reference_update' into 'master'
  893. Update documentation reference within README.md. Fixes #603.
  894. Closes #603
  895. See merge request libtiff/libtiff!529
  896. 2023-09-05 Su_Laus <sulau@freenet.de>
  897. Update documentation reference within README.md. Fixes #603.
  898. 2023-09-05 Even Rouault <even.rouault@spatialys.com>
  899. Fix references to mailing list.
  900. 2023-09-05 Even Rouault <even.rouault@spatialys.com>
  901. libtiff v4.6.0 released
  902. 2023-09-05 Even Rouault <even.rouault@spatialys.com>
  903. Merge branch 'fix_600' into 'master'
  904. CMake: fix build with -Dstrip-chopping=off (fixes #600)
  905. See merge request libtiff/libtiff!527
  906. 2023-09-05 Even Rouault <even.rouault@spatialys.com>
  907. Merge branch 'georgthegreat-master-patch-87447' into 'master'
  908. Fix using __attribute__ libtiff with clang-for-windows
  909. See merge request libtiff/libtiff!525
  910. 2023-09-05 Yuriy Chernyshov <georgthegreat@gmail.com>
  911. Fix using __attribute__ libtiff with clang-for-windows.
  912. 2023-09-05 Even Rouault <even.rouault@spatialys.com>
  913. Merge branch 'manpage_TIFFField_docu_update' into 'master'
  914. manpages: TiffField functions documentation updated with return behaviour for...
  915. See merge request libtiff/libtiff!526
  916. 2023-09-05 Even Rouault <even.rouault@spatialys.com>
  917. CMake: fix build with -Dstrip-chopping=off (fixes #600)
  918. 2023-09-03 Even Rouault <even.rouault@spatialys.com>
  919. Merge branch 'consistently_update_TIFF-version_from_configure-ac' into 'master'
  920. Update CMake and autoconf scripts to consistently update LibTIFF version...
  921. See merge request libtiff/libtiff!456
  922. 2023-09-03 Su Laus <sulau@freenet.de>
  923. Update CMake and autoconf scripts to consistently update LibTIFF version defines and references in various files when version definition in configure.ac has been changed.
  924. - Move in tiffvers.h from .\libtiff source directory to .\libtiff build directory.
  925. - Remove unused version information from tif_config.h
  926. - With every CMake build the version defines (e.g. 4.5.1) within tiffvers.h are consistently updated from configure.ac. The version release-date is taken from file RELEASE-DATE.
  927. - The files VERSION and RELEASE-DATE are only updated with a special CMake target build: cmake --build . --target tiff_release.
  928. - For autotools, version information is updated from configure.ac with ./autogen.sh. LIBTIFF_RELEASE_DATE is taken form file RELEASE-DATE.
  929. - ./configure generates tiffvers.h with the cached version information and LIBTIFF_RELEASE_DATE.
  930. - "make release" updates tiffvers.h and VERSION file with cached version info and RELEASE-DATE file and tiffves.h with the current date.
  931. 2023-08-28 Su_Laus <sulau@freenet.de>
  932. manpages: TiffField functions documentation updated with return behaviour for not defined tags and determination of write-/read-count size.
  933. 2023-08-22 Even Rouault <even.rouault@spatialys.com>
  934. Merge branch 'change_long_to_int32_t_in_two_test_apps' into 'master'
  935. Change "long" to "int32_t" in two test apps, because can be either int32_t or...
  936. See merge request libtiff/libtiff!524
  937. 2023-08-21 Su_Laus <sulau@freenet.de>
  938. Change "long" to "int32_t" in two test apps, because can be either int32_t or int64_t, depending on compiler and system.
  939. 2023-08-16 Even Rouault <even.rouault@spatialys.com>
  940. Merge branch 'CI_CMake_static_build' into 'master'
  941. Add static build for CI/CD to run testcases which need private interface functions.
  942. See merge request libtiff/libtiff!521
  943. 2023-08-16 Even Rouault <even.rouault@spatialys.com>
  944. Merge branch 'fix_#597_tiffset_different_signedness' into 'master'
  945. tiffset fix #597: warning: comparison of integer expressions of different signedness.
  946. Closes #597
  947. See merge request libtiff/libtiff!523
  948. 2023-08-16 Even Rouault <even.rouault@spatialys.com>
  949. Merge branch 'tiffcp_remove_i_option' into 'master'
  950. tiffcp: remove -i option (ignore errors)
  951. See merge request libtiff/libtiff!522
  952. 2023-08-16 Even Rouault <even.rouault@spatialys.com>
  953. Merge branch 'move_tools_to_unsupported_a_archive' into 'master'
  954. Move most TIFF tools to archive and keep some as unsupported (see #580).
  955. See merge request libtiff/libtiff!520
  956. 2023-08-16 Su Laus <sulau@freenet.de>
  957. Move most TIFF tools to archive and keep some as unsupported (see #580).
  958. 2023-08-12 Su_Laus <sulau@freenet.de>
  959. Add static build for CI/CD to run testcases which need private interface functions.
  960. tiffset fix #597: warning: comparison of integer expressions of different signedness.
  961. Remove -i option (ignore errors) from tiffcp, because almost all fuzzer issues were consequential errors from ignored errors because of the "-i" option.
  962. 2023-08-11 Even Rouault <even.rouault@spatialys.com>
  963. Merge branch 'fix_585_test_write_read_tags_autoconf' into 'master'
  964. Add missing test_write_read_tags.c and test_transferfunction_write_read.c in...
  965. Closes #585
  966. See merge request libtiff/libtiff!519
  967. 2023-07-24 Even Rouault <even.rouault@spatialys.com>
  968. Fix copy paste error.
  969. 2023-07-23 Su_Laus <sulau@freenet.de>
  970. Add missing test_write_read_tags.c and test_transferfunction_write_read.c in tarball (fixes #585) and correct „long“ issue.
  971. Don't use "long" because can be int32_t or int64_t, depending on compiler and system.
  972. 2023-07-20 Even Rouault <even.rouault@spatialys.com>
  973. Merge branch 'clang-format-tools' into 'master'
  974. Automatically format with clang-format
  975. See merge request libtiff/libtiff!518
  976. 2023-07-20 Timothy Lyanguzov <timothy.lyanguzov@sap.com>
  977. Automatically format with clang-format.
  978. 2023-07-20 Even Rouault <even.rouault@spatialys.com>
  979. Merge branch 'fix_589' into 'master'
  980. TiffConfig.cmake.in: set TIFF_INCLUDE_DIR, TIFF_INCLUDE_DIRS and...
  981. Closes #589
  982. See merge request libtiff/libtiff!514
  983. 2023-07-20 Even Rouault <even.rouault@spatialys.com>
  984. TiffConfig.cmake.in: set TIFF_INCLUDE_DIR, TIFF_INCLUDE_DIRS and...
  985. 2023-07-19 Even Rouault <even.rouault@spatialys.com>
  986. Merge branch 'master-patch-6fc6' into 'master'
  987. raw2tiff: fix integer overflow and bypass of the check (fixes #592)
  988. See merge request libtiff/libtiff!516
  989. 2023-07-19 Arie Haenel <arie.haenel@jct.ac.il>
  990. raw2tiff: fix integer overflow and bypass of the check (fixes #592)
  991. 2023-07-19 Even Rouault <even.rouault@spatialys.com>
  992. Merge branch 'master-patch-05a4' into 'master'
  993. tiffcp: fix memory corruption (overflow) on hostile images (fixes #591)
  994. See merge request libtiff/libtiff!515
  995. 2023-07-19 Arie Haenel <arie.haenel@jct.ac.il>
  996. tiffcp: fix memory corruption (overflow) on hostile images (fixes #591)
  997. 2023-07-17 Even Rouault <even.rouault@spatialys.com>
  998. Merge branch 'fix-numtrunc' into 'master'
  999. fix numtrunc at tiff_dirread.c
  1000. See merge request libtiff/libtiff!512
  1001. 2023-07-17 headshog <craaaaaachind@gmail.com>
  1002. TIFFReadDirectoryCheckOrder: avoid integer overflow.
  1003. When it occurs, it should be harmless in practice though
  1004. 2023-07-17 Even Rouault <even.rouault@spatialys.com>
  1005. Merge branch 'webp_lossless_exact' into 'master'
  1006. WebP codec: turn exact mode when creating lossless files to avoid altering...
  1007. See merge request libtiff/libtiff!511
  1008. 2023-07-11 Even Rouault <even.rouault@spatialys.com>
  1009. WebP codec: turn exact mode when creating lossless files to avoid altering R,G,B values in areas where alpha=0
  1010. Fixes https://github.com/OSGeo/gdal/issues/8038
  1011. 2023-07-05 Even Rouault <even.rouault@spatialys.com>
  1012. Merge branch 'webp_reg_fix' into 'master'
  1013. WebP decoder: fix error when reading a 3-band blob in a RGBA image
  1014. See merge request libtiff/libtiff!510
  1015. 2023-07-05 Even Rouault <even.rouault@spatialys.com>
  1016. WebP decoder: fix error when reading a 3-band blob in a RGBA image.
  1017. Fixes regression of 350ff161c8a61b6483a1e4689e09cd47dd0dd5f9 (master only)
  1018. 2023-06-26 Even Rouault <even.rouault@spatialys.com>
  1019. Merge branch 'appveyor_fix' into 'master'
  1020. .appveyor.yml: workaround build error
  1021. See merge request libtiff/libtiff!509
  1022. 2023-06-26 Even Rouault <even.rouault@spatialys.com>
  1023. .appveyor.yml: workaround build error.
  1024. 2023-06-26 Even Rouault <even.rouault@spatialys.com>
  1025. Merge branch 'tif_webp_warning_fixes' into 'master'
  1026. tif_webp.c: fix signed vs unsigned comparison warnings (fix previous commit)
  1027. See merge request libtiff/libtiff!508
  1028. 2023-06-26 Even Rouault <even.rouault@spatialys.com>
  1029. tif_webp.c: fix signed vs unsigned comparison warnings (fix previous commit)
  1030. 2023-06-26 Even Rouault <even.rouault@spatialys.com>
  1031. Merge branch 'fix_TransferFunction_writing' into 'master'
  1032. Fix TransferFunction writing of only two transfer functions.
  1033. See merge request libtiff/libtiff!502
  1034. 2023-06-26 Even Rouault <even.rouault@spatialys.com>
  1035. Merge branch 'fix_581_582' into 'master'
  1036. WebP decoder: validate WebP blob width, height, band count against TIFF parameters
  1037. Closes #582 et #581
  1038. See merge request libtiff/libtiff!507
  1039. 2023-06-19 Even Rouault <even.rouault@spatialys.com>
  1040. Merge branch 'warning_cmake_config_file' into 'master'
  1041. v4.5.1 release note: add warning about CMake config file being preview
  1042. See merge request libtiff/libtiff!506
  1043. 2023-06-17 Even Rouault <even.rouault@spatialys.com>
  1044. WebP decoder: validate WebP blob width, height, band count against TIFF parameters
  1045. to avoid use of uninitialized variable, or decoding corrupted content
  1046. without explicit error
  1047. Fixes #581, fixes #582
  1048. 2023-06-15 Even Rouault <even.rouault@spatialys.com>
  1049. v4.5.1 release note: add warning about CMake config file being preview.
  1050. 2023-06-14 Even Rouault <even.rouault@spatialys.com>
  1051. Merge branch 'HOWTO-RELEASE-gitlab-release' into 'master'
  1052. HOWTO-RELEASE: mention creating a gitlab release
  1053. See merge request libtiff/libtiff!505
  1054. 2023-06-14 Even Rouault <even.rouault@spatialys.com>
  1055. HOWTO-RELEASE: mention creating a gitlab release.
  1056. 2023-06-10 Even Rouault <even.rouault@spatialys.com>
  1057. Merge branch 'TIFFOpenWExt_O_RDWR' into 'master'
  1058. TIFFOpenWExt(): mode r+ in the Windows implementation adjusted to that of Linux
  1059. See merge request libtiff/libtiff!504
  1060. 2023-06-10 Even Rouault <even.rouault@spatialys.com>
  1061. TIFFOpenWExt(): mode r+ in the Windows implementation adjusted to that of Linux
  1062. 2023-06-10 Even Rouault <even.rouault@spatialys.com>
  1063. Merge branch 'fix_ossfuzz_59751' into 'master'
  1064. TIFFReadDirectory(): fix crash when reading tag TIFFTAG_EP_BATTERYLEVEL
  1065. See merge request libtiff/libtiff!503
  1066. 2023-06-10 Even Rouault <even.rouault@spatialys.com>
  1067. TIFFReadDirectory(): fix crash when reading tag TIFFTAG_EP_BATTERYLEVEL.
  1068. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=59751
  1069. In 738e0409 (refs #575), we disabled DNG / EP tags, but there was a
  1070. special processing for TIFFTAG_EP_BATTERYLEVEL that must be disabled
  1071. since the tag is no longer defined.
  1072. 2023-06-09 Su_Laus <sulau@freenet.de>
  1073. Fix TransferFunction writing of only two transfer functions. The TIFFWriteDirectoryTagTransferfunction() function writes in some cases only two transfer functions, although only exactly one or exactly three transfer functions are allowed. This then leads to an error when reading. --> TIFFReadDirectory: Warning, Incorrect count for "TransferFunction"; tag ignored.
  1074. This MR corrects the behaviour of TIFFWriteDirectoryTagTransferfunction() accordingly. Furthermore, a possible buffer overflow is avoided.
  1075. 2023-06-09 Even Rouault <even.rouault@spatialys.com>
  1076. Merge branch 'fix_win_build' into 'master'
  1077. Fix Windows build
  1078. Closes #578
  1079. See merge request libtiff/libtiff!501
  1080. 2023-06-09 Even Rouault <even.rouault@spatialys.com>
  1081. cmake/PkgConfig.cmake: avoid CMake error when prefix or suffix is empty.
  1082. Add tif_win32_versioninfo.rc and tif_tools_versioninfo.rc to EXTRA_DIST.
  1083. 2023-06-09 Even Rouault <even.rouault@spatialys.com>
  1084. Merge branch 'fix_coverity_build' into 'master'
  1085. build/gitlab-ci: fix coverity_build()
  1086. See merge request libtiff/libtiff!499
  1087. 2023-06-09 Even Rouault <even.rouault@spatialys.com>
  1088. build/gitlab-ci: fix coverity_build()
  1089. 2023-06-09 Even Rouault <even.rouault@spatialys.com>
  1090. Merge branch 'v4.5.1rc1_preparation' into 'master'
  1091. Prepare release 4.5.1
  1092. See merge request libtiff/libtiff!498
  1093. 2023-06-09 Even Rouault <even.rouault@spatialys.com>
  1094. Prepare for v4.5.1 release.
  1095. Merge remote-tracking branch 'sulaus/Rel_4.5.1_preparation'
  1096. 2023-06-09 Even Rouault <even.rouault@spatialys.com>
  1097. Merge branch 'disable_dng_tags' into 'master'
  1098. tif_dirinfo.c: disable DNG 1.2->1.6 tags
  1099. Closes #575
  1100. See merge request libtiff/libtiff!497
  1101. 2023-06-09 Even Rouault <even.rouault@spatialys.com>
  1102. Merge branch 'fix_577' into 'master'
  1103. CMake related fixes
  1104. Closes #577
  1105. See merge request libtiff/libtiff!496
  1106. 2023-06-09 Even Rouault <even.rouault@spatialys.com>
  1107. libtiff v4.5.1 released
  1108. 2023-06-09 Even Rouault <even.rouault@spatialys.com>
  1109. Merge remote-tracking branch 'sulaus/Rel_4.5.1_preparation'
  1110. 2023-06-09 Even Rouault <even.rouault@spatialys.com>
  1111. Merge branch 'disable_dng_tags' into 'master'
  1112. tif_dirinfo.c: disable DNG 1.2->1.6 tags
  1113. Closes #575
  1114. See merge request libtiff/libtiff!497
  1115. 2023-06-09 Even Rouault <even.rouault@spatialys.com>
  1116. Merge branch 'fix_577' into 'master'
  1117. CMake related fixes
  1118. Closes #577
  1119. See merge request libtiff/libtiff!496
  1120. 2023-06-07 Even Rouault <even.rouault@spatialys.com>
  1121. tif_dirinfo.c: disable DNG 1.2->1.6 tags.
  1122. They were added per b90b20d36d7833f54a1f3014c324f6c21b988006 but it has
  1123. been found in https://gitlab.com/libtiff/libtiff/-/issues/575 that it
  1124. could cause compatibility issues with libtiff users, so this addition
  1125. should be deferred for a feature release (likely 4.6.0) and not a patch one.
  1126. Fixes #575
  1127. 2023-06-06 Timothy Lyanguzov <theta682@gmail.com>
  1128. Apply 1 suggestion(s) to 1 file(s)
  1129. 2023-06-05 Even Rouault <even.rouault@spatialys.com>
  1130. CI: add testing of find_package(Tiff CONFIG)
  1131. CMake: export TiffConfig.cmake and TiffConfigVersion.cmake files.
  1132. libtiff/CMakeLists.txt: fix export of INTERFACE_INCLUDE_DIRECTORIES.
  1133. libtiff/CMakeLists.txt: correctly define TIFF::tiff alias (fixes #577)
  1134. 2023-06-05 Even Rouault <even.rouault@spatialys.com>
  1135. Merge branch 'TIFFField_downgrade_errors_to_warnings' into 'master'
  1136. TIFFFieldWithName() and TIFFFieldWithTag() downgrade errors to warnings.
  1137. See merge request libtiff/libtiff!495
  1138. 2023-05-28 Su_Laus <sulau@freenet.de>
  1139. TIFFFieldWithName() and TIFFFieldWithTag() downgrade errors to warnings. see https://gitlab.com/libtiff/libtiff/-/issues/575#note_1407633888
  1140. 2023-05-25 Even Rouault <even.rouault@spatialys.com>
  1141. Merge branch 'bebuch-master-patch-58347' into 'master'
  1142. check if upstream lzma (xz) config was used and bind to it if so
  1143. See merge request libtiff/libtiff!494
  1144. 2023-05-25 Benjamin Buch <benni.buch@gmail.com>
  1145. check if upstream lzma (xz) config was used and bind to it if so.
  1146. 2023-05-25 Even Rouault <even.rouault@spatialys.com>
  1147. Merge branch 'upstream-zstd-config' into 'master'
  1148. check if upstream zstd config was used and bind to it if so
  1149. See merge request libtiff/libtiff!493
  1150. 2023-05-25 Even Rouault <even.rouault@spatialys.com>
  1151. Merge branch 'cmake_FindDeflate_bugs_see_526' into 'master'
  1152. CMake: FindDeflate several errors fixed (see #526)
  1153. See merge request libtiff/libtiff!491
  1154. 2023-05-24 Su_Laus <sulau@freenet.de>
  1155. CMake: FindDeflate several errors (see #526)
  1156. There are CMake issues if the library is not included in the environment path and only set with CMake -D option.
  1157. - For FindDeflate.cmake, FindJBIG.cmake, FindLERC.cmake, FindWebP.cmake, FindZSTD.cmake:
  1158. Set IMPORTED_LOCATION (without debug or release) if neither <library>_LIBRARY_RELEASE nor <library>_LIBRARY_DEBUG were set.
  1159. - FindDeflate.cmake: Correct code to retrieve library version information from libdeflate.h
  1160. - FindLERC.cmake version string return added.
  1161. 2023-05-24 Benjamin Buch <benni.buch@gmail.com>
  1162. prefer shared over static.
  1163. check if upstream zstd config was used and bind to it if so.
  1164. 2023-05-24 Even Rouault <even.rouault@spatialys.com>
  1165. Merge branch 'master' into 'master'
  1166. make WebP component name compatible with upstream ConfigWebP.cmake
  1167. See merge request libtiff/libtiff!492
  1168. 2023-05-24 Benjamin Buch <benni.buch@gmail.com>
  1169. CMake: make WebP component name compatible with upstream ConfigWebP.cmake
  1170. 2023-05-18 Su_Laus <sulau@freenet.de>
  1171. Prepare release 4.5.1 - Update till 18.05.23 after fix_559_DNG_1.6_passcount_error
  1172. Prepare release 4.5.1.
  1173. 2023-05-18 Even Rouault <even.rouault@spatialys.com>
  1174. Merge branch 'fix_559_DNG_1.6_passcount_error' into 'master'
  1175. Fix #559 DNG 1.6 passcount assertion
  1176. Closes #574 et #559
  1177. See merge request libtiff/libtiff!489
  1178. 2023-05-18 Even Rouault <even.rouault@spatialys.com>
  1179. Merge branch 'fix_557_TagExtender_for_CustomDirectories_not_possible' into 'master'
  1180. manpage: TIFFSetTagExtender() cannot add tags to custom directories. Closes #557.
  1181. Closes #557
  1182. See merge request libtiff/libtiff!490
  1183. 2023-05-18 Even Rouault <even.rouault@spatialys.com>
  1184. Merge branch 'fix_559_DNG_1.6_passcount_error' into 'master'
  1185. Fix #559 DNG 1.6 passcount assertion
  1186. Closes #574 et #559
  1187. See merge request libtiff/libtiff!489
  1188. 2023-05-18 Even Rouault <even.rouault@spatialys.com>
  1189. Merge branch 'fix_557_TagExtender_for_CustomDirectories_not_possible' into 'master'
  1190. manpage: TIFFSetTagExtender() cannot add tags to custom directories. Closes #557.
  1191. Closes #557
  1192. See merge request libtiff/libtiff!490
  1193. 2023-05-17 Su_Laus <sulau@freenet.de>
  1194. Documentation update: TIFFSetTagExtender() cannot add tags to custom directories.
  1195. Closes #557.
  1196. 2023-05-16 Even Rouault <even.rouault@spatialys.com>
  1197. Merge branch 'fix_558' into 'master'
  1198. Hardcode HOST_FILLORDER to FILLORDER_LSB2MSB, and make 'H' flag of TIFFOpen()...
  1199. See merge request libtiff/libtiff!488
  1200. 2023-05-16 Su_Laus <sulau@freenet.de>
  1201. Fix #559 DNG 1.6 passcount assertion.
  1202. Amend DNG tags definition introduced with MR 482:
  1203. - DNG 1.6 tags specified as UTF-8 strings are defined as variable TIFF_BYTE with passcount=TRUE.
  1204. - For all tags with TIFF_SETGET_C32_UINT8 the readcount and writecount were corrected to -3 (TIFF_VARIABLE2).
  1205. Testprogram to write and read all tags defined within LibTIFF is introduced.
  1206. It also checks for valid passcount flag setting for the defined tags but some special tags are excluded from that check.
  1207. Closes #559.
  1208. 2023-05-09 Even Rouault <even.rouault@spatialys.com>
  1209. Hardcode HOST_FILLORDER to FILLORDER_LSB2MSB, and make 'H' flag of TIFFOpen() to warn and an alias of FILLORDER_MSB2LSB
  1210. tif_lerc.c: use WORDS_BIGENDIAN instead of HOST_BIGENDIAN.
  1211. 2023-05-07 Even Rouault <even.rouault@spatialys.com>
  1212. Merge branch 'fix_484_TIFFDirectory_32_64_bit' into 'master'
  1213. Fix 484 TIFFDirectory td_fieldsset uses unsigned long which can be 32 or 64 bits.
  1214. Closes #484
  1215. See merge request libtiff/libtiff!471
  1216. 2023-05-07 Even Rouault <even.rouault@spatialys.com>
  1217. Merge branch 'DNG_1.6_EP_tags' into 'master'
  1218. Add DNG tags up to version 1.6.0.0 and some TIFF/EP tags and update documentation
  1219. See merge request libtiff/libtiff!482
  1220. 2023-05-07 Even Rouault <even.rouault@spatialys.com>
  1221. Merge branch 'issue547' into 'master'
  1222. do not install libtiff-4.pc when tiff-install is reset
  1223. Closes #547
  1224. See merge request libtiff/libtiff!481
  1225. 2023-05-06 Even Rouault <even.rouault@spatialys.com>
  1226. Merge branch 'fix_548' into 'master'
  1227. LZWDecode(): avoid crash when trying to read again from a strip with a...
  1228. Closes #548
  1229. See merge request libtiff/libtiff!484
  1230. 2023-05-06 Even Rouault <even.rouault@spatialys.com>
  1231. Merge branch 'tiffcrop_fix_553_multi-image-errors' into 'master'
  1232. tiffcrop: fix 553 by considering error return of writeSelections()
  1233. Closes #553
  1234. See merge request libtiff/libtiff!485
  1235. 2023-05-06 Even Rouault <even.rouault@spatialys.com>
  1236. Merge branch 'tif_ojpeg_fix-554_FPE' into 'master'
  1237. tif_ojpeg.c fix 554 by checking for division by zero
  1238. Closes #554
  1239. See merge request libtiff/libtiff!486
  1240. 2023-05-06 Su Laus <sulau@freenet.de>
  1241. tif_ojpeg.c fix 554 by checking for division by zero.
  1242. 2023-05-05 Su_Laus <sulau@freenet.de>
  1243. Consider error return of writeSelections(). Fixes #553.
  1244. 2023-04-29 Even Rouault <even.rouault@spatialys.com>
  1245. LZWDecode(): avoid crash when trying to read again from a strip with a missing end-of-information marker (fixes #548)
  1246. 2023-04-25 Su_Laus <sulau@freenet.de>
  1247. Add DNG tags up to version 1.6.0.0 and some TIFF/EP tags and update documentation
  1248. Amend MR !337 'Add support for DNG tags up to version 1.6.0.0 and some TIFF/EP tags' from Sami Liedes:
  1249. - Set most tags to OkToChange=1.
  1250. - Define BATTERYLEVEL tag as ASCII and convert values of rational variant to ASCII.
  1251. - TIFF documentation updated for tags recognized by LibTiff (DNG 1.6 and others).
  1252. - TIFF/EP tags added, which are equivalent to EXIF tags. This addresses part of #418 as well.
  1253. - Definition of tags reformatted (clang-format off) for better readability of tag comments in tiff.h and tif_dirinfo.c
  1254. 2023-04-23 Roman <kosobrodov@fastmail.fm>
  1255. do not install libtiff-4.pc when tiff-install is reset.
  1256. 2023-04-21 Even Rouault <even.rouault@spatialys.com>
  1257. Merge branch 'mymaster1' into 'master'
  1258. fix runtime error: applying zero offset to null pointer
  1259. See merge request libtiff/libtiff!479
  1260. 2023-04-21 xiaoxiaoafeifei <lliangliang2007@163.com>
  1261. countInkNamesString(): fix `UndefinedBehaviorSanitizer`: applying zero offset to null pointer
  1262. 2023-03-26 Even Rouault <even.rouault@spatialys.com>
  1263. Merge branch 'tif_ovrcache_TIFFSetSubDirectory' into 'master'
  1264. tif_ovrcache.c: check TIFFSetSubDirectory() return value (CID 1524573)
  1265. See merge request libtiff/libtiff!478
  1266. 2023-03-26 Even Rouault <even.rouault@spatialys.com>
  1267. tif_ovrcache.c: check TIFFSetSubDirectory() return value (CID 1524573)
  1268. 2023-03-26 Even Rouault <even.rouault@spatialys.com>
  1269. Merge branch 'even_faster_setdirectory_with_IFDlist' into 'master'
  1270. Even faster TIFFSetDirectory() using IFD list.
  1271. See merge request libtiff/libtiff!477
  1272. 2023-03-26 Su Laus <sulau@freenet.de>
  1273. Even faster TIFFSetDirectory() using IFD list.
  1274. 2023-03-12 Even Rouault <even.rouault@spatialys.com>
  1275. Merge branch 'faster-setdirectory_newMR' into 'master'
  1276. Optimize relative seeking with TIFFSetDirectory
  1277. See merge request libtiff/libtiff!474
  1278. 2023-03-12 Su Laus <sulau@freenet.de>
  1279. Optimize relative seeking with TIFFSetDirectory.
  1280. 2023-03-11 Even Rouault <even.rouault@spatialys.com>
  1281. Merge branch 'master' into 'master'
  1282. Fix memory leak in tiffcrop.c
  1283. See merge request libtiff/libtiff!475
  1284. 2023-03-08 zhailiangliang <zhailiangliang@loongson.cn>
  1285. Fix memory leak in tiffcrop.c.
  1286. 2023-02-23 Even Rouault <even.rouault@spatialys.com>
  1287. Merge branch 'skip-thumbnail-test' into 'master'
  1288. test: avoid running tool tests if not built
  1289. Closes #421
  1290. See merge request libtiff/libtiff!334
  1291. 2023-02-22 Sam James <sam@gentoo.org>
  1292. test (cmake): skip script tests if tools aren't built.
  1293. In Gentoo, we avoid building the tools for multilib (32-bit, x86) builds on
  1294. amd64/x86_64 because we only need the library to keep binary applications working.
  1295. This causes a test failure in e.g. tiffcp-thumbnail.sh as the 'thumbnail'
  1296. binary isn't built. Skip it if unavailable.
  1297. Fixes: https://gitlab.com/libtiff/libtiff/-/issues/421
  1298. 2023-02-22 Sam James <sam@gentoo.org>
  1299. test (autotools): skip script tests if tools aren't built.
  1300. In Gentoo, we avoid building the tools for multilib (32-bit, x86) builds on
  1301. amd64/x86_64 because we only need the library to keep binary applications working.
  1302. This causes a test failure in e.g. tiffcp-thumbnail.sh as the 'thumbnail'
  1303. binary isn't built. Skip it if unavailable.
  1304. Fixes: https://gitlab.com/libtiff/libtiff/-/issues/421
  1305. 2023-02-16 Even Rouault <even.rouault@spatialys.com>
  1306. Merge branch 'fix_Unlink_first_directory_0' into 'master'
  1307. Fix TIFFUnlinkDirectory(0) case and unlink of first directory.
  1308. See merge request libtiff/libtiff!460
  1309. 2023-02-16 Even Rouault <even.rouault@spatialys.com>
  1310. Merge branch 'tif_luv_check_NaN_fix_#530' into 'master'
  1311. tif_luv: Check and correct for NaN data in uv_encode().
  1312. Closes #530
  1313. See merge request libtiff/libtiff!473
  1314. 2023-02-16 Su_Laus <sulau@freenet.de>
  1315. tif_luv: Check and correct for NaN data in uv_encode().
  1316. Closes #530
  1317. See merge request !473
  1318. 2023-02-14 Even Rouault <even.rouault@spatialys.com>
  1319. Merge branch 'tiffcrop_dont_reuse_input_buffer_fix_527' into 'master'
  1320. tiffcrop: Do not reuse input buffer for subsequent images. Fix issue 527
  1321. Closes #527
  1322. See merge request libtiff/libtiff!472
  1323. 2023-02-14 Su_Laus <sulau@freenet.de>
  1324. tiffcrop: Do not reuse input buffer for subsequent images. Fix issue 527
  1325. Reuse of read_buff within loadImage() from previous image is quite unsafe, because other functions (like rotateImage() etc.) reallocate that buffer with different size without updating the local prev_readsize value.
  1326. Closes #527
  1327. 2023-02-08 Su_Laus <sulau@freenet.de>
  1328. Fix 484 TIFFDirectory td_fieldsset uses unsigned long which can be 32 or 64 bits.
  1329. Closes #484
  1330. 2023-02-08 Even Rouault <even.rouault@spatialys.com>
  1331. Merge branch 'test_ifd_loop_detection_fix_CoverityScan_ln_55' into 'master'
  1332. test_ifd_loop_detection: fix Coverity Scan issue CID 1520750: Null pointer...
  1333. See merge request libtiff/libtiff!470
  1334. 2023-02-08 Su_Laus <sulau@freenet.de>
  1335. test_ifd_loop_detection: fix Coverity Scan issue CID 1520750: Null pointer dereferences (NULL_RETURNS) line 55.
  1336. 2023-02-06 Even Rouault <even.rouault@spatialys.com>
  1337. Merge branch 'tiffcrop_fix_CoverityScan_line_9676' into 'master'
  1338. Fix Coverity Scan issue CID 1520761: Integer handling issues...
  1339. See merge request libtiff/libtiff!469
  1340. 2023-02-06 Su_Laus <sulau@freenet.de>
  1341. Fix Coverity Scan issue CID 1520761: Integer handling issues (OVERFLOW_BEFORE_WIDEN) tiffcrop.c: 9676 in rotateImage()
  1342. 2023-02-05 Even Rouault <even.rouault@spatialys.com>
  1343. Merge branch 'tiffcrop_R270_fix#492' into 'master'
  1344. tiffcrop: Amend rotateImage() not to toggle the input (main) image width and...
  1345. Closes #519, #518, #499, #495, #494, #493 et #492
  1346. See merge request libtiff/libtiff!465
  1347. 2023-02-05 Su_Laus <sulau@freenet.de>
  1348. tiffcrop: Amend rotateImage() not to toggle the input (main) image width and length parameters when only cropped image sections are rotated. Remove buffptr from region structure because never used.
  1349. Closes #492 #493 #494 #495 #499 #518 #519
  1350. 2023-02-05 Even Rouault <even.rouault@spatialys.com>
  1351. Merge branch 'tiffcrop_correctly_update_buffersize_after_rotate_fix#520' into 'master'
  1352. tiffcrop correctly update buffersize after rotateImage() fix#520
  1353. Closes #520
  1354. See merge request libtiff/libtiff!467
  1355. 2023-02-05 Even Rouault <even.rouault@spatialys.com>
  1356. Merge branch 'tiffcrop_composite_image_assumption_test_fix#496' into 'master'
  1357. tiffcrop: added check for assumption on composite images (fixes #496)
  1358. Closes #501, #500, #498, #497 et #496
  1359. See merge request libtiff/libtiff!466
  1360. 2023-02-05 Su Laus <sulau@freenet.de>
  1361. tiffcrop: added check for assumption on composite images (fixes #496)
  1362. tiffcrop: For composite images with more than one region, the combined_length or combined_width always needs to be equal, respectively. Otherwise, even the first section/region copy action might cause buffer overrun. This is now checked before the first copy action.
  1363. Closes #496, #497, #498, #500, #501.
  1364. 2023-02-04 Su_Laus <sulau@freenet.de>
  1365. tiffcrop correctly update buffersize after rotateImage() fix#520 -- enlarge buffsize and check integer overflow within rotateImage().
  1366. 2023-02-04 Even Rouault <even.rouault@spatialys.com>
  1367. Merge branch 'test_subidf_loop' into 'master'
  1368. test_ifd_loop_detection: Added test to check loops in SubIFDs that are chained.
  1369. See merge request libtiff/libtiff!464
  1370. 2023-02-04 Su Laus <sulau@freenet.de>
  1371. test_ifd_loop_detection: Added test to check loops in SubIFDs that are chained.
  1372. 2023-02-04 Su_Laus <sulau@freenet.de>
  1373. Fix TIFFUnlinkDirectory(0) case and unlink of first directory.
  1374. If directory number 0 is unlinked, then the base offset variables within LibTiff are not updated. As a result, a subsequent TIFFSetDirectory() first goes to the unlinked former directory number 0.
  1375. In addition, the error case for dirn=0 is handled.
  1376. This MR fixes that by updating the base offset variables tif->tif_header.classic.tiff_diroff and tif->tif_header.big.tiff_diroff.
  1377. 2023-02-03 Even Rouault <even.rouault@spatialys.com>
  1378. Merge branch 'TiffClose_NULL_ptr_dereferencing_fix_515' into 'master'
  1379. TIFFClose() avoid NULL pointer dereferencing. fix#515
  1380. Closes #515
  1381. See merge request libtiff/libtiff!468
  1382. 2023-02-03 Su_Laus <sulau@freenet.de>
  1383. TIFFClose() avoid NULL pointer dereferencing. fix#515.
  1384. Closes #515
  1385. tiffcrop correctly update buffersize after rotateImage() fix#520 rotateImage() set up a new buffer and calculates its size individually. Therefore, seg_buffs[] size needs to be updated accordingly. Before this fix, the seg_buffs buffer size was calculated with a different formula than within rotateImage().
  1386. Closes #520.
  1387. 2023-01-25 Even Rouault <even.rouault@spatialys.com>
  1388. Merge branch 'add_windows_DLL_versioninfo' into 'master'
  1389. Add versioninfo resource files for DLL and tools compiled with Windows MSVC and MINGW.
  1390. See merge request libtiff/libtiff!455
  1391. 2023-01-25 Su Laus <sulau@freenet.de>
  1392. Add versioninfo resource files for DLL and tools compiled with Windows MSVC and MINGW.
  1393. 2023-01-22 Even Rouault <even.rouault@spatialys.com>
  1394. Merge branch 'tif_hash_set_order_include' into 'master'
  1395. tif_hash_set.c: include tif_hash_set.h after tif_config.h to let a chance for...
  1396. See merge request libtiff/libtiff!462
  1397. 2023-01-22 Even Rouault <even.rouault@spatialys.com>
  1398. tif_hash_set.c: include tif_hash_set.h after tif_config.h to let a chance for GDAL symbol renaming trick
  1399. 2023-01-22 Even Rouault <even.rouault@spatialys.com>
  1400. Merge branch 'fix_513' into 'master'
  1401. Fax3: fix failure to decode some fax3 images (fixes #513)
  1402. Closes #513
  1403. See merge request libtiff/libtiff!461
  1404. 2023-01-21 Even Rouault <even.rouault@spatialys.com>
  1405. Add test for Fax3 decoding issues (refs #513)
  1406. 2023-01-21 Even Rouault <even.rouault@spatialys.com>
  1407. Merge branch 'tiffcrop_fix_#488' into 'master'
  1408. tiffcrop: Correct simple copy paste error. Fix #488.
  1409. Closes #488
  1410. See merge request libtiff/libtiff!459
  1411. 2023-01-21 Su Laus <sulau@freenet.de>
  1412. tiffcrop: Correct simple copy paste error. Fix #488.
  1413. 2023-01-21 Even Rouault <even.rouault@spatialys.com>
  1414. Fax3: fix failure to decode some fax3 images (fixes #513)
  1415. Patch by @jsummers26
  1416. 2023-01-12 Even Rouault <even.rouault@spatialys.com>
  1417. Merge branch 'tiffmedian_fix_#477' into 'master'
  1418. tiffmedian: avoid zero num_colors, fixes #477
  1419. Closes #477
  1420. See merge request libtiff/libtiff!458
  1421. 2023-01-12 Even Rouault <even.rouault@spatialys.com>
  1422. Merge branch 'fax2ps_fixes_#475' into 'master'
  1423. fax2ps: fixes #475 buffer overflow in qsort function pcompar.
  1424. Closes #475
  1425. See merge request libtiff/libtiff!457
  1426. 2023-01-12 Su_Laus <sulau@freenet.de>
  1427. tiffmedian: avoid zero num_colors, fixes #477.
  1428. fax2ps: fixes #475 buffer overflow in qsort function pcompar.
  1429. 2023-01-09 Even Rouault <even.rouault@spatialys.com>
  1430. Merge branch 'fix_241_tiffset_file_size_limit' into 'master'
  1431. tiffset: get filesize to allocate only the required memory. Fixes issue #241
  1432. Closes #241
  1433. See merge request libtiff/libtiff!451
  1434. 2023-01-09 Su Laus <sulau@freenet.de>
  1435. tiffset: get filesize to allocate only the required memory. Fixes issue #241
  1436. 2023-01-09 Even Rouault <even.rouault@spatialys.com>
  1437. Merge branch '_TIFFCleanupIFDOffsetAndNumberMaps' into 'master'
  1438. Add _TIFFCleanupIFDOffsetAndNumberMaps() and call it from TIFFUnlinkDirectory()
  1439. See merge request libtiff/libtiff!454
  1440. 2023-01-06 Even Rouault <even.rouault@spatialys.com>
  1441. Remove use of tif_dirnumber.
  1442. TIFFSetSubDirectory(): call _TIFFCleanupIFDOffsetAndNumberMaps()
  1443. struct tiff: remove unused tif_dirlistoff.
  1444. TIFFUnlinkDirectory(): reset tif_dirnumber.
  1445. Add _TIFFCleanupIFDOffsetAndNumberMaps() and call it from TIFFUnlinkDirectory()
  1446. 2022-12-29 Even Rouault <even.rouault@spatialys.com>
  1447. Merge branch 'cmake_in_files_formatting_sensitive' into 'master'
  1448. Disable clang-formatting for tif_config.h.cmake.in and tiffconf.h.cmake.in...
  1449. See merge request libtiff/libtiff!452
  1450. 2022-12-28 Su_Laus <sulau@freenet.de>
  1451. Disable clang-formatting for tif_config.h.cmake.in and tiffconf.h.cmake.in because sensitive for CMake scripts. - explanation added
  1452. 2022-12-26 Su_Laus <sulau@freenet.de>
  1453. Disable clang-formatting for tif_config.h.cmake.in and tiffconf.h.cmake.in because sensitive for CMake scripts.
  1454. 2022-12-19 Even Rouault <even.rouault@spatialys.com>
  1455. Merge branch 'manpage_multi-page-TIFF' into 'master'
  1456. manpage: Add multi page TIFF and SubIFDs description and read / write example.
  1457. See merge request libtiff/libtiff!450
  1458. 2022-12-19 Su Laus <sulau@freenet.de>
  1459. manpage: Add multi page TIFF and SubIFDs description and read / write example.
  1460. 2022-12-18 Even Rouault <even.rouault@spatialys.com>
  1461. Merge branch 'TIFFOpen_r+_windows_behaviour' into 'master'
  1462. Behavior of TIFFOpen() mode "r+" in the Windows implementation adjusted to that of Linux.
  1463. See merge request libtiff/libtiff!449
  1464. 2022-12-16 Su_Laus <sulau@freenet.de>
  1465. Behavior of TIFFOpen() mode "r+" in the Windows implementation adjusted to that of Linux.
  1466. 2022-12-15 Even Rouault <even.rouault@spatialys.com>
  1467. Merge branch 'ossfuzz_54343' into 'master'
  1468. TIFFSetDirectory: avoid harmless unsigned-integer-overflow
  1469. See merge request libtiff/libtiff!447
  1470. 2022-12-15 Even Rouault <even.rouault@spatialys.com>
  1471. TIFFSetDirectory: avoid harmless unsigned-integer-overflow.
  1472. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=54343
  1473. 2022-12-14 Even Rouault <even.rouault@spatialys.com>
  1474. Merge branch 'ossfuzz_54311' into 'master'
  1475. TIFFWriteDirectorySec(): avoid harmless unsigned-integer-overflow
  1476. See merge request libtiff/libtiff!446
  1477. 2022-12-14 Even Rouault <even.rouault@spatialys.com>
  1478. TIFFWriteDirectorySec(): avoid harmless unsigned-integer-overflow.
  1479. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=54311
  1480. 2022-12-14 Even Rouault <even.rouault@spatialys.com>
  1481. libtiff v4.5.0rc2 preparation
  1482. 2022-12-14 Su_Laus <sulau@freenet.de>
  1483. tiffinfo: update curdir from uint16_t to tdir_t for more than 64k IFD handling.
  1484. 2022-12-13 Even Rouault <even.rouault@spatialys.com>
  1485. Merge branch 'fix_502' into 'master'
  1486. Make TIFFSetDirectory(tiff, 65534) work again (fixes #502)
  1487. Closes #502
  1488. See merge request libtiff/libtiff!436
  1489. 2022-12-13 Even Rouault <even.rouault@spatialys.com>
  1490. Add tests for IFD loop detection.
  1491. Fix IFD loop detection.
  1492. Use UINT_MAX.
  1493. Make TIFF_MAX_DIR_COUNT a autoconf/CMake setting.
  1494. 2022-12-13 Even Rouault <even.rouault@spatialys.com>
  1495. Merge branch 'build-shared-by-default' into 'master'
  1496. Restore shared libraries by default
  1497. See merge request libtiff/libtiff!437
  1498. 2022-12-13 shaun walbridge <shaun.walbridge@gmail.com>
  1499. CMake: restore shared libraries by default for top-level build.
  1500. 2022-12-12 Even Rouault <even.rouault@spatialys.com>
  1501. Add a TIFF_MAX_DIR_COUNT public #define.
  1502. TIFFCurrentDirectory(), TIFFNumberOfDirectories(), TIFFSetDirectory(), TIFFUnlinkDirectory(): use tdir_t that is now a uint32_t, and raise limit of IFDs to 1048576
  1503. IFD loop checking: use hashmap to avoid quadratic performance.
  1504. Add a hashset/hashmap implementation (ported from GDAL's CPLHashSet)
  1505. Make TIFFSetDirectory(tiff, 65534) work again (fixes #502)
  1506. 2022-12-11 Even Rouault <even.rouault@spatialys.com>
  1507. Merge branch 'do_not_format_tiffvers_h' into 'master'
  1508. Revert formatting of tiffvers.h and add TIFFLIB_MAJOR_VERSION, TIFFLIB_MINOR_VERSION, TIFFLIB_MICRO_VERSION defines
  1509. See merge request libtiff/libtiff!434
  1510. 2022-12-11 Even Rouault <even.rouault@spatialys.com>
  1511. Merge branch 'tiffcrop_exclude_some_comment_from_clang-format' into 'master'
  1512. tiffcrop: Exclude some comments from clang-format
  1513. See merge request libtiff/libtiff!435
  1514. 2022-12-11 Su Laus <sulau@freenet.de>
  1515. tiffcrop: Exclude some comments from clang-format.
  1516. 2022-12-11 Even Rouault <even.rouault@spatialys.com>
  1517. tiffvers.h.in: add clang-format off/on.
  1518. 2022-12-10 Even Rouault <even.rouault@spatialys.com>
  1519. tiffvers.h: add TIFFLIB_MAJOR_VERSION, TIFFLIB_MINOR_VERSION, TIFFLIB_MICRO_VERSION defines
  1520. Also add a TIFFLIB_AT_LEAST() macro
  1521. tiffvers.h: revert formatting.
  1522. Exclude reformatting of tiffvers.h which breaks version detection for FindTIFF.cmake
  1523. 2022-12-09 Even Rouault <even.rouault@spatialys.com>
  1524. Merge branch 'release_4_5_0' into 'master'
  1525. Prepare v4.5.0 release
  1526. See merge request libtiff/libtiff!433
  1527. 2022-12-09 Even Rouault <even.rouault@spatialys.com>
  1528. libtiff v4.5.0rc1 preparation
  1529. 2022-12-08 Even Rouault <even.rouault@spatialys.com>
  1530. Merge branch 'reformat' into 'master'
  1531. Whole code-base reformatting
  1532. See merge request libtiff/libtiff!431
  1533. 2022-12-08 Even Rouault <even.rouault@spatialys.com>
  1534. Add .git-blame-ignore-revs.
  1535. tiffcrop: remove version_id and rev_date.
  1536. 2022-12-08 pre-commit run by Even Rouault <even.rouault-bot@spatialys.com>
  1537. Reformatting in all other directories using 'pre-commit run'
  1538. Reformatting in test/ using 'pre-commit run'
  1539. Reformatting in tools/ using 'pre-commit run'
  1540. Reformatting in libtiff/ using 'pre-commit run'
  1541. 2022-12-08 Even Rouault <even.rouault@spatialys.com>
  1542. Add .clang-format, .pre-commit-config.yaml and CONTRIBUTING.md.
  1543. Remove vim/emacs formatting footers.
  1544. 2022-11-29 Even Rouault <even.rouault@spatialys.com>
  1545. Merge branch 'fix_489' into 'master'
  1546. TIFFWriteRawStrip(): restore capabilities to append data in the current strip (fixes #489)
  1547. Closes #489
  1548. See merge request libtiff/libtiff!430
  1549. 2022-11-29 Even Rouault <even.rouault@spatialys.com>
  1550. Add test case for scenario of issue #489.
  1551. TIFFWriteRawStrip(): restore capabilities to append data in the current strip (fixes #489)
  1552. This fixes a regression of libtiff 4.4.0
  1553. 2022-11-29 Even Rouault <even.rouault@spatialys.com>
  1554. Merge branch 'manpage_re-entrant_error_handler' into 'master'
  1555. manpage update for re-entrant error handler TIFFErrorExtR(), TIFFOpenExt() and...
  1556. See merge request libtiff/libtiff!427
  1557. 2022-11-29 Su Laus <sulau@freenet.de>
  1558. manpage update for re-entrant error handler TIFFErrorExtR(), TIFFOpenExt() and...
  1559. 2022-11-27 Even Rouault <even.rouault@spatialys.com>
  1560. Merge branch 'tiffcrop_fix_#169' into 'master'
  1561. tiffcrop: Add check if (bps != 1) in writeSingleSection() for...
  1562. Closes #169
  1563. See merge request libtiff/libtiff!429
  1564. 2022-11-27 Su Laus <sulau@freenet.de>
  1565. tiffcrop: Add check if (bps != 1) in writeSingleSection() for...
  1566. 2022-11-26 Even Rouault <even.rouault@spatialys.com>
  1567. Merge branch 'TIFFErrorExtR_fix_missing_calls' into 'master'
  1568. TIFFErrorExt() was not replaced with TIFFErrorExtR() everywhere in libtiff....
  1569. See merge request libtiff/libtiff!428
  1570. 2022-11-26 Su Laus <sulau@freenet.de>
  1571. TIFFErrorExt() was not replaced with TIFFErrorExtR() everywhere in libtiff....
  1572. 2022-11-25 Even Rouault <even.rouault@spatialys.com>
  1573. Merge branch 'tif_jpeg_build_fix' into 'master'
  1574. tif_jpeg.c: fix compilation with MSVC (fixes commit 0fd1a81d3547acb8f5be50bbbc3e44bde01c014b)
  1575. See merge request libtiff/libtiff!426
  1576. 2022-11-25 Even Rouault <even.rouault@spatialys.com>
  1577. tif_jpeg.c: fix compilation with MSVC (fixes commit 0fd1a81d3547acb8f5be50bbbc3e44bde01c014b)
  1578. 2022-11-25 Even Rouault <even.rouault@spatialys.com>
  1579. Merge branch 'fix_0fd1a81d3547acb8f5be50bbbc3e44bde01c014b' into 'master'
  1580. JPEGEncode(): fix wrong pointer data type with libjpeg-turbo 2.2dev in 12-bit mode
  1581. See merge request libtiff/libtiff!425
  1582. 2022-11-25 Even Rouault <even.rouault@spatialys.com>
  1583. JPEGEncode(): fix wrong pointer data type with libjpeg-turbo 2.2dev in 12-bit mode
  1584. (fixes commit 0fd1a81d3547acb8f5be50bbbc3e44bde01c014b)
  1585. 2022-11-25 Even Rouault <even.rouault@spatialys.com>
  1586. Merge branch 'libjpegturbo_dual' into 'master'
  1587. Add support for libjpeg-turbo 2.2-dev 8/12 bit dual mode
  1588. See merge request libtiff/libtiff!422
  1589. 2022-11-25 Even Rouault <even.rouault@spatialys.com>
  1590. Add support for libjpeg-turbo 2.2-dev 8/12 bit dual mode.
  1591. 2022-11-23 Even Rouault <even.rouault@spatialys.com>
  1592. Merge branch 'windows-fix' into 'master'
  1593. libtiff: Fix TIFFOpen* for the Windows platform in tif_unix.c
  1594. See merge request libtiff/libtiff!424
  1595. 2022-11-23 Francois Bleibel <fbleibel@gmail.com>
  1596. libtiff: Fix TIFFOpen* for the Windows platform in tif_unix.c.
  1597. I'm not sure where this change was made, but it must have been in a recent update. TIFFOpenWEx is now TIFFOpenWExt, and _TIFFgetMode takes additional arguments.
  1598. Verified: Tested libtiff on a local Windows build.
  1599. 2022-11-23 Even Rouault <even.rouault@spatialys.com>
  1600. Merge branch 'tiffcrop_signed_vs_unsigned' into 'master'
  1601. tiffcrop.c: fix warning about signed vs unsigned comparison
  1602. See merge request libtiff/libtiff!423
  1603. 2022-11-23 Even Rouault <even.rouault@spatialys.com>
  1604. tiffcrop.c: fix warning about signed vs unsigned comparison.
  1605. 2022-11-23 Even Rouault <even.rouault@spatialys.com>
  1606. Merge branch 'TIFFClientOpenExt_warning_fix' into 'master'
  1607. TIFFClientOpenExt(): fix warning on 32-bit platforms (master only)
  1608. See merge request libtiff/libtiff!421
  1609. 2022-11-23 Even Rouault <even.rouault@spatialys.com>
  1610. TIFFClientOpenExt(): fix warning on 32-bit platforms (master only)
  1611. 2022-11-23 Even Rouault <even.rouault@spatialys.com>
  1612. Merge branch 'tiffcp_TIFFOpenOptionsFree_memleak_fix' into 'master'
  1613. tiffcp: fix leak of TIFFOpenOptionsAlloc() introduced in latest commit (master only)
  1614. See merge request libtiff/libtiff!420
  1615. 2022-11-23 Even Rouault <even.rouault@spatialys.com>
  1616. tiffcp: fix leak of TIFFOpenOptionsAlloc() introduced in latest commit (master only)
  1617. Fixes Coverity CID 1517032
  1618. 2022-11-23 Even Rouault <even.rouault@spatialys.com>
  1619. Merge branch 'TIFFOpenOptionsSetMaxSingleMemAlloc' into 'master'
  1620. Add TIFFOpenOptionsSetMaxSingleMemAlloc() to define a limit in bytes for a single memory allocation done by libtiff
  1621. See merge request libtiff/libtiff!419
  1622. 2022-11-23 Even Rouault <even.rouault@spatialys.com>
  1623. Emit explicit error message when tif_max_single_mem_alloc is exceeded.
  1624. test_open_options: test TIFFOpenOptionsSetMaxSingleMemAlloc()
  1625. Rename test_error_handlers to test_open_options.
  1626. tiffinfo, tiffcp, tiffcrop, tiffsplit, tiff2rgba, tiff2ps: use TIFFOpenOptionsSetMaxSingleMemAlloc()
  1627. Convert uses of _TIFFmalloc/realloc/calloc/free to the Ext functions.
  1628. 2022-11-22 Even Rouault <even.rouault@spatialys.com>
  1629. Add TIFFOpenOptionsSetMaxSingleMemAlloc()
  1630. to define a limit in bytes for a single memory allocation done by libtiff.
  1631. Also add internal functions used in replacement of the non Ext ones:
  1632. void* _TIFFmallocExt(TIFF* tif, tmsize_t s);
  1633. void* _TIFFcallocExt(TIFF* tif, tmsize_t nmemb, tmsize_t siz);
  1634. void* _TIFFreallocExt(TIFF* tif, void* p, tmsize_t s);
  1635. void _TIFFfreeExt(TIFF* tif, void* p);
  1636. 2022-11-22 Even Rouault <even.rouault@spatialys.com>
  1637. Merge branch 'TIFFOpenEx' into 'master'
  1638. Add TIFFOpenExt(), TIFFOpenWExt() and TIFFFdOpenExt() with re-entrant error handlers
  1639. See merge request libtiff/libtiff!413
  1640. 2022-11-21 Even Rouault <even.rouault@spatialys.com>
  1641. Remove TIFFSetErrorHandlerExtR() and TIFFSetWarningHandlerExtR() that were temporarily added in master
  1642. Add a _TIFFErrorEarly() function to be able to use the re-entrant error handler, even before TIFF* is valid
  1643. Rework TIFFOpenExt() and similar to use an opaque TIFFOpenOptions* opts argument, with alloc, free and setters
  1644. Document TIFFOpenExt, TIFFOpenWExt, TIFFFdOpenExt, TIFFClientOpenExt, TIFFSetErrorHandlerExtR, TIFFSetWarningHandlerExtR
  1645. 2022-11-21 Even Rouault <even.rouault@spatialys.com>
  1646. Add TIFFOpenExt(), TIFFOpenWExt() and TIFFFdOpenExt() with re-entrant error handlers
  1647. Rename TIFFClientOpenEx() to TIFFClientOpenExt()
  1648. Rework signature of the re-entrant error handlers and of
  1649. TIFFSetWarningHandlerExt() and TIFFSetErrorHandlerExt()
  1650. Use structures that can be extended as extra argument.
  1651. Leverages and amends https://gitlab.com/libtiff/libtiff/-/merge_requests/409
  1652. 2022-11-21 Even Rouault <even.rouault@spatialys.com>
  1653. Merge branch 'manpage_fix485_file-descriptor_clientdata' into 'master'
  1654. manpage: Correct description of file handle/descriptors tif_fd and tif_clientdata. Closes #485.
  1655. Closes #485
  1656. See merge request libtiff/libtiff!418
  1657. 2022-11-21 Su Laus <sulau@freenet.de>
  1658. manpage: Correct description of file handle/descriptors tif_fd and tif_clientdata. Closes #485.
  1659. 2022-11-20 Even Rouault <even.rouault@spatialys.com>
  1660. Merge branch 'manpage_fix440_fix28_TIFFOpen_SubIFD_update' into 'master'
  1661. manpage: fix28, fix440, update TIFFOpen and SubIFD
  1662. Closes #440 et #28
  1663. See merge request libtiff/libtiff!417
  1664. 2022-11-20 Su Laus <sulau@freenet.de>
  1665. manpage: fix28, fix440, update TIFFOpen and SubIFD.
  1666. 2022-11-17 Even Rouault <even.rouault@spatialys.com>
  1667. Merge branch 'cmake_tiff_install_warning' into 'master'
  1668. CMakeLists.txt: fix warning with -Wdev
  1669. See merge request libtiff/libtiff!416
  1670. 2022-11-13 Even Rouault <even.rouault@spatialys.com>
  1671. CMakeLists.txt: fix warning with -Wdev.
  1672. ```
  1673. CMake Warning (dev) at CMakeLists.txt:62 (option):
  1674. Policy CMP0077 is not set: option() honors normal variables. Run "cmake
  1675. --help-policy CMP0077" for policy details. Use the cmake_policy command to
  1676. set the policy and suppress this warning.
  1677. For compatibility with older versions of CMake, option is clearing the
  1678. normal variable 'tiff-install'.
  1679. This warning is for project developers. Use -Wno-dev to suppress it.
  1680. ```
  1681. 2022-11-12 Even Rouault <even.rouault@spatialys.com>
  1682. Merge branch 'fix_479' into 'master'
  1683. _TIFFReadEncodedTileAndAllocBuffer(): avoid excessive memory allocation on...
  1684. See merge request libtiff/libtiff!412
  1685. 2022-11-12 Even Rouault <even.rouault@spatialys.com>
  1686. Merge branch 'typo_fix' into 'master'
  1687. tif_dirread.c: fix typo in comment
  1688. See merge request libtiff/libtiff!414
  1689. 2022-11-12 Even Rouault <even.rouault@spatialys.com>
  1690. tif_dirread.c: fix typo in comment.
  1691. 2022-11-11 Even Rouault <even.rouault@spatialys.com>
  1692. _TIFFReadEncodedTileAndAllocBuffer(): avoid excessive memory allocation on broken files (fixes #479)
  1693. 2022-11-10 Even Rouault <even.rouault@spatialys.com>
  1694. Merge branch 'bugfix/tiff2pdf-stdout' into 'master'
  1695. tiff2pdf Don't try to seek into stdout.
  1696. See merge request libtiff/libtiff!367
  1697. 2022-11-10 Claus-Justus Heine <himself@claus-justus-heine.de>
  1698. tiff2pdf: Don't try to seek into stdout.
  1699. Fixes #441
  1700. 2022-11-08 Even Rouault <even.rouault@spatialys.com>
  1701. Merge branch 'fix_coverity_1516759' into 'master'
  1702. TIFFErrorExtR(): fix Dereference after null check (CID 1516759)
  1703. See merge request libtiff/libtiff!411
  1704. 2022-11-08 Even Rouault <even.rouault@spatialys.com>
  1705. Merge branch 'fix_ossfuzz_53137' into 'master'
  1706. TIFFReadRGBATileExt(): fix (unsigned) integer overflow on strips/tiles > 2 GB
  1707. See merge request libtiff/libtiff!410
  1708. 2022-11-08 Even Rouault <even.rouault@spatialys.com>
  1709. TIFFErrorExtR(): fix Dereference after null check (CID 1516759)
  1710. 2022-11-08 Even Rouault <even.rouault@spatialys.com>
  1711. Merge branch 'no_sprintf' into 'master'
  1712. Replace sprintf calls with snprintf
  1713. See merge request libtiff/libtiff!408
  1714. 2022-11-08 Mark Mentovai <mark@chromium.org>
  1715. Replace sprintf calls with snprintf.
  1716. This makes it possible to build libtiff without warnings using the macOS
  1717. 13 SDK. Calls to sprintf are replaced with snprintf, passing appropriate
  1718. buffer sizes.
  1719. It doesn’t appear that any of the changed uses of sprintf were actually
  1720. unsafe, so no behavior change is expected aside from SDK compatibility.
  1721. The macOS 13 SDK deprecates sprintf as it’s difficult to use safely. The
  1722. deprecation warning message is visible when building C++, but it is not
  1723. normally visible when building plain C code due to a quirk in how
  1724. sprintf is declared in the SDK. However, the deprecation message is
  1725. visible when building plain C under Address Sanitizer
  1726. (-fsanitize=address). This discrepancy was discovered at
  1727. https://crbug.com/1381706 and reported to Apple with a copy at
  1728. https://openradar.appspot.com/FB11761475.
  1729. The macOS 13 SDK is packaged in Xcode 14.1, released on 2022-11-01. This
  1730. also affects the iOS 16 SDK and other 2022-era Apple OS SDKs packaged in
  1731. Xcode 14.0, released on 2022-09-12.
  1732. libtiff is visible to the Chromium build via PDFium, and this change is
  1733. needed to allow Chromium to move forward to the macOS 13 SDK.
  1734. This change is limited to the libtiff directory. Other uses of sprintf
  1735. were found in contrib, test, and tools.
  1736. 2022-11-08 Even Rouault <even.rouault@spatialys.com>
  1737. Merge branch 'reentrant' into 'master'
  1738. Add reentrant error functions
  1739. See merge request libtiff/libtiff!409
  1740. 2022-11-08 Even Rouault <even.rouault@spatialys.com>
  1741. TIFFReadRGBATileExt(): fix (unsigned) integer overflow on strips/tiles > 2 GB
  1742. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=53137
  1743. 2022-11-08 Laramie Leavitt <lar@google.com>
  1744. Add reentrant error functions.
  1745. Prior to this change, libtiff relied on global error handlers,
  1746. which is problematic when libtiff used by multiple independent
  1747. libraries from within the same process, as they may unwittingly
  1748. clobber the error handling, introduce race conditions when setting
  1749. handlers, or otherwise have unintended side effects.
  1750. This change adds error handlers to the TIFF struct, which are
  1751. used preferentially when available. The error handlers are invoked
  1752. when the re-entrant error functions are called:
  1753. void TIFFErrorExtR(TIFF*, const char* module, const char* fmt, ...)
  1754. void TIFFWarningExtR(TIFF*, const char* module, const char* fmt, ...)
  1755. The handlers have a similar signature to the existing extended
  1756. handlers, additionally returning an int:
  1757. int TIFFErrorHandlerExtR(thandle_t, const char*, const char*, va_list)
  1758. thandle_t is the userdata passed to TIFFOpen
  1759. When the handler returns 1, the global handlers are not called.
  1760. Custom error/warning handlers may be installed on a per-file
  1761. basis by calling the Set functions:
  1762. TIFF* tif = TIFFOpen(...);
  1763. TIFFSetErrorHandlerExtR(tif, MyErrorHandler);
  1764. TIFFSetWarningHandlerExtR(tif, MyWarningHandler);
  1765. Additionally, the callsites to TIFFErrorExt and TIFFWarningExt
  1766. have been updated to call the reentrant versions.
  1767. 2022-11-08 Even Rouault <even.rouault@spatialys.com>
  1768. Merge branch 'tiffcrop_fix_CoverityScan_tmsize_issue' into 'master'
  1769. tiffcrop: should fix some Coverity Scan issues OVERFLOW_BEFORE_WIDEN
  1770. See merge request libtiff/libtiff!403
  1771. 2022-11-08 Su Laus <sulau@freenet.de>
  1772. tiffcrop: should fix some Coverity Scan issues OVERFLOW_BEFORE_WIDEN.
  1773. 2022-11-02 Even Rouault <even.rouault@spatialys.com>
  1774. Merge branch 'typo_fix' into 'master'
  1775. tif_dirread.c: fix typo in comment
  1776. See merge request libtiff/libtiff!407
  1777. 2022-11-02 Even Rouault <even.rouault@spatialys.com>
  1778. tif_dirread.c: fix typo in comment.
  1779. 2022-10-23 Even Rouault <even.rouault@spatialys.com>
  1780. Merge branch 'tiffcrop_formatting_fix' into 'master'
  1781. tiffcrop: add casts in TIFFError() to fix compiler warnings
  1782. See merge request libtiff/libtiff!406
  1783. 2022-10-23 Even Rouault <even.rouault@spatialys.com>
  1784. Merge branch 'fix_482' into 'master'
  1785. CMake: correctly set default value of 'lzma' option when liblzma is detected (fixes #482)
  1786. Closes #482
  1787. See merge request libtiff/libtiff!404
  1788. 2022-10-23 Even Rouault <even.rouault@spatialys.com>
  1789. tiffcrop: add casts in TIFFError() to fix compiler warnings.
  1790. CMake: correctly set default value of 'lzma' option when liblzma is detected (fixes #482)
  1791. 2022-10-20 Even Rouault <even.rouault@spatialys.com>
  1792. Merge branch 'fix_480' into 'master'
  1793. Fix incorrect printf() formatters introduced in recent commits (fixes #480)
  1794. Closes #480
  1795. See merge request libtiff/libtiff!401
  1796. 2022-10-19 Even Rouault <even.rouault@spatialys.com>
  1797. Fix incorrect printf() formatters introduced in recent commits (fixes #480)
  1798. 2022-10-13 Even Rouault <even.rouault@spatialys.com>
  1799. Merge branch 'CLIPPATH_tags_corrected' into 'master'
  1800. CLIPPATH tags defined twice but differently and also wrongly (#439) - corrected
  1801. Closes #439
  1802. See merge request libtiff/libtiff!366
  1803. 2022-10-13 Even Rouault <even.rouault@spatialys.com>
  1804. Merge branch 'FIELD_IGNORE_warning-messages' into 'master'
  1805. Warning messages for FIELD_IGNORE tags for writing and for TIFF_SETGET_UNDEFINED for reading added. (#438)
  1806. Closes #438
  1807. See merge request libtiff/libtiff!365
  1808. 2022-10-13 Su Laus <sulau@freenet.de>
  1809. Warning messages for FIELD_IGNORE tags for writing and for TIFF_SETGET_UNDEFINED for reading added. (#438)
  1810. 2022-10-13 Even Rouault <even.rouault@spatialys.com>
  1811. Merge branch 'tag-def_COMPRESSION_corrected' into 'master'
  1812. tif_dirinfo.c TIFFTAG_COMPRESSION and _BITSPERSAMPLE definition corrected
  1813. See merge request libtiff/libtiff!364
  1814. 2022-10-13 Even Rouault <even.rouault@spatialys.com>
  1815. Merge branch 'fix_getopt_included_twice' into 'master'
  1816. Fix including module getopt.c twice with CMake and HAVE_GETOPT=false
  1817. See merge request libtiff/libtiff!381
  1818. 2022-10-13 Even Rouault <even.rouault@spatialys.com>
  1819. Merge branch 'tiffcrop_CoverityScan_fix_PRINTF_ARGS' into 'master'
  1820. tiffcrop: fix Coverity Scan issues about PRINTF_ARGS.
  1821. See merge request libtiff/libtiff!400
  1822. 2022-10-13 Su_Laus <sulau@freenet.de>
  1823. tiffcrop fix Coverity Scan issues about PRINTF_ARGS.
  1824. 2022-10-13 Even Rouault <even.rouault@spatialys.com>
  1825. Merge branch 'tiffcrop_fix_#450_too-many-mode-options' into 'master'
  1826. tiffcrop: fix #450 too many 'mode' options on command line.
  1827. Closes #470 et #450
  1828. See merge request libtiff/libtiff!384
  1829. 2022-10-13 Su Laus <sulau@freenet.de>
  1830. tiffcrop: fix #450 too many 'mode' options on command line.
  1831. 2022-10-13 Even Rouault <even.rouault@spatialys.com>
  1832. Merge branch 'tiffcrop_fix_#435' into 'master'
  1833. tiffcrop subroutines require a larger buffer (fixes #271, #381, #386, #388, #389, #435)
  1834. Closes #465, #464, #435, #389, #388, #386, #381 et #271
  1835. See merge request libtiff/libtiff!382
  1836. 2022-10-13 Su Laus <sulau@freenet.de>
  1837. tiffcrop subroutines require a larger buffer (fixes #271, #381, #386, #388, #389, #435)
  1838. 2022-10-12 Even Rouault <even.rouault@spatialys.com>
  1839. Merge branch 'InkNames_NumberOfInks_handling_revised' into 'master'
  1840. Revised handling of TIFFTAG_INKNAMES and related TIFFTAG_NUMBEROFINKS value (fixes #149, #150, #152, #168, #250, #269, #398 and #456)
  1841. Closes #474, #463, #387, #456, #398, #269, #250, #168, #152, #150 et #149
  1842. See merge request libtiff/libtiff!385
  1843. 2022-10-12 Even Rouault <even.rouault@spatialys.com>
  1844. Merge branch 'tiffcrop_fix_#411_#413' into 'master'
  1845. tiffcrop: disable incompatibility of -Z, -X, -Y, -z options with any PAGE_MODE_x option (fixes #411, #413 and #426)
  1846. Closes #426, #413 et #411
  1847. See merge request libtiff/libtiff!383
  1848. 2022-10-10 Even Rouault <even.rouault@spatialys.com>
  1849. Merge branch 'TIFFAdvanceDirectory_mapped_uio' into 'master'
  1850. TIFFAdvanceDirectory(): fix unsigned-integer-overflow in mapped case
  1851. See merge request libtiff/libtiff!398
  1852. 2022-10-10 Even Rouault <even.rouault@spatialys.com>
  1853. TIFFAdvanceDirectory(): fix unsigned-integer-overflow in mapped case.
  1854. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=52309
  1855. 2022-10-08 Even Rouault <even.rouault@spatialys.com>
  1856. Merge branch 'tiffinfo_parse_SubIFDs' into 'master'
  1857. tiffinfo: Updated to parse through SubIFDs and show their tags.
  1858. See merge request libtiff/libtiff!396
  1859. 2022-10-08 Su Laus <sulau@freenet.de>
  1860. tiffinfo: Updated to parse through SubIFDs and show their tags.
  1861. 2022-10-07 Roger Leigh <rleigh@codelibre.net>
  1862. Merge branch 'master' into 'master'
  1863. Moved linking of CMath::CMath into CMath_LIBRARY check
  1864. See merge request libtiff/libtiff!397
  1865. 2022-10-07 Frei Herr <herr.frei@googlemail.com>
  1866. Moved linking of CMath::CMath into CMath_LIBRARY check.
  1867. 2022-10-06 Even Rouault <even.rouault@spatialys.com>
  1868. Merge branch 'rational_precision2double_coverity-fix' into 'master'
  1869. rational_precision2double.c: Fix issue from Coverity Scan.
  1870. See merge request libtiff/libtiff!395
  1871. 2022-10-06 Su_Laus <sulau@freenet.de>
  1872. rational_precision2double.c: Fix issue from Coverity Scan.
  1873. Fix including module getopt.c twice with CMake and HAVE_GETOPT=false.
  1874. The "make-files" for the tools- and test- programmes include the module getopt.c once directly as additional source and then again by including port.lib.
  1875. This can be avoided by including getopt.c as source in port.lib within port\CMakeLists.txt not with PUBLIC but with PRIVATE.
  1876. 2022-10-06 Even Rouault <even.rouault@spatialys.com>
  1877. Merge branch 'fix-455_Improved-IFD-loop-handling' into 'master'
  1878. Improved IFD-Loop Handling (fixes #455)
  1879. Closes #455
  1880. See merge request libtiff/libtiff!386
  1881. 2022-10-06 Su Laus <sulau@freenet.de>
  1882. Improved IFD-Loop Handling (fixes #455)
  1883. IFD infinite looping was not fixed by MR 20 (see #455).
  1884. An improved IFD loop handling is proposed.
  1885. Basic approach:
  1886. - The order in the entire chain must be checked, and not only whether an offset has already been read once.
  1887. - To do this, pairs of directory number and offset are stored and checked.
  1888. - The offset of a directory number can change.
  1889. - TIFFAdvanceDirectory() must also perform an IFD loop check.
  1890. - TIFFCheckDirOffset() is replaced by _TIFFCheckDirNumberAndOffset().
  1891. Rules for the check:
  1892. - If an offset is already in the list, it must have the same IFD number. Otherwise it is an IDF loop.
  1893. - If the offset is not in the list and the IFD number is greater than there are list entries, a new list entry is added.
  1894. - Otherwise, the offset of the IFD number is updated.
  1895. Reference is also made to old bugzilla bug 2772 and MR 20, which did not solve the general issue.
  1896. This MR closes #455
  1897. 2022-10-05 Roger Leigh <rleigh@codelibre.net>
  1898. Merge branch 'fix-cmake-subproject' into 'master'
  1899. Fix CMake build to be compatible with FetchContent
  1900. See merge request libtiff/libtiff!394
  1901. 2022-10-04 Timothy Lyanguzov <theta682@gmail.com>
  1902. Apply 9 suggestion(s) to 3 file(s)
  1903. 2022-10-04 Jeremy Maitin-Shepard <jbms@google.com>
  1904. Fix CMake build to be compatible with FetchContent.
  1905. Recent versions of CMake have improved support for including
  1906. dependencies, using the FetchContent module, which allows a dependency
  1907. to be imported as a subproject and then later found automatically by
  1908. calls to `find_package`.
  1909. This change makes libtiff's CMake better behaved when used as a
  1910. sub-project:
  1911. - CMake has a single global namespace for all target names in all
  1912. sub-projects. This commit renames the following CMake targets:
  1913. - port -> tiff_port
  1914. - mkg3states -> tiff_mkg3states
  1915. - faxtable -> tiff_faxtable
  1916. - release -> tiff_release
  1917. - When building TIFF as a sub-project, it is not normally useful to
  1918. create install rules for its targets. This commit adds a
  1919. `tiff-install` option that controls whether the install rules are
  1920. added and defaults to OFF when libtiff is included as a sub-project.
  1921. - Previously, libtiff set `BUILD_SHARED_LIBS` to ON by default. With
  1922. this commit, that default is only set if libtiff is the top-level
  1923. project.
  1924. - When using `find_package(TIFF)`, the targets `TIFF::TIFF` and
  1925. `TIFF::CXX` are defined. This commit makes libtiff itself define
  1926. those targets as aliases, to allow other cmake projects to use
  1927. either `find_package` or `FetchContent` interchangeably.
  1928. - Adds ZSTD_HAVE_DECOMPRESS_STREAM variable which may be set to bypass
  1929. `check_symbol_exists` call. Fixes
  1930. https://gitlab.com/libtiff/libtiff/-/issues/472.
  1931. 2022-09-27 Even Rouault <even.rouault@spatialys.com>
  1932. Merge branch 'getimage_overflow' into 'master'
  1933. Update getimage to support reading large raster images
  1934. See merge request libtiff/libtiff!389
  1935. 2022-09-26 Even Rouault <even.rouault@spatialys.com>
  1936. Merge branch 'MinGW-warnings_ipctutil' into 'master'
  1937. Fix #458: MinGW Windows 64: warning because 'long' is a 32 bits type in...
  1938. Closes #458
  1939. See merge request libtiff/libtiff!391
  1940. 2022-09-26 Su Laus <sulau@freenet.de>
  1941. Fix #458: MinGW Windows 64: warning because 'long' is a 32 bits type in...
  1942. 2022-09-16 Eric Siegel <siegel.eric@gmail.com>
  1943. Update getimage to support large raster images.
  1944. 2022-09-08 Even Rouault <even.rouault@spatialys.com>
  1945. Merge branch 'typo_fix' into 'master'
  1946. tif_lzw.c: fix typo in code comment
  1947. See merge request libtiff/libtiff!387
  1948. 2022-09-08 Even Rouault <even.rouault@spatialys.com>
  1949. tif_lzw.c: fix typo in code comment.
  1950. 2022-08-30 Su_Laus <sulau@freenet.de>
  1951. Revised handling of TIFFTAG_INKNAMES and related TIFFTAG_NUMBEROFINKS value
  1952. In order to solve the buffer overflow issues related to TIFFTAG_INKNAMES and related TIFFTAG_NUMBEROFINKS value, a revised handling of those tags within LibTiff is proposed:
  1953. Behaviour for writing:
  1954. `NumberOfInks` MUST fit to the number of inks in the `InkNames` string.
  1955. `NumberOfInks` is automatically set when `InkNames` is set.
  1956. If `NumberOfInks` is different to the number of inks within `InkNames` string, that will be corrected and a warning is issued.
  1957. If `NumberOfInks` is not equal to samplesperpixel only a warning will be issued.
  1958. Behaviour for reading:
  1959. When reading `InkNames` from a TIFF file, the `NumberOfInks` will be set automatically to the number of inks in `InkNames` string.
  1960. If `NumberOfInks` is different to the number of inks within `InkNames` string, that will be corrected and a warning is issued.
  1961. If `NumberOfInks` is not equal to samplesperpixel only a warning will be issued.
  1962. This allows the safe use of the NumberOfInks value to read out the InkNames without buffer overflow
  1963. This MR will close the following issues: #149, #150, #152, #168 (to be checked), #250, #269, #398 and #456.
  1964. It also fixes the old bug at http://bugzilla.maptools.org/show_bug.cgi?id=2599, for which the limitation of `NumberOfInks = SPP` was introduced, which is in my opinion not necessary and does not solve the general issue.
  1965. 2022-08-25 Su_Laus <sulau@freenet.de>
  1966. tiffcrop: disable incompatibility of -Z, -X, -Y, -z options with any PAGE_MODE_x option (fixes #411 and #413)
  1967. tiffcrop does not support –Z, -z, -X and –Y options together with any other PAGE_MODE_x options like -H, -V, -P, -J, -K or –S.
  1968. Code analysis:
  1969. With the options –Z, -z, the crop.selections are set to a value > 0. Within main(), this triggers the call of processCropSelections(), which copies the sections from the read_buff into seg_buffs[].
  1970. In the following code in main(), the only supported step, where that seg_buffs are further handled are within an if-clause with if (page.mode == PAGE_MODE_NONE) .
  1971. Execution of the else-clause often leads to buffer-overflows.
  1972. Therefore, the above option combination is not supported and will be disabled to prevent those buffer-overflows.
  1973. The MR solves issues #411 and #413.
  1974. 2022-08-21 Even Rouault <even.rouault@spatialys.com>
  1975. Merge branch 'tiffcrop_S-option_mutually_exclusive' into 'master'
  1976. tiffcrop: -S option mutually exclusive (fixes #349, #414, #422, #423, #424)
  1977. Closes #424, #423, #422, #414 et #349
  1978. See merge request libtiff/libtiff!378
  1979. 2022-08-20 Su_Laus <sulau@freenet.de>
  1980. tiffcrop -S option: Make decision simpler.
  1981. 2022-08-20 Even Rouault <even.rouault@spatialys.com>
  1982. Merge branch 'remove_death_commented_code' into 'master'
  1983. Remove dead code from tif_dirread.c, tif_dirwrite.c and tif_getimage.c
  1984. See merge request libtiff/libtiff!380
  1985. 2022-08-20 Su Laus <sulau@freenet.de>
  1986. Remove dead code from tif_dirread.c, tif_dirwrite.c and tif_getimage.c.
  1987. 2022-08-16 Even Rouault <even.rouault@spatialys.com>
  1988. Merge branch 'coverity_fixes' into 'master'
  1989. Silence Coverity Scan false positive warnings about out-of-bounds access
  1990. See merge request libtiff/libtiff!379
  1991. 2022-08-16 Even Rouault <even.rouault@spatialys.com>
  1992. tif_zip.c: silence Coverity Scan false positive warnings about out-of-bounds access (CID 1491190, 1491197, 1491201)
  1993. tif_dirread.c: silence Coverity Scan false positive warnings about out-of-bounds access (CID 1491182, 1491186)
  1994. 2022-08-16 Even Rouault <even.rouault@spatialys.com>
  1995. Merge branch 'default_tag_values_extended' into 'master'
  1996. Presetting of default tag values extended (e.g. PlanarConfig). (fixes #449)
  1997. Closes #449
  1998. See merge request libtiff/libtiff!377
  1999. 2022-08-16 Su Laus <sulau@freenet.de>
  2000. Presetting of default tag values extended (e.g. PlanarConfig). (fixes #449)
  2001. 2022-08-15 Su_Laus <sulau@freenet.de>
  2002. According to Richard Nolde https://gitlab.com/libtiff/libtiff/-/issues/401#note_877637400 the tiffcrop option „-S“ is also mutually exclusive to the other crop options (-X|-Y), -Z and -z.
  2003. This is now checked and ends tiffcrop if those arguments are not mutually exclusive.
  2004. This MR will fix the following tiffcrop issues: #349, #414, #422, #423, #424
  2005. 2022-08-09 Even Rouault <even.rouault@spatialys.com>
  2006. Merge branch 'warning_fix' into 'master'
  2007. Fix warning about shadowing
  2008. See merge request libtiff/libtiff!376
  2009. 2022-08-09 Even Rouault <even.rouault@spatialys.com>
  2010. Fix warning about shadowing.
  2011. 2022-08-09 Even Rouault <even.rouault@spatialys.com>
  2012. Merge branch 'fix_225' into 'master'
  2013. Deal with RichTIFFIPTC tag written with LONG type (fixes #225)
  2014. Closes #225
  2015. See merge request libtiff/libtiff!374
  2016. 2022-08-09 Even Rouault <even.rouault@spatialys.com>
  2017. Merge branch 'Writing_IFD8_to_ClassicTIFF_bugfix' into 'master'
  2018. Correcting defects reported by Coverity Scan for MR !369
  2019. See merge request libtiff/libtiff!375
  2020. 2022-08-09 Su Laus <sulau@freenet.de>
  2021. Correcting defects reported by Coverity Scan for MR !369.
  2022. 2022-08-09 Even Rouault <even.rouault@spatialys.com>
  2023. Merge branch 'fix_442_Writing_IFD8_to_ClassicTIFF' into 'master'
  2024. TIFFSetValue(): Writing IFD8 & LONG8 tags to ClassicTIFF corrected (fixes #442)
  2025. Closes #442
  2026. See merge request libtiff/libtiff!369
  2027. 2022-08-09 Su Laus <sulau@freenet.de>
  2028. TIFFSetValue(): Writing IFD8 & LONG8 tags to ClassicTIFF corrected (fixes #442)
  2029. 2022-08-09 Even Rouault <even.rouault@spatialys.com>
  2030. Deal with RichTIFFIPTC tag written with LONG type (fixes #225)
  2031. 2022-08-07 Roger Leigh <rleigh@codelibre.net>
  2032. Merge branch 'manpage-functions-added' into 'master'
  2033. doc: Missing public functions added to TIFF documentation in Sphinx
  2034. See merge request libtiff/libtiff!372
  2035. 2022-08-07 Su Laus <sulau@freenet.de>
  2036. doc: Missing public functions added to TIFF documentation in Sphinx.
  2037. 2022-07-29 Even Rouault <even.rouault@spatialys.com>
  2038. Merge branch 'tifjpeg_version_check' into 'master'
  2039. tif_jpeg.c: allow to pass -DEXPECTED_JPEG_LIB_VERSION=number to do optional...
  2040. See merge request libtiff/libtiff!373
  2041. 2022-07-29 Even Rouault <even.rouault@spatialys.com>
  2042. tif_jpeg.c: allow to pass -DEXPECTED_JPEG_LIB_VERSION=number to do optional compile-time version check
  2043. 2022-07-21 Even Rouault <even.rouault@spatialys.com>
  2044. Merge branch 'TIFFReadFromUserBuffer_fix' into 'master'
  2045. TIFFReadFromUserBuffer(): fix clearing of TIFF_CODERSETUP flag that could...
  2046. See merge request libtiff/libtiff!371
  2047. 2022-07-21 Even Rouault <even.rouault@spatialys.com>
  2048. TIFFReadFromUserBuffer(): fix clearing of TIFF_CODERSETUP flag that could cause issues with reading JPEG compressed files
  2049. 2022-07-21 Roger Leigh <rleigh@codelibre.net>
  2050. Merge branch 'vs2022-fixes' into 'master'
  2051. cmake: Correct duplicate definition of _CRT_SECURE_NO_WARNINGS
  2052. Closes #443
  2053. See merge request libtiff/libtiff!370
  2054. 2022-07-13 Roger Leigh <rleigh@codelibre.net>
  2055. cmake: Correct duplicate definition of _CRT_SECURE_NO_WARNINGS.
  2056. 2022-07-13 Even Rouault <even.rouault@spatialys.com>
  2057. Merge branch 'vs2022-fixes' into 'master'
  2058. cmake: Fixes for Visual Studio 2022
  2059. See merge request libtiff/libtiff!368
  2060. 2022-07-13 Roger Leigh <rleigh@codelibre.net>
  2061. cmake: Fixes for Visual Studio 2022.
  2062. 2022-07-03 Roger Leigh <rleigh@codelibre.net>
  2063. Merge branch 'elf-symbol-export' into 'master'
  2064. Explicit export of versioned ELF symbols
  2065. Closes #437
  2066. See merge request libtiff/libtiff!361
  2067. 2022-07-03 Even Rouault <even.rouault@spatialys.com>
  2068. Merge branch 'fix_433' into 'master'
  2069. _TIFFCheckFieldIsValidForCodec(): return FALSE when passed a codec-specific...
  2070. Closes #433
  2071. See merge request libtiff/libtiff!363
  2072. 2022-07-01 Su_Laus <sulau@freenet.de>
  2073. CLIPPATH tags defined twice but differently and also wrongly.
  2074. In tif_dirinfo.c the tags for clippath are wrongly defined and the tag TIFFTAG_XCLIPPATHUNITS is even different twice. Therefore, those tags cannot be written / read correctly and may even lead to buffer overflow.
  2075. E.g.: In the case of TIFFSetField(YCLIPPATHUNITS), a 1 byte storage space is allocated because of TIFF_SETGET_UNDEFINED, in which an int32_t value should be stored because of TIFF_SLONG type definition. Then, an int32_t value is read from that 1 byte storage location.
  2076. The current definition is:
  2077. { TIFFTAG_CLIPPATH, -1, -3, TIFF_BYTE, 0, TIFF_SETGET_UNDEFINED, TIFF_SETGET_UNDEFINED, FIELD_CUSTOM, 0, 1, "ClipPath", NULL },
  2078. { TIFFTAG_XCLIPPATHUNITS, 1, 1, TIFF_SLONG, 0, TIFF_SETGET_UNDEFINED, TIFF_SETGET_UNDEFINED, FIELD_CUSTOM, 0, 0, "XClipPathUnits", NULL },
  2079. { TIFFTAG_XCLIPPATHUNITS, 1, 1, TIFF_SBYTE, 0, TIFF_SETGET_UNDEFINED, TIFF_SETGET_UNDEFINED, FIELD_CUSTOM, 0, 0, "XClipPathUnits", NULL },
  2080. { TIFFTAG_YCLIPPATHUNITS, 1, 1, TIFF_SLONG, 0, TIFF_SETGET_UNDEFINED, TIFF_SETGET_UNDEFINED, FIELD_CUSTOM, 0, 0, "YClipPathUnits", NULL },
  2081. Whereas the correct definition according to TIFF Specification Supplement 1 (https://www.awaresystems.be/imaging/tiff/specification/TIFFPM6.pdf) should be:
  2082. { TIFFTAG_CLIPPATH, -3, -3, TIFF_BYTE, 0, TIFF_SETGET_C32_UINT8, TIFF_SETGET_UNDEFINED, FIELD_CUSTOM, 0, 1, "ClipPath", NULL },
  2083. { TIFFTAG_XCLIPPATHUNITS, 1, 1, TIFF_LONG, 0, TIFF_SETGET_UINT32, TIFF_SETGET_UNDEFINED, FIELD_CUSTOM, 0, 0, "XClipPathUnits", NULL },
  2084. { TIFFTAG_YCLIPPATHUNITS, 1, 1, TIFF_LONG, 0, TIFF_SETGET_UINT32, TIFF_SETGET_UNDEFINED, FIELD_CUSTOM, 0, 0, "YClipPathUnits", NULL },
  2085. Also the set_get_field of the following tag should be corrected from
  2086. { TIFFTAG_INTEROPERABILITYIFD, 1, 1, TIFF_IFD8, 0, TIFF_SETGET_UNDEFINED, TIFF_SETGET_UNDEFINED, FIELD_CUSTOM, 0, 0, "InteroperabilityIFDOffset", NULL },
  2087. to
  2088. { TIFFTAG_INTEROPERABILITYIFD, 1, 1, TIFF_IFD8, 0, TIFF_SETGET_IFD8, TIFF_SETGET_UNDEFINED, FIELD_CUSTOM, 0, 0, "InteroperabilityIFDOffset", NULL },
  2089. However, if those tags should not be handled by LibTiff because they are deemed as abandoned or unwanted tags, those tags need to be defined with FIELD_IGNORE instead of FIELD_CUSTOM and keeping set_field_type = TIFF_SETGET_UNDEFINED
  2090. 2022-07-01 Su_Laus <sulau@freenet.de>
  2091. In tif_dirinfo.c the definition for TIFFTAG_COMPRESSION has different settings of field_readcount=TIFF_VARIABLE (-1) and field_writecount=1. The tag is defined with Count=1, thus field_readcount is wrong and should also be 1. Although TIFFTAG_BITSPERSAMPLE is defined with Count:N=SamplesPerPixel, only ONE uint16_t value is passed with TIFFSetField() and TIFFGetField(). However, an array with N=SamplesPerPixel equal values is written into the TIFF file. Shouldn't field_readcount = field_writecount = 1 then? The behaviour of TiffLib does not change, because the handling is coded directly.
  2092. 2022-06-27 Even Rouault <even.rouault@spatialys.com>
  2093. _TIFFCheckFieldIsValidForCodec(): return FALSE when passed a codec-specific tag and the codec is not configured (fixes #433)
  2094. This avoids crashes when querying such tags
  2095. 2022-06-27 Even Rouault <even.rouault@spatialys.com>
  2096. Merge branch '16bit_cielab' into 'master'
  2097. add basic 16bit-cielab support
  2098. See merge request libtiff/libtiff!336
  2099. 2022-06-27 Caolán McNamara <caolan@skynet.ie>
  2100. Add basic 16bit-cielab support.
  2101. just a copy of putcontig8bitCIELab that reads 16bit vals but divide l by
  2102. 257, a and b by 256 before passing to TIFFCIELabToXYZ
  2103. motivation: https://bugs.documentfoundation.org/show_bug.cgi?id=131199
  2104. the "clavijo16bitlab.tiff" example where tiffinfo says:
  2105. ```
  2106. Image Width: 2601 Image Length: 3503
  2107. Resolution: 96, 96 pixels/inch
  2108. Bits/Sample: 16
  2109. Compression Scheme: AdobeDeflate
  2110. Photometric Interpretation: CIE L*a*b*
  2111. Orientation: row 0 top, col 0 lhs
  2112. Samples/Pixel: 3
  2113. Rows/Strip: 1
  2114. Planar Configuration: single image plane
  2115. DateTime: 2020:03:07 10:20:42
  2116. ```
  2117. 2022-06-24 Roger Leigh <rleigh@codelibre.net>
  2118. Merge branch 'manpage-fixes' into 'master'
  2119. Sphinx documentation fixes
  2120. See merge request libtiff/libtiff!362
  2121. 2022-06-24 Roger Leigh <rleigh@codelibre.net>
  2122. doc: Correct types and cross-references.
  2123. doc: Correct manual page path.
  2124. build: Make rational2double static only for automake.
  2125. This copies the same logic as used by CMake.
  2126. build: Update autoconf version to 4.5.0 and soname to 6.0.0.
  2127. build: Update autoconf ld-version-script default.
  2128. libtiff: Correct version script for changes since v4.4.0.
  2129. libtiff: Update version script documentation.
  2130. libtiff: Add symbol versioning of all exported symbols.
  2131. 2022-06-24 Even Rouault <even.rouault@spatialys.com>
  2132. Merge branch 'webp_mem_improvements' into 'master'
  2133. WEBP codec: avoid temporary buffer and memcpy() on whole tile/strip decoding
  2134. See merge request libtiff/libtiff!360
  2135. 2022-06-24 Roger Leigh <rleigh@codelibre.net>
  2136. build: Enable symbol versioning by default.
  2137. 2022-06-24 Roger Leigh <rleigh@codelibre.net>
  2138. Merge branch 'sphinx-manpages' into 'master'
  2139. doc: Add Sphinx conversion of all manpages
  2140. Closes #361
  2141. See merge request libtiff/libtiff!356
  2142. 2022-06-24 Roger Leigh <rleigh@codelibre.net>
  2143. Merge branch 'remove-wince' into 'master'
  2144. Remove obsolete WinCE source file
  2145. See merge request libtiff/libtiff!357
  2146. 2022-06-23 Even Rouault <even.rouault@spatialys.com>
  2147. WEBP codec: avoid temporary buffer and memcpy() on whole tile/strip decoding
  2148. 2022-06-22 Even Rouault <even.rouault@spatialys.com>
  2149. Merge branch 'horAcc8_fix' into 'master'
  2150. tif_predict.c: make horAcc8() work with icc (ICC) 2021.6.0 20220226 -O2
  2151. See merge request libtiff/libtiff!359
  2152. 2022-06-22 Even Rouault <even.rouault@spatialys.com>
  2153. tif_predict.c: make horAcc8() work with icc (ICC) 2021.6.0 20220226 -O2.
  2154. For a reason I don't understand, recent ICC generates wrong code in -O2
  2155. mode for the stride = 3 and 4 cases. The modified code is more
  2156. straightforward, so go for it.
  2157. 2022-06-19 Roger Leigh <rleigh@codelibre.net>
  2158. Merge branch 'ci-restore-old' into 'master'
  2159. ci: Restore testing with Ubuntu 20.04
  2160. See merge request libtiff/libtiff!358
  2161. 2022-06-19 Roger Leigh <rleigh@codelibre.net>
  2162. ci: Restore testing with Ubuntu 20.04.
  2163. Remove obsolete WinCE source file.
  2164. doc: Add missing punctuation.
  2165. doc: Remove semicolon from c:function definition.
  2166. doc: Remove remaining HTML entities.
  2167. doc: Improve the build page.
  2168. 2022-06-18 Roger Leigh <rleigh@codelibre.net>
  2169. doc: Add Sphinx conversion of all manpages.
  2170. 2022-06-18 Roger Leigh <rleigh@codelibre.net>
  2171. Merge branch 'dist-html' into 'master'
  2172. build: Distribute and install HTML documentation
  2173. See merge request libtiff/libtiff!352
  2174. 2022-06-13 Even Rouault <even.rouault@spatialys.com>
  2175. Merge branch 'pkgconfig' into 'master'
  2176. Adding Requires.private generation
  2177. See merge request libtiff/libtiff!355
  2178. 2022-06-13 Yishen Miao <mys721tx@gmail.com>
  2179. Adding Requires.private generation.
  2180. Adds Requires.private generation so that pkg-config can correctly find
  2181. the dependencies of libtiff.
  2182. 2022-06-11 Roger Leigh <rleigh@codelibre.net>
  2183. Merge branch 'ci-dist' into 'master'
  2184. ci: Archive distribution tar and zip files
  2185. See merge request libtiff/libtiff!354
  2186. 2022-06-11 Roger Leigh <rleigh@codelibre.net>
  2187. ci: Archive distribution tar and zip files.
  2188. 2022-06-11 Even Rouault <even.rouault@spatialys.com>
  2189. Merge branch 'export_TIFFClampDoubleToUInt32' into 'master'
  2190. libtiff.def: export _TIFFClampDoubleToUInt32
  2191. See merge request libtiff/libtiff!353
  2192. 2022-06-11 Even Rouault <even.rouault@spatialys.com>
  2193. libtiff.def: export _TIFFClampDoubleToUInt32.
  2194. 2022-06-11 Even Rouault <even.rouault@spatialys.com>
  2195. Merge branch 'issue-415+427+428' into 'master'
  2196. fix the FPE in tiffcrop (#415, #427, and #428)
  2197. Closes #428, #427 et #415
  2198. See merge request libtiff/libtiff!346
  2199. 2022-06-11 4ugustus <wangdw.augustus@qq.com>
  2200. fix the FPE in tiffcrop (#415, #427, and #428)
  2201. 2022-06-11 Roger Leigh <rleigh@codelibre.net>
  2202. build: Distribute and install HTML documentation.
  2203. 2022-06-10 Even Rouault <even.rouault@spatialys.com>
  2204. Merge branch 'tif_jpeg_warning_fix' into 'master'
  2205. tif_jpeg.c: fix error message
  2206. See merge request libtiff/libtiff!351
  2207. 2022-06-10 Even Rouault <even.rouault@spatialys.com>
  2208. tif_jpeg.c: fix error message.
  2209. 2022-06-10 Roger Leigh <rleigh@codelibre.net>
  2210. Merge branch 'android_libm' into 'master'
  2211. Fix dependency on libm on Android
  2212. See merge request libtiff/libtiff!350
  2213. 2022-06-09 Matthias Kuhn <matthias@opengis.ch>
  2214. Always link to libm if available.
  2215. 2022-06-05 Roger Leigh <rleigh@codelibre.net>
  2216. Merge branch 'vasyl5-master-patch-97651' into 'master'
  2217. libtoolize: command not found on macOS.
  2218. See merge request libtiff/libtiff!289
  2219. 2022-06-05 Roger Leigh <rleigh@codelibre.net>
  2220. Merge branch 'rst-docs' into 'master'
  2221. Convert HTML documentation to Sphinx RST
  2222. See merge request libtiff/libtiff!349
  2223. 2022-06-05 Roger Leigh <rleigh@codelibre.net>
  2224. Merge remote-tracking branch 'origin/master' into rst-docs.
  2225. 2022-06-05 Roger Leigh <rleigh@codelibre.net>
  2226. Merge branch 'cmake-xc-faxtable' into 'master'
  2227. cmake: Do not build faxtable target when cross-compiling
  2228. See merge request libtiff/libtiff!342
  2229. 2022-06-05 Roger Leigh <rleigh@codelibre.net>
  2230. Merge branch 'cmake-disable-options' into 'master'
  2231. Add options for disabling tools, tests, contrib and docs
  2232. See merge request libtiff/libtiff!343
  2233. 2022-06-05 Roger Leigh <rleigh@codelibre.net>
  2234. Merge branch 'cmake-msvc-options' into 'master'
  2235. cmake: Add MSVC options when building all libraries and executables
  2236. See merge request libtiff/libtiff!344
  2237. 2022-06-05 Roger Leigh <rleigh@codelibre.net>
  2238. Merge branch 'cmake-win32-libtiffxx-static' into 'master'
  2239. cmake: libtiffxx is static on win32
  2240. See merge request libtiff/libtiff!338
  2241. 2022-06-05 Roger Leigh <rleigh@codelibre.net>
  2242. Merge branch 'licence-file' into 'master'
  2243. Rename COPYRIGHT to LICENSE.md
  2244. See merge request libtiff/libtiff!345
  2245. 2022-06-05 Roger Leigh <rleigh@codelibre.net>
  2246. Rename COPYRIGHT to LICENSE.md.
  2247. doc: Fix make distcheck.
  2248. doc: Update automake configuration.
  2249. doc: Do not pass srcdir and builddir to sphinx-build.
  2250. doc: Additional top-level tidying.
  2251. doc: Tidy top-level index.
  2252. doc: Move bugs to project.
  2253. doc: Move misc to project.
  2254. doc: Move all BigTIFF documentation into specification directory.
  2255. * Remove the BigTIFF proposal since this has long been completed
  2256. * Update the BigTIFF PR to note completion of the work and replace
  2257. present with past tense.
  2258. doc: Split release history.
  2259. This permits the newer releases to be included in the top-level
  2260. toctree without polluting it with dozens of old releases.
  2261. doc: Correct accents.
  2262. doc: BigTIFF design markup improvements.
  2263. Add doc/_static.
  2264. doc: Move TIFF specification and design notes into subdirectory.
  2265. doc: Move releases into subdirectory.
  2266. doc: Mark up TIFF tech note 2.
  2267. doc: Use sphinxdox theme.
  2268. The sphix_rtd_theme formats complex tables badly.
  2269. doc: Clean up HTML tags.
  2270. 2022-06-04 Roger Leigh <rleigh@codelibre.net>
  2271. ci: Install Sphinx manual for use by GitLab pages.
  2272. doc: Use sphinx_rtd_theme.
  2273. Convert HTML documentation to Sphinx RST.
  2274. * Add CMake build logic
  2275. * Add Autotools build logic
  2276. * Move from html/ to doc/
  2277. * Manual pages are still generated HTML for the time being
  2278. git: Ignore common IDE build files.
  2279. 2022-06-04 Roger Leigh <rleigh@codelibre.net>
  2280. Merge branch 'ci-ubuntu-22.04' into 'master'
  2281. ci: Update to use Ubuntu 22.04 CI images
  2282. Closes #429
  2283. See merge request libtiff/libtiff!348
  2284. 2022-06-04 Roger Leigh <rleigh@codelibre.net>
  2285. Merge branch 'opengl-option' into 'master'
  2286. cmake: Add tiff-opengl option
  2287. See merge request libtiff/libtiff!340
  2288. 2022-06-04 Roger Leigh <rleigh@codelibre.net>
  2289. tiffdump: Avoid overflow warning when reading.
  2290. ci: Update to use Ubuntu 22.04 CI images.
  2291. 2022-06-04 Even Rouault <even.rouault@spatialys.com>
  2292. Merge branch 'master' into 'master'
  2293. Include stdlib.h in tif_lzw.c.
  2294. See merge request libtiff/libtiff!347
  2295. 2022-06-04 Brian Ledger <brian.peter.ledger@gmail.com>
  2296. Merge branch 'master' of https://gitlab.com/libtiff/libtiff.
  2297. 2022-06-04 Brian Ledger <brian.peter.ledger@gmail.com>
  2298. Include stdlib.h in tif_lzw.c.
  2299. In `tif_lzw.c`, a call is made to `_byteswap_uint64`. This is declared in `stdlib.h`. `stdlib.h` is not included in `tib_lzw.c`, so a name error may occur.
  2300. This change adds `#include stdlib.h` to `tif_lzw.c`, to prevent a name error from occurring when `stdlib.h` is not included.
  2301. 2022-05-29 Roger Leigh <rleigh@codelibre.net>
  2302. Add options for disabling tools, tests, contrib and docs.
  2303. cmake: Add MSVC options when building all libraries and executables.
  2304. cmake: Do not build faxtable target when cross-compiling.
  2305. cmake: Use add_compile_definitions and add_compile_options.
  2306. It seems that some CMake versions can't export targets using PRIVATE
  2307. linking, even though the private target is never used.
  2308. Merge remote-tracking branch 'origin/master' into cmake-msvc-options.
  2309. Merge remote-tracking branch 'origin/master' into cmake-win32-libtiffxx-static
  2310. 2022-05-29 Roger Leigh <rleigh@codelibre.net>
  2311. Merge branch 'ci-x64' into 'master'
  2312. ci: Remove arm64 temporarily
  2313. See merge request libtiff/libtiff!341
  2314. 2022-05-29 Roger Leigh <rleigh@codelibre.net>
  2315. ci: Remove arm64 temporarily.
  2316. autoconf: Add --disable-opengl option.
  2317. cmake: Add tiff-opengl option.
  2318. cmake: Add MSVC options when building all libraries and executables.
  2319. cmake: libtiffxx is static on win32.
  2320. 2022-05-22 Even Rouault <even.rouault@spatialys.com>
  2321. html/Makefile.am: add v4.4.0.html to docfiles.
  2322. 2022-05-20 Even Rouault <even.rouault@spatialys.com>
  2323. Update HOWTO-RELEASE with .tar.xz.
  2324. Prepare for release 4.4.0.
  2325. 2022-05-16 Even Rouault <even.rouault@spatialys.com>
  2326. libtiff v4.4.0 released
  2327. 2022-05-16 Even Rouault <even.rouault@spatialys.com>
  2328. Merge branch 'pkgconf_abs_path' into 'master'
  2329. Handle absolute paths in pkg-config file
  2330. See merge request libtiff/libtiff!333
  2331. 2022-05-16 Miloš Komarčević <miloskomarcevic@aim.com>
  2332. Handle absolute paths in pkg-config file.
  2333. 2022-05-15 Even Rouault <even.rouault@spatialys.com>
  2334. Merge branch 'fix-tests-with-ro-source-dir' into 'master'
  2335. cmake: allow running the tests with a read-only source directory
  2336. See merge request libtiff/libtiff!332
  2337. 2022-05-15 Alex Richardson <alexrichardson@google.com>
  2338. cmake: allow running the tests with a read-only source directory.
  2339. Prior to this commit CTest would invoke all simple_tests tests with the
  2340. current working directory set to the source directory. However, some of
  2341. the tests (e.g. rewrite) will output files to the current working
  2342. directory and will therefore fail when run with a read-only source
  2343. directory. This can happen e.g. when testing a cross-compiled version of
  2344. libtiff where the sources are mounted read-only in the virtual machine.
  2345. Simply changing the working directory to CMAKE_CURRENT_BINARY_DIR allows
  2346. all but raw_decode to pass. The raw_decode test looks for files in the
  2347. source directory, and uses the `srcdir` environment variable to find, so
  2348. we also have to add a set_tests_properties() call to specify that env var.
  2349. 2022-05-14 Even Rouault <even.rouault@spatialys.com>
  2350. Merge branch 'tiffcrop_pipeline_error' into 'master'
  2351. tiffcrop: Fixes complain of pipeline "cmake-ninja-arm64" about abs() on...
  2352. See merge request libtiff/libtiff!331
  2353. 2022-05-14 Su Laus <sulau@freenet.de>
  2354. tiffcrop: Fixes complain of pipeline "cmake-ninja-arm64" about abs() on...
  2355. 2022-05-14 Even Rouault <even.rouault@spatialys.com>
  2356. Merge branch 'TIFFField_SetGetSize_CountSize' into 'master'
  2357. Public functions TIFFFieldSetGetSize() and TIFFieldSetGetCountSize() added.
  2358. See merge request libtiff/libtiff!284
  2359. 2022-05-14 Su Laus <sulau@freenet.de>
  2360. Public functions TIFFFieldSetGetSize() and TIFFieldSetGetCountSize() added.
  2361. 2022-05-13 Even Rouault <even.rouault@spatialys.com>
  2362. Merge branch 'jondo-master-patch-87274' into 'master'
  2363. Replace add_compile_definitions for CMake versions before 3.12 (#238)
  2364. See merge request libtiff/libtiff!330
  2365. 2022-05-13 Robert Pollak <robert.pollak@posteo.net>
  2366. Replace add_compile_definitions for CMake versions before 3.12 (#238)
  2367. 2022-05-13 Even Rouault <even.rouault@spatialys.com>
  2368. Merge branch 'master' into 'master'
  2369. Remove incorrect assert.
  2370. See merge request libtiff/libtiff!329
  2371. 2022-05-13 Ben Laurie <benl@google.com>
  2372. Remove incorrect assert.
  2373. 2022-05-10 Even Rouault <even.rouault@spatialys.com>
  2374. Merge branch 'Fix_Issue#330' into 'master'
  2375. tiffcrop: Fix issue #330 and some more from 320 to 349
  2376. Closes #330
  2377. See merge request libtiff/libtiff!298
  2378. 2022-05-10 Su Laus <sulau@freenet.de>
  2379. tiffcrop: Fix issue #330 and some more from 320 to 349.
  2380. 2022-05-10 Even Rouault <even.rouault@spatialys.com>
  2381. test_signed_tags.c: fix CID 1504376.
  2382. 2022-05-10 Even Rouault <even.rouault@spatialys.com>
  2383. Merge branch 'fix_#29_tiffcp_orientationTag' into 'master'
  2384. tiffcp: Fix incomprehensible setting of orientation tag (fixes #29)
  2385. Closes #29
  2386. See merge request libtiff/libtiff!327
  2387. 2022-05-10 Even Rouault <even.rouault@spatialys.com>
  2388. Merge branch 'palette-8bit' into 'master'
  2389. tiff2pdf: handle 8-bit palette colormap
  2390. See merge request libtiff/libtiff!328
  2391. 2022-05-09 Jay Berkenbilt <ejb@ql.org>
  2392. tiff2pdf: handle 8-bit palette colormap.
  2393. If all the colors in a palette are in the range [0, 255], treat the
  2394. palette as an 8-bit colormap. This workaround already exists elsewhere
  2395. in the software including in tiff2ps.
  2396. 2022-05-08 Even Rouault <even.rouault@spatialys.com>
  2397. Merge branch 'fix_#40_ReadSignedTags' into 'master'
  2398. Reading of signed tags added (fixes #40)
  2399. Closes #40
  2400. See merge request libtiff/libtiff!326
  2401. 2022-05-08 Su Laus <sulau@freenet.de>
  2402. Reading of signed tags added (fixes #40)
  2403. 2022-05-08 Even Rouault <even.rouault@spatialys.com>
  2404. Fix typos in comments.
  2405. 2022-05-08 Even Rouault <even.rouault@spatialys.com>
  2406. Merge branch 'fix_400' into 'master'
  2407. tiffcp: avoid buffer overflow in "mode" string (fixes #400)
  2408. Closes #400
  2409. See merge request libtiff/libtiff!323
  2410. 2022-05-08 Even Rouault <even.rouault@spatialys.com>
  2411. Merge branch 'CheckForBigTiff' into 'master'
  2412. TIFFIsBigTiff() function added.
  2413. See merge request libtiff/libtiff!325
  2414. 2022-05-08 Su Laus <sulau@freenet.de>
  2415. TIFFIsBigTiff() function added.
  2416. 2022-05-01 Su_Laus <sulau@freenet.de>
  2417. tiffcp: Fix incomprehensible setting of orientation tag (fixes #29)
  2418. 2022-04-23 Even Rouault <even.rouault@spatialys.com>
  2419. Merge branch 'fix_#8_FreeAnonTag' into 'master'
  2420. extra flag for anonymous (unknown) tags (fixes #8)
  2421. Closes #400 et #8
  2422. See merge request libtiff/libtiff!324
  2423. 2022-04-22 Even Rouault <even.rouault@spatialys.com>
  2424. tif_lzw.c: fix potential out-of-bounds error when trying to read in the same tile/strip after an error has occurred (fixes #410)
  2425. 2022-04-06 Su_Laus <sulau@freenet.de>
  2426. extra flag for anonymous (unknown) tags (fixes #8)
  2427. 2022-04-02 Su_Laus <sulau@freenet.de>
  2428. tiffcp: avoid buffer overflow in "mode" string (fixes #400)
  2429. 2022-03-21 Even Rouault <even.rouault@spatialys.com>
  2430. avoid hang in TIFFRewriteDirectory() if a classic file > 4 GB is attempted to be created
  2431. Fixes https://github.com/OSGeo/gdal/issues/5479
  2432. 2022-03-19 Even Rouault <even.rouault@spatialys.com>
  2433. Merge branch 'Correct_tag_auto-registration_description' into 'master'
  2434. Correct reading description for anonymous tag auto-registration in addingtags.html (closes 353)
  2435. Closes #353
  2436. See merge request libtiff/libtiff!320
  2437. 2022-03-19 Su Laus <sulau@freenet.de>
  2438. Correct reading description for anonymous tag auto-registration in addingtags.html (closes 353)
  2439. 2022-03-18 Even Rouault <even.rouault@spatialys.com>
  2440. tif_lzw.c: avoid harmless unsigned-integer-overflow (https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=45741)
  2441. 2022-03-17 Even Rouault <even.rouault@spatialys.com>
  2442. Merge branch 'fix_396' into 'master'
  2443. tiffcp: do not try to fetch compressor-specific tags when not appropriate (fixes #396)
  2444. Closes #396
  2445. See merge request libtiff/libtiff!316
  2446. 2022-03-17 Even Rouault <even.rouault@spatialys.com>
  2447. Merge branch 'Fix_cmake_warnings' into 'master'
  2448. Fix some CMake warnings
  2449. See merge request libtiff/libtiff!319
  2450. 2022-03-17 Su Laus <sulau@freenet.de>
  2451. Fix some CMake warnings.
  2452. 2022-03-17 Even Rouault <even.rouault@spatialys.com>
  2453. Merge branch 'lzw_decode_improvements' into 'master'
  2454. LZWDecode(): major speed improvements
  2455. See merge request libtiff/libtiff!318
  2456. 2022-03-16 Even Rouault <even.rouault@spatialys.com>
  2457. LZWDecode(): major speed improvements.
  2458. This mostly comes from dealing specifically with codes that expand to
  2459. 2, 3 and 4 bytes or more to avoid branches, and dealing with longer
  2460. repeated sequences (e.g. lots of bytes to 0).
  2461. With the following bench.c, execution time is 32% faster on a 8000x8000
  2462. 4 bands uint16 predictor=2 image that has a 1.6x compression ratio. with
  2463. gcc 9.4.0, on x86_64
  2464. bench.c:
  2465. ```
  2466. #include "tiffio.h"
  2467. #include <stdlib.h>
  2468. #include <stdint.h>
  2469. int main(int argc, char* argv[])
  2470. {
  2471. if( argc != 2 )
  2472. {
  2473. fprintf(stderr, "Usage: ./bench my.tif\n");
  2474. exit(1);
  2475. }
  2476. TIFF* tif = TIFFOpen(argv[1], "r");
  2477. if( tif == NULL )
  2478. {
  2479. fprintf(stderr, "Cannot open %s\n", argv[1]);
  2480. exit(1);
  2481. }
  2482. if( !TIFFIsTiled(tif) )
  2483. {
  2484. fprintf(stderr, "Only tiled image supported\n");
  2485. exit(1);
  2486. }
  2487. int tilesize = (int)TIFFTileSize(tif);
  2488. char* c = malloc(tilesize);
  2489. if( c == NULL )
  2490. {
  2491. fprintf(stderr, "Out of memory\n");
  2492. exit(1);
  2493. }
  2494. const uint32_t numtiles = TIFFNumberOfTiles(tif);
  2495. //int numloops = 4 * (int)(1e9 / ((double)tilesize * numtiles));
  2496. //printf("Number of loops: %d\n", numloops);
  2497. int numloops = 1;
  2498. for(int i =0; i< numloops; i++)
  2499. {
  2500. for(uint32_t tileindex = 0; tileindex < numtiles; tileindex++ )
  2501. {
  2502. TIFFReadEncodedTile(tif, tileindex, c, tilesize);
  2503. }
  2504. }
  2505. free(c);
  2506. TIFFClose(tif);
  2507. return 0;
  2508. }
  2509. ```
  2510. 2022-03-16 Even Rouault <even.rouault@spatialys.com>
  2511. LZWDecode(): modest speed improvement: fetch input data by chunks of the largest natural integer of the architecture
  2512. 2022-03-14 Even Rouault <even.rouault@spatialys.com>
  2513. Merge branch 'kmilos-master-patch-45885' into 'master'
  2514. Correct fix for the pkgconf file relative paths
  2515. See merge request libtiff/libtiff!317
  2516. 2022-03-10 Even Rouault <even.rouault@spatialys.com>
  2517. tif_lzw.c: make LZW_CHECKEOS non-optional.
  2518. tiffsplit.c: fix compiler warning on 32-bit.
  2519. 2022-03-10 Miloš Komarčević <miloskomarcevic@aim.com>
  2520. Correct fix for the pkgconf file relative paths.
  2521. 2022-03-10 Even Rouault <even.rouault@spatialys.com>
  2522. Merge branch 'issue-278' into 'master'
  2523. fix heap buffer overflow in tiffcp (#278)
  2524. Closes #278
  2525. See merge request libtiff/libtiff!311
  2526. 2022-03-10 4ugustus <wangdw.augustus@qq.com>
  2527. fix heap buffer overflow in tiffcp (#278)
  2528. 2022-03-09 Even Rouault <even.rouault@spatialys.com>
  2529. tiffcp: do not try to fetch compressor-specific tags when not appropriate (fixes #396)
  2530. 2022-03-09 Even Rouault <even.rouault@spatialys.com>
  2531. Merge branch 'i_am_a_unsympathetic_person' into 'master'
  2532. index.html: make it clear that I'm a unsympathetic person
  2533. See merge request libtiff/libtiff!315
  2534. 2022-03-09 Even Rouault <even.rouault@spatialys.com>
  2535. index.html: make it clear that I'm a unsympathetic person.
  2536. 2022-03-08 Even Rouault <even.rouault@spatialys.com>
  2537. Merge branch 'Fix_Issue#395' into 'master'
  2538. tiffcrop: fix issue #395: generation of strange section images.
  2539. Closes #395
  2540. See merge request libtiff/libtiff!312
  2541. 2022-03-08 Su Laus <sulau@freenet.de>
  2542. tiffcrop: fix issue #395: generation of strange section images.
  2543. 2022-03-08 Even Rouault <even.rouault@spatialys.com>
  2544. Merge branch 'Fix_Issue#380' into 'master'
  2545. tiffcrop: fix issue #380 and #382 heap buffer overflow in extractImageSection
  2546. Closes #382 et #380
  2547. See merge request libtiff/libtiff!307
  2548. 2022-03-08 Su Laus <sulau@freenet.de>
  2549. tiffcrop: fix issue #380 and #382 heap buffer overflow in extractImageSection
  2550. 2022-03-08 Even Rouault <even.rouault@spatialys.com>
  2551. Merge branch 'issue-392' into 'master'
  2552. add checks for return value of limitMalloc (#392)
  2553. Closes #392
  2554. See merge request libtiff/libtiff!314
  2555. 2022-03-08 Even Rouault <even.rouault@spatialys.com>
  2556. Merge branch 'issue-393' into 'master'
  2557. fix the FPE in tiffcrop (#393)
  2558. Closes #393
  2559. See merge request libtiff/libtiff!310
  2560. 2022-03-08 4ugustus <wangdw.augustus@qq.com>
  2561. fix the FPE in tiffcrop (#393)
  2562. 2022-03-08 Even Rouault <even.rouault@spatialys.com>
  2563. Merge branch 'kmilos-master-patch-56785' into 'master'
  2564. Fix pkgconf file relative paths
  2565. Closes #394
  2566. See merge request libtiff/libtiff!309
  2567. 2022-03-07 Augustus <wangdw.augustus@qq.com>
  2568. add checks for return value of limitMalloc (#392)
  2569. 2022-03-02 Miloš Komarčević <miloskomarcevic@aim.com>
  2570. Fix pkgconf file relative paths.
  2571. 2022-02-25 Even Rouault <even.rouault@spatialys.com>
  2572. Merge branch 'fix_385' into 'master'
  2573. tif_jbig.c: fix crash when reading a file with multiple IFD in memory-mapped...
  2574. Closes #385
  2575. See merge request libtiff/libtiff!306
  2576. 2022-02-24 Even Rouault <even.rouault@spatialys.com>
  2577. tif_jbig.c: fix crash when reading a file with multiple IFD in memory-mapped mode and when bit reversal is needed (fixes #385)
  2578. 2022-02-24 Even Rouault <even.rouault@spatialys.com>
  2579. Merge branch 'string_size_limit' into 'master'
  2580. _TIFFVSetField(): when passing a string without explicit length, check that...
  2581. See merge request libtiff/libtiff!304
  2582. 2022-02-24 Even Rouault <even.rouault@spatialys.com>
  2583. Merge branch 'TIFFClientOpen_cleanup' into 'master'
  2584. TIFFClientOpen(): remove useless initializations of tif_rawcc and tif_flags...
  2585. See merge request libtiff/libtiff!303
  2586. 2022-02-20 Even Rouault <even.rouault@spatialys.com>
  2587. Remove extra word in comment.
  2588. TIFFPrintDirectory(): avoid potential multi-threading issue when reading the DotRange tag
  2589. The severity of the issue would be low (mix of values displayed) and the
  2590. time window where that would occur would be short.
  2591. Constify signature of _TIFFsetXXXXArray() functions, and remove unused _TIFFsetString()
  2592. _TIFFVSetField(): when passing a string without explicit length, check that the length doesn't except the 1 << 31 maximum bytes we support
  2593. 2022-02-19 Even Rouault <even.rouault@spatialys.com>
  2594. tiffsplit.c: fix use after free introduced in master per commit 8ed97f401552a2b4300d3c489b03dcada86a21fd (related to #290)
  2595. 2022-02-19 Even Rouault <even.rouault@spatialys.com>
  2596. Merge branch 'Fix_Issue#284' into 'master'
  2597. tiff2ps: In limitMalloc() check for negative size (fixes #284)
  2598. Closes #284
  2599. See merge request libtiff/libtiff!300
  2600. 2022-02-19 Su Laus <sulau@freenet.de>
  2601. tiff2ps: In limitMalloc() check for negative size (fixes #284)
  2602. 2022-02-19 Even Rouault <even.rouault@spatialys.com>
  2603. Merge branch 'fix_288' into 'master'
  2604. tiffinfo: limit more memory allocations using -M switch (fixes #288)
  2605. Closes #288
  2606. See merge request libtiff/libtiff!299
  2607. 2022-02-19 Even Rouault <even.rouault@spatialys.com>
  2608. Merge branch 'Fix_Issue#290' into 'master'
  2609. tiffsplit: limitMalloc() and getopt() introduced and more error messages. (fixes #290)
  2610. Closes #290
  2611. See merge request libtiff/libtiff!301
  2612. 2022-02-19 Su Laus <sulau@freenet.de>
  2613. tiffsplit: limitMalloc() and getopt() introduced and more error messages. (fixes #290)
  2614. 2022-02-19 Even Rouault <even.rouault@spatialys.com>
  2615. Merge branch 'Fix_Issue#273_#275' into 'master'
  2616. tiffcrop: buffsize check formula in loadImage() amended (fixes #273,#275)
  2617. Closes #275 et #273
  2618. See merge request libtiff/libtiff!302
  2619. 2022-02-19 Su Laus <sulau@freenet.de>
  2620. tiffcrop: buffsize check formula in loadImage() amended (fixes #273,#275)
  2621. 2022-02-19 Even Rouault <even.rouault@spatialys.com>
  2622. TIFFClientOpen(): remove useless initializations of tif_rawcc and tif_flags after TIFFReadDirectory()
  2623. Those initializations date back to the initial commit of libtiff, but I
  2624. strongly suspect there are no longer needed those days.
  2625. Setting tif_rawcc to (tmsize_t)-1 is weird. AFAICS, nowhere else in the library
  2626. -1 is used as a special markeri for that field. Immediately after TIFFReadDirectory()
  2627. returns it is set to 0, and this is the value used in tif_read.c/tif_write.c to
  2628. reset it.
  2629. And setting the TIFF_BUFFERSETUP bit of tif_flags is even more
  2630. suspicious as the only place where it is set otherwise is in
  2631. TIFFWriteBufferSetup(). I suspect this bogus setting of the flag was the
  2632. reason for commit dbf2339a1 where BUFFERCHECK() in addition to checking
  2633. the bit also checked the tif_rawdata against nullptr.
  2634. If setting those 2 fields was needed, it would mean that TIFFClientOpen() with the
  2635. 'h' hint to disable automatic TIFFReadDirectory() would be broken,
  2636. because someone issuing a manual TIFFReadDirectory() couldn't set them,
  2637. as being private members.
  2638. The libtiff test suite is happy with that change, and the GDAL one too.
  2639. 2022-02-19 Even Rouault <even.rouault@spatialys.com>
  2640. TIFFFetchNormalTag(): speed optimization when reading a (very large) nul-terminated ASCII tag
  2641. TIFFWriteDirectoryTagData(): turn assertion on data length into a runtime check
  2642. For example, the assertion could actually be triggered when writing an
  2643. ASCII tag with more than 1 << 31 bytes.
  2644. 2022-02-17 Even Rouault <even.rouault@spatialys.com>
  2645. TIFFFetchNormalTag(): avoid calling memcpy() with a null source pointer and size of zero (fixes #383)
  2646. 2022-02-15 Roger Leigh <rleigh@codelibre.net>
  2647. Merge branch 'tl/fix-cpack' into 'master'
  2648. Fix packaging with CPack
  2649. See merge request libtiff/libtiff!292
  2650. 2022-02-11 Even Rouault <even.rouault@spatialys.com>
  2651. tiffinfo: limit more memory allocations using -M switch (fixes #288)
  2652. tif_dirwrite.c: take into account COMPRESSION_JXL.
  2653. 2022-02-11 Even Rouault <even.rouault@spatialys.com>
  2654. Merge branch 'predictor_2_64bit' into 'master'
  2655. Predictor 2 (horizontal differentiation): support 64-bit
  2656. See merge request libtiff/libtiff!296
  2657. 2022-02-10 Even Rouault <even.rouault@spatialys.com>
  2658. Merge branch 'Fix_Issue#365' into 'master'
  2659. tiff2pdf: Fixes issues #365, #258 and #257 related to initializing 't2p->pdf_compressionquality'.
  2660. Closes #257, #258 et #365
  2661. See merge request libtiff/libtiff!297
  2662. 2022-02-10 Su Laus <sulau@freenet.de>
  2663. tiff2pdf: Fixes issues #365, #258 and #257 related to initializing 't2p->pdf_compressionquality'.
  2664. 2022-02-09 Even Rouault <even.rouault@spatialys.com>
  2665. Predictor 2 (horizontal differentiation): support 64-bit.
  2666. There's no reason not to support 64-bit. The TIFF 6 specification
  2667. doesn't say anything about that (and even mention 4-bit, which we don't
  2668. support)
  2669. 2022-02-09 Even Rouault <even.rouault@spatialys.com>
  2670. Merge branch 'Fix_Issue#352' into 'master'
  2671. tiffcrop.c: Fix issue #352 heap-buffer-overflow by correcting uint32_t underflow.
  2672. Closes #352
  2673. See merge request libtiff/libtiff!294
  2674. 2022-02-09 Su Laus <sulau@freenet.de>
  2675. tiffcrop.c: Fix issue #352 heap-buffer-overflow by correcting uint32_t underflow.
  2676. 2022-02-08 Even Rouault <even.rouault@spatialys.com>
  2677. Merge branch 'custom_dir_EXIF_Coverity_fixes' into 'master'
  2678. Fix Coverity Scan report issues for custom_dir_EXIF_231.c and test_directory.c
  2679. See merge request libtiff/libtiff!295
  2680. 2022-02-08 Su Laus <sulau@freenet.de>
  2681. Fix Coverity Scan report issues for custom_dir_EXIF_231.c and test_directory.c
  2682. 2022-02-06 Roger Leigh <rleigh@codelibre.net>
  2683. Merge branch 'cmake-test' into 'master'
  2684. Correct CMake testing
  2685. Closes #317
  2686. See merge request libtiff/libtiff!291
  2687. 2022-02-06 Even Rouault <even.rouault@spatialys.com>
  2688. LogLuvEncode32(): avoid undefined behaviour of left shift on a signed integer
  2689. TIFFFetchStripThing(): avoid calling memcpy() with a null source pointer and size of zero (fixes #362)
  2690. 2022-02-05 Even Rouault <even.rouault@spatialys.com>
  2691. TIFFReadDirectory(): avoid calling memcpy() with a null source pointer and size of zero (fixes #362)
  2692. 2022-01-29 Even Rouault <even.rouault@spatialys.com>
  2693. Merge branch 'Jamaika1-master-patch-68264' into 'master'
  2694. Added stdlib.h
  2695. See merge request libtiff/libtiff!293
  2696. 2022-01-29 Jamaika <lukaszcz18@wp.pl>
  2697. tif_win32.c: include stdlib.h.
  2698. 2022-01-28 Timothy Lyanguzov <timothy.lyanguzov@sap.com>
  2699. Fix packaging with CPack.
  2700. Replace all CMAKE_INSTALL_FULL_<DIR> with CMAKE_INSTALL_<DIR> to allow CPack setting CMAKE_INSTALL_PREFIX
  2701. 2022-01-25 Even Rouault <even.rouault@spatialys.com>
  2702. Merge branch 'master' into 'master'
  2703. Fix the global-buffer-overflow in tiffset
  2704. See merge request libtiff/libtiff!287
  2705. 2022-01-25 4ugustus <wangdw.augustus@qq.com>
  2706. tiffset: fix global-buffer-overflow for ASCII tags where count is required (fixes #355)
  2707. 2022-01-23 Roger Leigh <rleigh@codelibre.net>
  2708. Merge branch 'autogen' into 'master'
  2709. Fix autogen.sh permissions issues during mv
  2710. See merge request libtiff/libtiff!290
  2711. 2022-01-23 Roger Leigh <rleigh@codelibre.net>
  2712. Correct CMake testing.
  2713. * Use functions rather than macros to avoid problems with variables in
  2714. conditions (since macro arguments are not variables)
  2715. * Conditionally add to file lists and test program lists based upon the
  2716. configuration options (e.g. JPEG and old-JPEG availability)
  2717. * Sync tests, files and option usage with current automake usage
  2718. 2022-01-19 Will Cohen <willcohen@users.noreply.github.com>
  2719. autogen.sh: mv -f for config.sub and config.guess.
  2720. 2022-01-12 Even Rouault <even.rouault@spatialys.com>
  2721. TIFFYCbCrToRGBInit(): avoid Integer-overflow in gdal_TIFFYCbCrToRGBInit. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=43559
  2722. 2022-01-10 Even Rouault <even.rouault@spatialys.com>
  2723. Merge branch 'fix_TIFFFillStrip_wrong_check' into 'master'
  2724. Fix sanity check in TIFFFillStrip()/TIFFFillStrile()
  2725. See merge request libtiff/libtiff!288
  2726. 2022-01-10 Even Rouault <even.rouault@spatialys.com>
  2727. TIFFFillStrip()/TIFFFillStrile(): remove useless test.
  2728. Fix sanity check in TIFFFillStrip()/TIFFFillStrile()
  2729. A sanity check comparing the compressed vs uncompressed file that was
  2730. originally written 'correctly' but relied on undefined behaviour was
  2731. changed in 1b5e3b6a23827c33acf19ad50ce5ce78f12b3773 in an incorrect way.
  2732. Fix that. Credits to @burn for spotting this in
  2733. https://gitlab.com/libtiff/libtiff/-/issues/343#note_806089714
  2734. 2021-12-29 Even Rouault <even.rouault@spatialys.com>
  2735. Merge branch 'Fix_FieldName_NULL' into 'master'
  2736. Fix Issue #354 Segmentation Fault due to field_name=NULL
  2737. See merge request libtiff/libtiff!285
  2738. 2021-12-29 Even Rouault <even.rouault@spatialys.com>
  2739. Merge branch 'mingw-static' into 'master'
  2740. build: Fix static library imports in mingw
  2741. See merge request libtiff/libtiff!286
  2742. 2021-12-29 Biswapriyo Nath <nathbappai@gmail.com>
  2743. build: Fix static library imports in mingw.
  2744. This defines LERC_STATIC while creating libtiff static library
  2745. in Win32 platform in presence of lerc library. Otherwise, the
  2746. static library import lerc APIs with dllimport attribute and
  2747. thus linked with shared lerc library.
  2748. 2021-12-28 Su_Laus <sulau@freenet.de>
  2749. Fix Issue #354 Segmentation Fault due to field_name=NULL.
  2750. 2021-12-17 Even Rouault <even.rouault@spatialys.com>
  2751. Merge branch 'fix_342' into 'master'
  2752. TIFFGetField(TIFFTAG_STRIPBYTECOUNTS/TIFFTAG_STRIPOFFSETS): return error if...
  2753. Closes #342
  2754. See merge request libtiff/libtiff!283
  2755. 2021-12-16 Even Rouault <even.rouault@spatialys.com>
  2756. TIFFGetField(TIFFTAG_STRIPBYTECOUNTS/TIFFTAG_STRIPOFFSETS): return error if returned pointer is NULL (fixes #342)
  2757. tiff2pdf: validate TIFFGetField(input, TIFFTAG_STRIPBYTECOUNTS, &sbc) return (fixes #342)
  2758. 2021-12-16 Even Rouault <even.rouault@spatialys.com>
  2759. Merge branch 'master' into 'master'
  2760. fix raw2tiff floating point exception(fixes #338)
  2761. Closes #338
  2762. See merge request libtiff/libtiff!282
  2763. 2021-12-16 t.feng <t.feng94@foxmail.com>
  2764. raw2tiff: check that band number if not zero to avoid floating point exception(fixes #338)
  2765. 2021-12-14 Even Rouault <even.rouault@spatialys.com>
  2766. Merge branch 'fix_337' into 'master'
  2767. OJPEG: avoid assertion when using TIFFReadScanline() (fixes #337)
  2768. Closes #337
  2769. See merge request libtiff/libtiff!280
  2770. 2021-12-13 Even Rouault <even.rouault@spatialys.com>
  2771. OJPEG: avoid assertion when using TIFFReadScanline() (fixes #337)
  2772. Note: my analysis of the issue would be that the use of the scanline API
  2773. is currently probably broken with OJPEG.
  2774. 2021-12-10 Even Rouault <even.rouault@spatialys.com>
  2775. JPEG 12bit: make it easier for GDAL's RENAME_INTERNAL_LIBTIFF_SYMBOLS mode
  2776. 2021-12-09 Even Rouault <even.rouault@spatialys.com>
  2777. tif_lzw.c: other warning fixes.
  2778. tif_lzw.c: fix warnings of previous commit.
  2779. 2021-12-09 Even Rouault <even.rouault@spatialys.com>
  2780. Merge branch 'lzw_2gb_windows' into 'master'
  2781. LZW codec: fix support for strips/tiles > 2 GB on Windows
  2782. See merge request libtiff/libtiff!279
  2783. 2021-12-08 Even Rouault <even.rouault@spatialys.com>
  2784. LZW codec: fix support for strips/tiles > 2 GB on Windows.
  2785. 2021-12-07 Even Rouault <even.rouault@spatialys.com>
  2786. Merge branch 'fix_287' into 'master'
  2787. tiffinfo: add a -M switch to define the maximum heap allocation, and default...
  2788. Closes #287
  2789. See merge request libtiff/libtiff!278
  2790. 2021-12-06 Even Rouault <even.rouault@spatialys.com>
  2791. Merge branch 'fix_319' into 'master'
  2792. TIFFReadDirectory: fix OJPEG hack (fixes #319)
  2793. Closes #319
  2794. See merge request libtiff/libtiff!277
  2795. 2021-12-06 Even Rouault <even.rouault@spatialys.com>
  2796. Merge branch 'fix_309' into 'master'
  2797. TIFFAppendToStrip(): fix rewrite-in-place logic (fixes #309)
  2798. Closes #309
  2799. See merge request libtiff/libtiff!276
  2800. 2021-12-05 Even Rouault <even.rouault@spatialys.com>
  2801. Merge branch 'b1' into 'master'
  2802. Fix resource leak on error path
  2803. See merge request libtiff/libtiff!263
  2804. 2021-12-05 bonniegong <yuanjungong96@gmail.com>
  2805. rast2tiff: Fix resource leak on error path.
  2806. 2021-12-05 Even Rouault <even.rouault@spatialys.com>
  2807. Merge branch 'tiffsplit-leak' into 'master'
  2808. tiffsplit.c: Fix memleak before exit
  2809. See merge request libtiff/libtiff!270
  2810. 2021-12-05 Even Rouault <even.rouault@spatialys.com>
  2811. tiffinfo: add a -M switch to define the maximum heap allocation, and default it to 256 MiB (fixes #287)
  2812. tiffinfo: fix read of invalid pointer in TIFFReadRawDataTiled() (fixes #295)
  2813. 2021-12-05 Even Rouault <even.rouault@spatialys.com>
  2814. TIFFReadDirectory: fix OJPEG hack (fixes #319)
  2815. to avoid having the size of the strip arrays inconsistent with the
  2816. number of strips returned by TIFFNumberOfStrips(), which may cause
  2817. out-ouf-bounds array read afterwards.
  2818. One of the OJPEG hack that alters SamplesPerPixel may influence the
  2819. number of strips. Hence compute tif_dir.td_nstrips only afterwards.
  2820. 2021-12-04 Even Rouault <even.rouault@spatialys.com>
  2821. TIFFAppendToStrip(): fix rewrite-in-place logic (fixes #309)
  2822. Properly reset tif_curoff when writing strips/tiles
  2823. 2021-12-03 Even Rouault <even.rouault@spatialys.com>
  2824. TIFFReInitJPEG_12(): avoid warning about unused variable in -DNDEBUG.
  2825. 2021-12-01 Even Rouault <even.rouault@spatialys.com>
  2826. Merge branch 'fix_316' into 'master'
  2827. TIFFReadCustomDirectory(): avoid crash when reading SubjectDistance tag on a non EXIF directory
  2828. Closes #316
  2829. See merge request libtiff/libtiff!273
  2830. 2021-12-01 Even Rouault <even.rouault@spatialys.com>
  2831. Merge branch 'VisualStudio_warnings_suppress' into 'master'
  2832. Suppress unnecessary warnings in Visual Studio in AppVeyor test.
  2833. See merge request libtiff/libtiff!234
  2834. 2021-11-30 Even Rouault <even.rouault@spatialys.com>
  2835. TIFFReadCustomDirectory(): avoid crash when reading SubjectDistance tag on a non EXIF directory
  2836. Fixes #316
  2837. The Valgrind trace was
  2838. ```
  2839. TIFFReadCustomDirectory: Warning, Unknown field with tag 37382 (0x9206) encountered.
  2840. ==3277355== Invalid read of size 1
  2841. ==3277355== at 0x4842B60: memmove (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
  2842. ==3277355== by 0x48BB799: _TIFFmemcpy (tif_unix.c:346)
  2843. ==3277355== by 0x485B3CB: _TIFFVSetField (tif_dir.c:647)
  2844. ==3277355== by 0x485C125: TIFFVSetField (tif_dir.c:890)
  2845. ==3277355== by 0x485BEDC: TIFFSetField (tif_dir.c:834)
  2846. ==3277355== by 0x486DA9A: TIFFFetchSubjectDistance (tif_dirread.c:5826)
  2847. ==3277355== by 0x4869E35: TIFFReadCustomDirectory (tif_dirread.c:4530)
  2848. ==3277355== by 0x4869F0A: TIFFReadGPSDirectory (tif_dirread.c:4564)
  2849. ==3277355== by 0x10AA7A: main (tiffinfo.c:171)
  2850. ==3277355== Address 0x3fc856aaaaaaaaab is not stack'd, malloc'd or (recently) free'd
  2851. ==3277355==
  2852. ```
  2853. 2021-11-29 Even Rouault <even.rouault@spatialys.com>
  2854. Merge branch 'add-null-check' into 'master'
  2855. Added missing null check.
  2856. See merge request libtiff/libtiff!274
  2857. 2021-11-28 Dirk Lemstra <dirk@lemstra.org>
  2858. Added missing null check.
  2859. 2021-11-26 Even Rouault <even.rouault@spatialys.com>
  2860. tif_print.c: remove duplicated if() in previous commit.
  2861. 2021-11-26 Even Rouault <even.rouault@spatialys.com>
  2862. Merge branch 'GPS_Print_BugFix' into 'master'
  2863. Fix Segmentation fault printing GPS directory if Altitude tag is present (tif_print.c/tiffinfo.c)
  2864. See merge request libtiff/libtiff!272
  2865. 2021-11-26 Su Laus <sulau@freenet.de>
  2866. Fix Segmentation fault printing GPS directory if Altitude tag is present (tif_print.c/tiffinfo.c)
  2867. 2021-11-01 Even Rouault <even.rouault@spatialys.com>
  2868. Merge branch 'cmake_tiffconf' into 'master'
  2869. Fix STRIPCHOP_DEFAULT value in CMake builds
  2870. See merge request libtiff/libtiff!271
  2871. 2021-11-01 Even Rouault <even.rouault@spatialys.com>
  2872. Fix STRIPCHOP_DEFAULT value in CMake builds.
  2873. CMake builds erroneously used value 1 instead of TIFF_STRIPCHOP, which
  2874. resulted in strip chopping not being enabled by default.
  2875. 2021-10-26 Even Rouault <even.rouault@spatialys.com>
  2876. tif_jpeg.c: typo fix.
  2877. 2021-10-24 Han Han <hanhanzhiyeqianke@gmail.com>
  2878. tiffsplit.c: Fix memleak before exit.
  2879. Details of the memleak:
  2880. $ valgrind --leak-check=full tiffsplit id:001763,sync:fuzzer07,src:001641,+cov
  2881. ==2090657==
  2882. ==2090657== HEAP SUMMARY:
  2883. ==2090657== in use at exit: 13,517 bytes in 17 blocks
  2884. ==2090657== total heap usage: 41 allocs, 24 frees, 29,351 bytes allocated
  2885. ==2090657==
  2886. ==2090657== 2,473 (1,249 direct, 1,224 indirect) bytes in 1 blocks are definitely lost in loss record 10 of 13
  2887. ==2090657== at 0x484086F: malloc (vg_replace_malloc.c:381)
  2888. ==2090657== by 0x48BF35C: TIFFClientOpen (tif_open.c:118)
  2889. ==2090657== by 0x48CF058: TIFFFdOpen (tif_unix.c:209)
  2890. ==2090657== by 0x48CF0C4: TIFFOpen (tif_unix.c:248)
  2891. ==2090657== by 0x10954C: main (tiffsplit.c:91)
  2892. ==2090657==
  2893. ==2090657== 11,044 (1,300 direct, 9,744 indirect) bytes in 1 blocks are definitely lost in loss record 13 of 13
  2894. ==2090657== at 0x484086F: malloc (vg_replace_malloc.c:381)
  2895. ==2090657== by 0x48BF35C: TIFFClientOpen (tif_open.c:118)
  2896. ==2090657== by 0x48CF058: TIFFFdOpen (tif_unix.c:209)
  2897. ==2090657== by 0x48CF0C4: TIFFOpen (tif_unix.c:248)
  2898. ==2090657== by 0x1093D9: main (tiffsplit.c:75)
  2899. ==2090657==
  2900. ==2090657== LEAK SUMMARY:
  2901. ==2090657== definitely lost: 2,549 bytes in 2 blocks
  2902. ==2090657== indirectly lost: 10,968 bytes in 15 blocks
  2903. ==2090657== possibly lost: 0 bytes in 0 blocks
  2904. ==2090657== still reachable: 0 bytes in 0 blocks
  2905. ==2090657== suppressed: 0 bytes in 0 blocks
  2906. ==2090657==
  2907. ==2090657== For lists of detected and suppressed errors, rerun with: -s
  2908. ==2090657== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0)
  2909. 2021-10-20 Even Rouault <even.rouault@spatialys.com>
  2910. tif_webp.c: add explicit cast to please MSVC verbose warnings.
  2911. tif_webp.c: white space fixing.
  2912. 2021-10-04 Even Rouault <even.rouault@spatialys.com>
  2913. Merge branch 'work/amyspark/psd-blobs' into 'master'
  2914. Enable writing Photoshop blobs
  2915. See merge request libtiff/libtiff!269
  2916. 2021-10-04 L. E. Segovia <amy@amyspark.me>
  2917. Enable writing Photoshop blobs.
  2918. 2021-09-29 Even Rouault <even.rouault@spatialys.com>
  2919. Merge branch 'remove_packbits_hack' into 'master'
  2920. PackBitsDecode: remove hack for when char is unsigned.
  2921. See merge request libtiff/libtiff!267
  2922. 2021-09-28 Even Rouault <even.rouault@spatialys.com>
  2923. PackBitsDecode: remove hack for when char is unsigned.
  2924. The function has a hack for platforms where char is unsigned. This is
  2925. better replaced by making bp a int8_t* pointer, which is guaranteed to
  2926. be signed.
  2927. 2021-09-27 Even Rouault <even.rouault@spatialys.com>
  2928. tiffcrop.c: remove useless 'set but not read' variables.
  2929. 2021-09-23 Even Rouault <even.rouault@spatialys.com>
  2930. Merge branch 'fix_gdal_4538' into 'master'
  2931. TIFFAppendToStrip(): fix rewrite-in-place logic
  2932. See merge request libtiff/libtiff!266
  2933. 2021-09-23 Even Rouault <even.rouault@spatialys.com>
  2934. TIFFAppendToStrip(): fix rewrite-in-place logic.
  2935. reproducible in particular with packbits compression.
  2936. Fixes https://github.com/OSGeo/gdal/issues/4538
  2937. 2021-09-17 Even Rouault <even.rouault@spatialys.com>
  2938. tif_lzw.c: silence compiler warning about set but not used variable with recent clang
  2939. 2021-09-07 Even Rouault <even.rouault@spatialys.com>
  2940. Merge branch 'fix_cygwin' into 'master'
  2941. Fix build warnings on cygwin about 'argument 1 of type 'float[3]' with...
  2942. See merge request libtiff/libtiff!265
  2943. 2021-09-06 Even Rouault <even.rouault@spatialys.com>
  2944. test/rational_precision2double.c: add missing curly braces to fix -Werror=misleading-indentation
  2945. 2021-09-05 Even Rouault <even.rouault@spatialys.com>
  2946. Fix build warnings on cygwin about 'argument 1 of type 'float[3]' with mismatched bound [-Werror=array-parameter=]'
  2947. 2021-09-05 Even Rouault <even.rouault@spatialys.com>
  2948. Merge branch 'rewrite-fix' into 'master'
  2949. Fix TIFFRewriteDirectory discarding directories after the rewritten one
  2950. See merge request libtiff/libtiff!264
  2951. 2021-09-05 Facundo Tuesca <facu@tuesca.com>
  2952. tif_dirwrite.c: Fix TIFFRewriteDirectory discarding directories.
  2953. This fixes a bug caused by the `tif_lastdiroff` optimization when
  2954. rewriting directories.
  2955. Rewriting the Nth directory temporarily zeroes the pointer to it
  2956. (located in the N-1th directory) and relies on `TIFFLinkDirectory`
  2957. traversing the whole directory list to find the zeroed pointer and
  2958. linking the rewritten directory to it. Since `TIFFLinkDirectory` skips
  2959. the traversal when `tif_lastdiroff` is set, this change unsets it
  2960. to force the full traversal when rewriting a directory.
  2961. A test to catch this particular issue is also added.
  2962. 2021-09-01 Even Rouault <even.rouault@spatialys.com>
  2963. test_directory.c: fix compiler warnings.
  2964. 2021-09-01 Even Rouault <even.rouault@spatialys.com>
  2965. Merge branch 'multipage-optimization' into 'master'
  2966. Keep track of last directory to improve performance for large multi-page files
  2967. See merge request libtiff/libtiff!262
  2968. 2021-08-28 Facundo Tuesca <facu@tuesca.com>
  2969. Add field to keep track of last written directory.
  2970. This adds a new `tif_lastdiroff` field to the TIFF data structure
  2971. and uses it to store the offset of the last written directory.
  2972. Appending a new directory required traversing the whole file
  2973. to find the last directory. By keeping track of its offset in this
  2974. new field, the search is no longer necessary.
  2975. Since this offset is only stored in-memory, the first directory
  2976. append after opening a file will have to transverse the whole
  2977. directory list. Subsequent calls will have access to the last
  2978. offset, avoiding the transversal.
  2979. 2021-08-13 Even Rouault <even.rouault@spatialys.com>
  2980. tif_jpeg.c: fix memory leak on error code path for JPEG 12 bit (CID 1086702)
  2981. 2021-07-29 Even Rouault <even.rouault@spatialys.com>
  2982. Merge branch 'jpeg12' into 'master'
  2983. Enable JPEG 12bit support with a libjpeg that has a different ABI than the one for 8bit support
  2984. See merge request libtiff/libtiff!261
  2985. 2021-07-28 Even Rouault <even.rouault@spatialys.com>
  2986. Reformat tif_jpeg.c and tif_jpeg_12.c with clang-format-10.
  2987. 2021-07-27 Even Rouault <even.rouault@spatialys.com>
  2988. Enable JPEG 12bit support with a libjpeg that has a different ABI than the one for 8bit support
  2989. See https://github.com/OSGeo/gdal/pull/4139 for more details
  2990. Note: this hasn't been tested for standalone libtiff builds.
  2991. 2021-07-09 Even Rouault <even.rouault@spatialys.com>
  2992. Merge branch 'wip/export-targets' into 'master'
  2993. Export tiff targets
  2994. See merge request libtiff/libtiff!258
  2995. 2021-07-09 Even Rouault <even.rouault@spatialys.com>
  2996. Merge branch 'pkgconfig' into 'master'
  2997. Add version and requirements to pc file
  2998. See merge request libtiff/libtiff!256
  2999. 2021-07-09 Kai Pastor <8989969-dg0yt@users.noreply.gitlab.com>
  3000. Fix version in libtiff-4.pc.in, and CMake build: Add requirements to pc file
  3001. 2021-07-09 Even Rouault <even.rouault@spatialys.com>
  3002. Merge branch 'cmake' into 'master'
  3003. Fix build issues with CMake 3.10
  3004. See merge request libtiff/libtiff!260
  3005. 2021-07-04 Kai Pastor <dg0yt@darc.de>
  3006. Fix reconfiguration with cmake.
  3007. Fix build with CMake 3.10.
  3008. 2021-06-28 Milian Wolff <milian.wolff@kdab.com>
  3009. Export tiff targets.
  3010. Fixes build when including libtiff as a cmake subproject into
  3011. another project and then installing a target from there which
  3012. depends on tiff. For example we could end up with:
  3013. ```
  3014. CMake Error in 3rdParty/diplib/CMakeLists.txt:
  3015. export called with target "DIP" which requires target "tiff" that is not in
  3016. any export set.
  3017. ```
  3018. 2021-06-21 Even Rouault <even.rouault@spatialys.com>
  3019. Merge branch 'libjpeg9d_support_simplification' into 'master'
  3020. tif_jpeg.c: simplify libjpeg 9d support (refs #266)
  3021. See merge request libtiff/libtiff!257
  3022. 2021-06-20 Even Rouault <even.rouault@spatialys.com>
  3023. tif_jpeg.c: simplify libjpeg 9d support (refs #266)
  3024. Credits to Guido Vollbeding for the suggestion
  3025. 2021-06-15 Even Rouault <even.rouault@spatialys.com>
  3026. Merge branch 'jpeg_in_tiff_jpeg_9d' into 'master'
  3027. tif_jpeg.c: workaround bug of libjpeg 9d that defers Huffman table creation
  3028. Closes #266
  3029. See merge request libtiff/libtiff!255
  3030. 2021-06-15 Even Rouault <even.rouault@spatialys.com>
  3031. Merge branch 'jpeg_disable_progressive_with_mozjpeg' into 'master'
  3032. tif_jpeg.c: do not emit progressive scans with mozjpeg and force optimize_coding
  3033. See merge request libtiff/libtiff!254
  3034. 2021-06-12 Even Rouault <even.rouault@spatialys.com>
  3035. tif_jpeg.c: with mozjpeg, disable emission of Huffman tables in JpegTables tag, and use optimize_coding
  3036. 2021-06-10 Even Rouault <even.rouault@spatialys.com>
  3037. tif_jpeg.c: workaround bug of libjpeg 9d that defers Huffman table creation
  3038. Fixes #266
  3039. libjpeg-9d no longer creates default Huffman tables in
  3040. jpeg_set_defaults(), which make their emission in the JpegTables tag no
  3041. longer possible. Workaround that by borrowing code from libjpeg to
  3042. manually create them when they are not initialized.
  3043. 2021-06-10 Even Rouault <even.rouault@spatialys.com>
  3044. tif_jpeg.c: do not emit progressive scans with mozjpeg.
  3045. Relates to #266
  3046. - On writing, explicitly disable progressive scans, which is normally
  3047. not enabled, except with mozjpeg.
  3048. - On reading, emit a warning when encountering progressive scans.
  3049. 2021-06-10 Even Rouault <even.rouault@spatialys.com>
  3050. Merge branch 'fix-263' into 'master'
  3051. Fix memory leak in tiff2pdf
  3052. See merge request libtiff/libtiff!249
  3053. 2021-06-09 Even Rouault <even.rouault@spatialys.com>
  3054. Merge branch 'diizzyy-master-patch-20521' into 'master'
  3055. html: Add missing pages when using CMake
  3056. See merge request libtiff/libtiff!242
  3057. 2021-06-09 Daniel E <daniel.engberg.lists@pyret.net>
  3058. html: Add missing pages when using CMake.
  3059. 2021-06-07 Even Rouault <even.rouault@spatialys.com>
  3060. Merge branch 'ci-reenable-cygwin' into 'master'
  3061. ci: Re-enable cygwin builds
  3062. See merge request libtiff/libtiff!252
  3063. 2021-06-06 Roger Leigh <rleigh@codelibre.net>
  3064. ci: Re-enable cygwin builds.
  3065. 2021-06-06 Even Rouault <even.rouault@spatialys.com>
  3066. Merge branch 'ci-arm64' into 'master'
  3067. ci: Add arm64 build
  3068. See merge request libtiff/libtiff!251
  3069. 2021-06-06 Roger Leigh <rleigh@codelibre.net>
  3070. ci: Add arm64 build.
  3071. 2021-06-05 Even Rouault <even.rouault@spatialys.com>
  3072. _TIFFRewriteField(): fix when writing a IFD with a single tile that is a sparse one, on big endian hosts
  3073. 2021-06-02 Timothy Lyanguzov <timothy.lyanguzov@sap.com>
  3074. Fix memory leak in tiff2pdf.
  3075. 2021-06-01 Even Rouault <even.rouault@spatialys.com>
  3076. Merge branch 'lzw_cleanup' into 'master'
  3077. tif_lzw.c: cleanup, no functional change
  3078. See merge request libtiff/libtiff!248
  3079. 2021-05-31 Even Rouault <even.rouault@spatialys.com>
  3080. tif_lzw.c: cleanup, no functional change.
  3081. 2021-05-22 Even Rouault <even.rouault@spatialys.com>
  3082. Merge branch 'appveyor_disable_cygwin' into 'master'
  3083. .appveyor.yml: disable cygwin configs for now as they are broken
  3084. See merge request libtiff/libtiff!247
  3085. 2021-05-22 Even Rouault <even.rouault@spatialys.com>
  3086. Merge branch 'zstd_reuse_objects' into 'master'
  3087. ZSTD codec: reuse compressor/decompressor objects
  3088. See merge request libtiff/libtiff!246
  3089. 2021-05-22 Even Rouault <even.rouault@spatialys.com>
  3090. .appveyor.yml: disable cygwin configs for now as they are broken.
  3091. ZSTD codec: reuse compressor/decompressor objects.
  3092. No need to recreate them each time in the PreEncode/Decode functions.
  3093. They can be reused if already existing.
  3094. 2021-05-08 Even Rouault <even.rouault@spatialys.com>
  3095. Merge branch 'adobedeflate-fix' into 'master'
  3096. Fix all remaining uses of legacy Deflate compression id and warn on use
  3097. See merge request libtiff/libtiff!245
  3098. 2021-05-08 David Ryskalczyk <david.rysk@gmail.com>
  3099. Fix all remaining uses of legacy Deflate compression id and warn on use.
  3100. 2021-05-06 Even Rouault <even.rouault@spatialys.com>
  3101. Merge branch 'improve_tiffinfo_tiffdump_for_gdal_tags' into 'master'
  3102. tiffinfo/tiffdump: improve output for GDAL tags
  3103. See merge request libtiff/libtiff!244
  3104. 2021-05-03 Even Rouault <even.rouault@spatialys.com>
  3105. Merge branch 'issue-252' into 'master'
  3106. Prevent adding root directory to include list
  3107. Closes #252 et #218
  3108. See merge request libtiff/libtiff!243
  3109. 2021-05-03 Even Rouault <even.rouault@spatialys.com>
  3110. tiffinfo/tiffdump: improve output for GDAL tags.
  3111. 2021-04-29 Timothy Lyanguzov <timothy.lyanguzov@sap.com>
  3112. Prevent adding root directory to include list.
  3113. there is a file VERSION in the root directory which clashes with C++20 standard header <version>
  3114. "config.h" file is created in "config" subdirectory to prevent adding "-I.." to generated Makefile
  3115. closes #218, #252
  3116. 2021-04-23 Laszlo Boszormenyi (GCS) <gcs@debian.org>
  3117. fix TIFFReadRawStrip man and HTML page typo.
  3118. From https://github.com/conda-forge/libtiff-feedstock/blob/master/recipe/patches/fix_TIFFReadRawStrip_man_page_typo.patch
  3119. 2021-04-20 Even Rouault <even.rouault@spatialys.com>
  3120. HOWTO-RELEASE: update.
  3121. 2021-04-18 Even Rouault <even.rouault@spatialys.com>
  3122. Merge branch 'lerc_zstd_deflate' into 'master'
  3123. Make LERC_SUPPORT conditional on ZLIB_SUPPORT. Make display of lerc options in tiffcp depend on actual zstd support.
  3124. See merge request libtiff/libtiff!239
  3125. 2021-04-18 Miguel Medalha <medalist@sapo.pt>
  3126. Make LERC_SUPPORT conditional on ZLIB_SUPPORT. Make display of lerc options in tiffcp depend on actual zstd support.
  3127. 2021-04-17 Even Rouault <even.rouault@spatialys.com>
  3128. Merge branch 'vtorri_xz' into 'master'
  3129. automatic creation of xz archive when running make distcheck
  3130. See merge request libtiff/libtiff!238
  3131. 2021-04-16 Even Rouault <even.rouault@spatialys.com>
  3132. iptcutil.c: fix bug in EOF comparison, spotted on NetBSD 9 earmv7hf-el.
  3133. 2021-04-16 Even Rouault <even.rouault@spatialys.com>
  3134. libtiff v4.3.0 released
  3135. 2021-04-15 Even Rouault <even.rouault@spatialys.com>
  3136. Merge branch 'libjpeg12_cmake' into 'master'
  3137. libtiff/tif_config.h.cmake.in: surround LIBJPEG_12_PATH by double quotes
  3138. See merge request libtiff/libtiff!237
  3139. 2021-04-15 Even Rouault <even.rouault@spatialys.com>
  3140. libtiff/tif_config.h.cmake.in: surround LIBJPEG_12_PATH by double quotes
  3141. 2021-04-14 Even Rouault <even.rouault@spatialys.com>
  3142. Merge branch 'lerc_api_change' into 'master'
  3143. tif_lerc.c: cope with API breakage in liblerc master
  3144. See merge request libtiff/libtiff!236
  3145. 2021-04-14 Even Rouault <even.rouault@spatialys.com>
  3146. tif_lerc.c: cope with API breakage in liblerc master.
  3147. 2021-04-08 Even Rouault <even.rouault@spatialys.com>
  3148. libtiff: remove remaining #ifdef WIN32 and use PRI formatting.
  3149. 2021-03-10 Even Rouault <even.rouault@spatialys.com>
  3150. Merge branch 'kmilos-master-patch-73187' into 'master'
  3151. tiffcp: Remove LZW help text, preset not supported
  3152. See merge request libtiff/libtiff!229
  3153. 2021-03-10 Miloš Komarčević <miloskomarcevic@aim.com>
  3154. tiffcp: Remove LZW help text, preset not supported.
  3155. 2021-03-10 Even Rouault <even.rouault@spatialys.com>
  3156. Merge branch 'feature/lerc' into 'master'
  3157. Add LERC Compression Plugin (closes: #213)
  3158. Closes #213
  3159. See merge request libtiff/libtiff!228
  3160. 2021-03-10 Even Rouault <even.rouault@spatialys.com>
  3161. Merge branch 'cmake-fixes' into 'master'
  3162. CMake fixes
  3163. Closes #246 et #245
  3164. See merge request libtiff/libtiff!232
  3165. 2021-03-09 Roger Leigh <rleigh@codelibre.net>
  3166. cmake: Correct FindCMath.
  3167. cmake: Correct ZSTD_USABLE typo.
  3168. 2021-03-07 Roger Leigh <rleigh@codelibre.net>
  3169. Merge branch 'cmake-find-lib-prefixes' into 'master'
  3170. cmake: Correct find lib prefixes for Deflate and JBIG
  3171. See merge request libtiff/libtiff!231
  3172. 2021-03-07 Roger Leigh <rleigh@codelibre.net>
  3173. cmake: FindJBIG uses lib prefix on Windows.
  3174. cmake: FindDeflate uses lib prefix on Windows.
  3175. 2021-03-07 Even Rouault <even.rouault@spatialys.com>
  3176. TWebPDecode(): avoid potential overflow on multiplication (CID 1472928)
  3177. TIFFReadDirEntryArrayWithLimit(): avoid false positive from Coverity Scan regarding out-of-bounds access (CID 1472927)
  3178. tif_dirwrite.c: avoid setting a variable that is not read afterwards.
  3179. 2021-03-07 Even Rouault <even.rouault@spatialys.com>
  3180. Merge branch 'coverity-fixes' into 'master'
  3181. Coverity fixes (high impact)
  3182. See merge request libtiff/libtiff!227
  3183. 2021-03-07 Roger Leigh <rleigh@codelibre.net>
  3184. Fix high-impact Coverity issues (resource leaks).
  3185. The issues are in the tests and tiffcrop, not the core library. Real issues, but not high risk.
  3186. Use to test if Coverity integration is performing properly on merge.
  3187. 2021-03-07 Even Rouault <even.rouault@spatialys.com>
  3188. Merge branch 'fix_tif_fax3_encoder_regression' into 'master'
  3189. tif_fax3.c: fix master regression in encoder
  3190. See merge request libtiff/libtiff!230
  3191. 2021-03-07 Even Rouault <even.rouault@spatialys.com>
  3192. tif_fax3.c: fix master regression in encoder.
  3193. Fix issue introduced in 39a74eede0455ec8ee334dcddf71f5354d508d8b
  3194. Spotted by gdal's tiff_write_76 test
  3195. 2021-03-07 Antonio Valentino <antonio.valentino@tiscali.it>
  3196. Add LERC support in CMake.
  3197. 2021-03-07 Antonio Valentino <Antonio.Valentino@esa.int>
  3198. Add LERC support in configure.ac and Makefile.am.
  3199. 2021-03-07 Antonio Valentino <antonio.valentino@tiscali.it>
  3200. Add LERC support to tiffcp.
  3201. 2021-03-07 Antonio Valentino <Antonio.Valentino@esa.int>
  3202. Add LERC plugin.
  3203. The lerc plugin code has been copied from GDAL.
  3204. 2021-03-06 Roger Leigh <rleigh@codelibre.net>
  3205. Merge branch 'display_tool_purpose' into 'master'
  3206. TIFF tools: insert a line of text summarizing each tool's purpose
  3207. See merge request libtiff/libtiff!214
  3208. 2021-03-06 Even Rouault <even.rouault@spatialys.com>
  3209. Merge branch 'cmake-update' into 'master'
  3210. CMake updates
  3211. See merge request libtiff/libtiff!224
  3212. 2021-03-06 Even Rouault <even.rouault@spatialys.com>
  3213. tiff.h: typo fix in comment.
  3214. 2021-02-15 Roger Leigh <rleigh@codelibre.net>
  3215. Merge branch 'remove-travis' into 'master'
  3216. ci: Remove unused Travis-CI support
  3217. See merge request libtiff/libtiff!226
  3218. 2021-02-14 Roger Leigh <rleigh@codelibre.net>
  3219. ci: Remove unused Travis-CI support.
  3220. 2021-02-14 Roger Leigh <rleigh@codelibre.net>
  3221. Merge branch 'ci-coverity' into 'master'
  3222. Enable Coverity static analysis with CI pipeline
  3223. See merge request libtiff/libtiff!225
  3224. 2021-02-14 Roger Leigh <rleigh@codelibre.net>
  3225. ci: Add Coverity static analysis job.
  3226. ci: Use custom libtiff CI image.
  3227. 2021-02-13 Roger Leigh <rleigh@codelibre.net>
  3228. cmake: Add release target.
  3229. cmake: Remove empty contrib files.
  3230. cmake: Tidy toplevel.
  3231. cmake: Move pkg-config support to PkgConfig.cmake.
  3232. cmake: Move library feature options to CXXLibraryFeatures.cmake.
  3233. cmake: Move C++ support to CXXLibrary.cmake.
  3234. cmake: Add FindCMath to handle libm linking portably.
  3235. cmake: Tidy unused includes.
  3236. cmake: Rename release date to build date.
  3237. cmake: Compute timestamp portably.
  3238. cmake: Remove remaining uses of report_values()
  3239. cmake: Move JPEG12 checks to JPEGCodec.cmake.
  3240. cmake: Move OpenGL checks to OpenGLChecks.cmake.
  3241. cmake: Move OpenGL checks to OpenGLChecks.cmake.
  3242. cmake: Move WebP codec support to WebPCodec.cmake.
  3243. cmake: Use imported targets for WebP.
  3244. cmake: Add FindWebP.
  3245. cmake: Move ZSTD codec support to ZSTDCodec.cmake.
  3246. cmake: Use imported targets for ZSTD.
  3247. cmake: Add FindZSTD.
  3248. cmake: Move LZMA codec support to LZMACodec.cmake.
  3249. cmake: Use imported targets for LibLZMA.
  3250. cmake: Move JBIG codec support to JBIGCodec.cmake.
  3251. cmake: Use imported targets for JBIG.
  3252. cmake: Add FindJBIG.
  3253. cmake: Move PixarLog codec support to PixarLogCodec.cmake.
  3254. cmake: Report system name in configuration report.
  3255. cmake: Move JPEG codec support to JPEGCodec.cmake.
  3256. cmake: Use imported targets for JPEG.
  3257. cmake: Move Deflate codec support to DeflateCodec.cmake.
  3258. cmake: Use imported targets for ZLIB and Deflate.
  3259. cmake: Add FindDeflate.
  3260. cmake: Move symbol checks to SymbolChecks.cmake.
  3261. cmake: Move include checks to IncludeChecks.cmake.
  3262. cmake: Move all autotools logic to separate files.
  3263. cmake: Move internal codec options to InternalCodecs.cmake.
  3264. cmake: Move LFS check to LargeFileSupport.cmake.
  3265. cmake: Move Win32 IO feature to WindowsIOFeature.cmake.
  3266. cmake: Move processor capability checks to ProcessorChecks.cmake.
  3267. cmake: Move type size checks to TypeSizeChecks.cmake.
  3268. cmake: Move linker checks to LinkerChecks.cmake.
  3269. cmake: Move warning options to CompilerChecks.
  3270. cmake: Move version introspection to AutotoolsVersion.cmake.
  3271. cmake: Move compiler checks to CompilerChecks.cmake.
  3272. cmake: Split into helper scripts.
  3273. 2021-02-08 Roger Leigh <rleigh@codelibre.net>
  3274. cmake: Use target_sources.
  3275. libport: Adjust header and library to only define and link if required.
  3276. * Make libport an OBJECT library when in use, otherwise a dummy
  3277. INTERFACE library
  3278. * libport.h will work if getopt is present or not present. If
  3279. present, will fall back to <unistd.h>, else will define
  3280. symbols
  3281. * Add generated libport_config.h to define HAVE_GETOPT and HAVE_UNISTD_H
  3282. * dummy.c no longer needed with CMake
  3283. * libtiff/libtiffxx no longer link with libport
  3284. cmake: Remove unnecessary extra_dist usage.
  3285. Only makes sense in the context of Automake. Was carried over
  3286. for reference while porting, but is not needed.
  3287. cmake: Update minimum version and policy version to 3.9.
  3288. 2021-02-08 Roger Leigh <rleigh@codelibre.net>
  3289. Merge branch 'remove-nmake' into 'master'
  3290. Remove NMake build support
  3291. See merge request libtiff/libtiff!223
  3292. 2021-02-08 Roger Leigh <rleigh@codelibre.net>
  3293. Remove NMake build support.
  3294. The functionality provided by the NMake build is now completely
  3295. superseded by the CMake build.
  3296. 2021-02-08 Even Rouault <even.rouault@spatialys.com>
  3297. Merge branch 'warning-fixes' into 'master'
  3298. Warning fixes
  3299. See merge request libtiff/libtiff!222
  3300. 2021-02-07 Miguel Medalha <medalist@sapo.pt>
  3301. Update tiffsplit.c.
  3302. Reinsert summary line lost after conflicting merge.
  3303. Merge branch 'master' into 'display_tool_purpose'
  3304. # Conflicts:
  3305. # tools/tiffsplit.c
  3306. 2021-02-06 Roger Leigh <rleigh@codelibre.net>
  3307. ci: Enable fatal warnings with -Werror for AppVeyor/GCC.
  3308. ci: Enable fatal warnings with -Werror for GitLab CI.
  3309. tif_zstd.c: Remove unused variable warning.
  3310. custom_dir_EXIF_231: Remove case statement fallthrough.
  3311. custom_dir_EXIF_231: Correct use of strncpy.
  3312. Correct include order.
  3313. Eliminate implicit fallthrough usage.
  3314. Use simple loops in place of manual loop unrolling. Rely on
  3315. the compiler optimiser to unroll loops when appropriate.
  3316. Suppress potential unused variable warning.
  3317. Suppress warnings or avoid case statement fallthrough.
  3318. 2021-02-05 Roger Leigh <rleigh@codelibre.net>
  3319. Merge branch 'c99-ssize_t-fixes' into 'master'
  3320. C99 ssize_t fixes
  3321. Closes #239
  3322. See merge request libtiff/libtiff!219
  3323. 2021-02-05 Even Rouault <even.rouault@spatialys.com>
  3324. Merge branch 'tiffsplit-too-many-args' into 'master'
  3325. tiffsplit.c: exit with EXIT_FAILURE if there are extra args on the command line
  3326. See merge request libtiff/libtiff!209
  3327. 2021-02-05 Roger Leigh <rleigh@codelibre.net>
  3328. Add additional TIFF_SSIZE_FORMAT uses.
  3329. 2021-02-04 Roger Leigh <rleigh@codelibre.net>
  3330. NMake fixes for size type formatting.
  3331. Add TIFF_SIZE_FORMAT for portable use of %z.
  3332. MinGW64 does support %z, but it issues a compiler warning.
  3333. Align Autoconf tif_config.h and CMake tif_config.cmake.in.
  3334. Use TIFF_SSIZE_FORMAT for formatting tmsize_t.
  3335. 2021-02-04 Even Rouault <even.rouault@spatialys.com>
  3336. Merge branch 'remove-lcc' into 'master'
  3337. Remove Makefile.lcc
  3338. See merge request libtiff/libtiff!221
  3339. 2021-02-04 Even Rouault <even.rouault@spatialys.com>
  3340. Merge branch 'remove-scons' into 'master'
  3341. Remove SCons build
  3342. See merge request libtiff/libtiff!220
  3343. 2021-02-03 Even Rouault <even.rouault@spatialys.com>
  3344. Merge branch 'c99-snprintf' into 'master'
  3345. Use C99 snprintf
  3346. See merge request libtiff/libtiff!217
  3347. 2021-02-03 Roger Leigh <rleigh@codelibre.net>
  3348. Merge branch 'tiff2ps-const' into 'master'
  3349. tiff2ps.c: string literals must be const char *, not char *
  3350. See merge request libtiff/libtiff!202
  3351. 2021-02-03 Roger Leigh <rleigh@codelibre.net>
  3352. Remove SCons build.
  3353. Unmaintained for 16 years.
  3354. 2021-02-03 Roger Leigh <rleigh@codelibre.net>
  3355. Merge branch 'codec_summary' into 'master'
  3356. Modify 'CMakeLists.txt' to produce a meaningful summary of external codecs
  3357. See merge request libtiff/libtiff!192
  3358. 2021-02-03 Roger Leigh <rleigh@codelibre.net>
  3359. Remove Makefile.lcc.
  3360. Unmaintained for 22 years.
  3361. 2021-02-02 Roger Leigh <rleigh@codelibre.net>
  3362. Merge branch 'ci-32-bit' into 'master'
  3363. ci: Build 32- and 64-bit MSVC variants
  3364. See merge request libtiff/libtiff!218
  3365. 2021-02-01 Roger Leigh <rleigh@codelibre.net>
  3366. ci: Build 32- and 64-bit MSVC variants.
  3367. Use C99 snprintf.
  3368. 2021-02-01 Even Rouault <even.rouault@spatialys.com>
  3369. Merge branch 'c99-strtol' into 'master'
  3370. Use C99 strtol, strtoul, strtoll and strtoull
  3371. See merge request libtiff/libtiff!216
  3372. 2021-01-31 Even Rouault <even.rouault@spatialys.com>
  3373. Merge branch 'c99-inline' into 'master'
  3374. Use C99 inline
  3375. See merge request libtiff/libtiff!215
  3376. 2021-01-31 Roger Leigh <rleigh@codelibre.net>
  3377. Use C99 strtol, strtoul, strtoll and strtoull.
  3378. tif_fax3: Use C99 inline.
  3379. Remove inline feature tests and defines.
  3380. Available as a standard feature with C99.
  3381. 2021-01-30 Miguel Medalha <medalist@sapo.pt>
  3382. Update raw2tiff.c (remove duplicate description of tool)
  3383. 2021-01-30 Roger Leigh <rleigh@codelibre.net>
  3384. Merge branch 'c99-format-strings' into 'master'
  3385. C99 format strings
  3386. See merge request libtiff/libtiff!211
  3387. 2021-01-29 Miguel Medalha <medalist@sapo.pt>
  3388. Update tiffdither.c (2 tabs caused slight misalignment of lines in usage info output)
  3389. 2021-01-28 Miguel Medalha <medalist@sapo.pt>
  3390. Update ppm2tiff.c (slight misalignment of lines in usage info output)
  3391. Update tiffset.c (small misalignment of lines in usage info output)
  3392. 2021-01-28 Medalha <medalist@sapo.pt>
  3393. Display tool purpose.
  3394. 2021-01-28 Thomas Bernard <miniupnp@free.fr>
  3395. tiff2ps.c: string literals must be const char *, not char *
  3396. 2021-01-28 Roger Leigh <rleigh@codelibre.net>
  3397. libtiff: Use PRI format flags and remove unnecessary casts.
  3398. 2021-01-27 Roger Leigh <rleigh@codelibre.net>
  3399. ascii_tag: Use PRI format flags and remove unnecessary casts.
  3400. check_tag: Use PRI format flags and remove unnecessary casts.
  3401. custom_dir_EXIF_231: Use PRI format flags and remove unnecessary casts.
  3402. short_tag: Use PRI format flags and remove unnecessary casts.
  3403. strip_rw: Use PRI format flags and remove unnecessary casts.
  3404. fax2tiff: Use PRI format flags and remove unnecessary casts.
  3405. ppm2tiff: Correct format strings.
  3406. raw2tiff: Use PRI format flags and remove unnecessary casts.
  3407. rgb2ycbcr: Use PRI format flags and remove unnecessary casts.
  3408. tiff2pdf: Use PRI format flags and remove unnecessary casts.
  3409. tiff2ps: Use PRI format flags and remove unnecessary casts.
  3410. tiff2rgba: Use PRI format flags and remove unnecessary casts.
  3411. tiffcmp: Use PRI format flags and remove unnecessary casts.
  3412. tiffcp: Use PRI format flags and remove unnecessary casts.
  3413. tiffcrop: Use PRI format flags and remove unnecessary casts.
  3414. tiffinfo: Use PRI format flags and remove unnecessary casts.
  3415. tiffdump: Use PRI format flags and remove unnecessary casts.
  3416. 2021-01-27 Even Rouault <even.rouault@spatialys.com>
  3417. Merge branch 'c99-require-stdtypes' into 'master'
  3418. Use standard C99 integer types
  3419. See merge request libtiff/libtiff!205
  3420. 2021-01-26 Even Rouault <even.rouault@spatialys.com>
  3421. Merge branch 'reserve_COMPRESSION_JXL' into 'master'
  3422. tiff.h: reserve COMPRESSION_JXL=50002 for JPEGXL
  3423. See merge request libtiff/libtiff!210
  3424. 2021-01-22 Even Rouault <even.rouault@spatialys.com>
  3425. tiff.h: reserve COMPRESSION_JXL=50002 for JPEGXL.
  3426. 2021-01-22 Kurt Schwehr <schwehr@google.com>
  3427. tiffsplit.c: exit with EXIT_FAILURE if there are extra args on the command line
  3428. e.g. tiffsplit in.tif a_prefix_ junk
  3429. 2021-01-22 Roger Leigh <rleigh@codelibre.net>
  3430. Add and enable TIFF_DISABLE_DEPRECATED for internal use.
  3431. Add typedef deprecations for GCC/Clang and MSVC.
  3432. Use standard C99 integer types.
  3433. 2021-01-20 Even Rouault <even.rouault@spatialys.com>
  3434. Merge branch 'ubuntu-zstd-wepb' into 'master'
  3435. gitlab-ci : use libzstd-dev and libwebp-dev ubuntu packages
  3436. See merge request libtiff/libtiff!208
  3437. 2021-01-20 Thomas Bernard <miniupnp@free.fr>
  3438. gitlab-ci : use libzstd-dev and libwebp-dev ubuntu packages.
  3439. should replace !206
  3440. 2021-01-20 Even Rouault <even.rouault@spatialys.com>
  3441. Merge branch 'issue-232' into 'master'
  3442. tiff2ps: exit the loop in case of error
  3443. Closes #232
  3444. See merge request libtiff/libtiff!201
  3445. 2021-01-20 Even Rouault <even.rouault@spatialys.com>
  3446. Merge branch 'tiffsplit-exit-status' into 'master'
  3447. tiffsplit: Exit with EXIT_FAILURE if unable to open the input file.
  3448. See merge request libtiff/libtiff!207
  3449. 2021-01-20 Even Rouault <even.rouault@spatialys.com>
  3450. Merge branch 'config-cleanup' into 'master'
  3451. Remove HAVE_INTTYPES_H, HAVE_LFIND & lfind, HAVE_SEARCH_H & include <search.h>
  3452. See merge request libtiff/libtiff!203
  3453. 2021-01-19 Kurt Schwehr <schwehr@google.com>
  3454. tiffsplit: Exit with EXIT_FAILURE if unable to open the input file.
  3455. 2021-01-18 Even Rouault <even.rouault@spatialys.com>
  3456. Merge branch 'tiffcmp' into 'master'
  3457. tiffcmp: fix comparison with pixels that are fractional number of bytes
  3458. Closes #53
  3459. See merge request libtiff/libtiff!141
  3460. 2021-01-15 Kurt Schwehr <schwehr@google.com>
  3461. CMakeLists.txt: Remove search for lfind.
  3462. Remove HAVE_INTTYPES_H, HAVE_LFIND & lfind, HAVE_SEARCH_H & include <search.h>
  3463. - HAVE_INTTYPES_H is replaced with TIFF_HAVE_INTTYPES_H
  3464. - tif_dirinfo.c has a static td_lfind
  3465. 2021-01-15 Thomas Bernard <miniupnp@free.fr>
  3466. tiffcmp: fix comparison with pixels that are fractional number of bytes
  3467. For example : 4bits per sample + 3 samples per pixel => 1.5 bytes per pixel
  3468. tiff2ps: exit the loop in case of error.
  3469. fixes #232
  3470. 2021-01-15 Even Rouault <even.rouault@spatialys.com>
  3471. Merge branch 'rm-strcasecmp' into 'master'
  3472. Remove port/strcasecmp.c as strcasecmp is not currently used in libtiff.
  3473. Closes #235
  3474. See merge request libtiff/libtiff!199
  3475. 2021-01-15 Even Rouault <even.rouault@spatialys.com>
  3476. Merge branch 'std-int-types' into 'master'
  3477. Use standard C99 integer types
  3478. See merge request libtiff/libtiff!185
  3479. 2021-01-13 Kurt Schwehr <schwehr@google.com>
  3480. Remove port/strcasecmp.c as strcasecmp is not currently used in libtiff.
  3481. Fixes #235
  3482. 2021-01-10 Miguel Medalha <medalist@sapo.pt>
  3483. Update CMakeLists.txt. Delete unnecessary line from libdeflate codec support section
  3484. 2021-01-10 Roger Leigh <rleigh@codelibre.net>
  3485. Merge branch 'include_libport' into 'master'
  3486. tiff tools and libtiff/mkg3states: include 'libport.h', remove local definition of 'getopt()'
  3487. See merge request libtiff/libtiff!198
  3488. 2021-01-09 Miguel Medalha <medalist@sapo.pt>
  3489. Update CMakeLists.txt. Cleanup of indentation space. Removal of leading '/' from webp include dir.
  3490. 2021-01-09 miguel <medalist@sapo.pt>
  3491. cmake: Use target_include_directories correctly.
  3492. 2021-01-09 Roger Leigh <rleigh@codelibre.net>
  3493. cmake: Use target_include_directories correctly.
  3494. cmake: Drop unnecessary TOOL_INCLUDES.
  3495. 2021-01-07 Roger Leigh <rleigh@codelibre.net>
  3496. cmake: Use target_include_directories correctly.
  3497. 2021-01-07 miguel <medalist@sapo.pt>
  3498. tiff tools and libtiff/mkg3states: include 'libport.h', remove local definition of 'getopt()'
  3499. 2021-01-07 Miguel Medalha <medalist@sapo.pt>
  3500. Update CMakeLists.txt.
  3501. 2021-01-07 miguel <medalist@sapo.pt>
  3502. tiff tools: include 'libport.h', remove local definition of 'getopt()'
  3503. 2021-01-06 Roger Leigh <rleigh@codelibre.net>
  3504. Remove conditional use of <string.h>
  3505. cmake: Drop dlfcn.h check.
  3506. cmake: Remove duplicate line.
  3507. Use stdint.h types when available.
  3508. 2021-01-05 Olivier Paquet <olivier.paquet@gmail.com>
  3509. Merge branch 'iptcutil' into 'master'
  3510. contrib/iptcutil.c: set '#ifdef _WIN32' (was '#ifdef WIN32', which failed at build time)
  3511. See merge request libtiff/libtiff!197
  3512. 2021-01-05 miguel <medalist@sapo.pt>
  3513. tiff tools: include 'libport.h', remove local definition of 'getopt()'
  3514. contrib/iptcutil.c - set '#ifdef _WIN32' (was '#ifdef WIN32', which failed at build time)
  3515. 2021-01-04 Even Rouault <even.rouault@spatialys.com>
  3516. tools/CMakeLists.txt: add comment about rgb2ycbcr and thumbnail not to be installed
  3517. 2021-01-04 Even Rouault <even.rouault@spatialys.com>
  3518. Merge branch 'revert-5331ed49' into 'master'
  3519. Revert "Merge branch 'install_targets' into 'master'"
  3520. See merge request libtiff/libtiff!196
  3521. 2021-01-04 Even Rouault <even.rouault@spatialys.com>
  3522. Merge branch 'drop-wince' into 'master'
  3523. Remove non-functional WinCE support
  3524. See merge request libtiff/libtiff!188
  3525. 2021-01-04 Even Rouault <even.rouault@spatialys.com>
  3526. Merge branch 'drop-vms' into 'master'
  3527. Remove non-functional VMS support
  3528. See merge request libtiff/libtiff!187
  3529. 2021-01-03 Even Rouault <even.rouault@spatialys.com>
  3530. Revert "Merge branch 'install_targets' into 'master'"
  3531. This reverts merge request !193
  3532. 2021-01-03 Even Rouault <even.rouault@spatialys.com>
  3533. Merge branch 'tiffcp_b_parameter' into 'master'
  3534. tiffcp: Remove unnecessary reference to compression from usage info for -b parameter
  3535. See merge request libtiff/libtiff!189
  3536. 2021-01-03 Even Rouault <even.rouault@spatialys.com>
  3537. Merge branch 'cmake-faxtable' into 'master'
  3538. cmake: Add faxtable target
  3539. See merge request libtiff/libtiff!186
  3540. 2021-01-03 Roger Leigh <rleigh@codelibre.net>
  3541. Merge branch 'install_targets' into 'master'
  3542. Update 'CMakeLists.txt' from 'tools'.
  3543. See merge request libtiff/libtiff!193
  3544. 2021-01-03 Miguel Medalha <medalist@sapo.pt>
  3545. Update 'CMakeLists.txt' from 'tools'.
  3546. Update CMakeLists.txt.
  3547. 2021-01-03 Roger Leigh <rleigh@codelibre.net>
  3548. Merge branch 'usage_info' into 'master'
  3549. thumbnail: Rename constant variable 'stuff' to 'usage_info'
  3550. See merge request libtiff/libtiff!190
  3551. 2021-01-03 Miguel Medalha <medalist@sapo.pt>
  3552. Modified 'CMakeLists.txt' to produce a meaningful summary of external codecs support.
  3553. Removed unnecessary reference to compression from usage info for -b parameter
  3554. Constant variable 'stuff' renamed to 'usage_info' for consistency with the other tools
  3555. 2021-01-02 Roger Leigh <rleigh@codelibre.net>
  3556. Remove non-functional VMS support.
  3557. Remove non-functional WinCE support.
  3558. 2021-01-02 Roger Leigh <rleigh@codelibre.net>
  3559. Merge branch 'codespell' into 'master'
  3560. Fix spelling mistakes.
  3561. See merge request libtiff/libtiff!183
  3562. 2021-01-02 Kurt Schwehr <schwehr@google.com>
  3563. ChangeLog: Remove extraneous character from prior commit - 00fe7828.
  3564. 2021-01-02 Roger Leigh <rleigh@codelibre.net>
  3565. Merge branch 'codespell-custom_dir_EXIF_231' into 'master'
  3566. custom_dir_EXIF_231.c: dos2unix and codespell
  3567. See merge request libtiff/libtiff!184
  3568. 2021-01-01 Roger Leigh <rleigh@codelibre.net>
  3569. mkg3states: Sync generator with current generated file content.
  3570. cmake: Add faxtable and mkg3states targets.
  3571. 2020-12-31 Kurt Schwehr <schwehr@google.com>
  3572. custom_dir_EXIF_231.c: dos2unix and codespell.
  3573. additional, Variable, greater, always
  3574. 2020-12-31 Kurt Schwehr <schwehr@google.com>
  3575. Fix spelling mistakes.
  3576. Found with:
  3577. codespell --version
  3578. 1.17.1
  3579. 2020-12-29 Even Rouault <even.rouault@spatialys.com>
  3580. Merge branch 'remove-some-vms-ifdef' into 'master'
  3581. Remove "ifdef VMS" that are no longer necessary.
  3582. See merge request libtiff/libtiff!181
  3583. 2020-12-29 Kurt Schwehr <schwehr@google.com>
  3584. Remove "ifdef VMS" that are no longer necessary.
  3585. Both sides of the if are now the same.
  3586. 2020-12-29 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  3587. _TIFFBuiltinCODECS should be const.
  3588. 2020-12-28 Even Rouault <even.rouault@spatialys.com>
  3589. Merge branch 'issue-202' into 'master'
  3590. tiff2pdf.c: check that tiff_datasize fits in a signed tsize_t
  3591. Closes #202
  3592. See merge request libtiff/libtiff!166
  3593. 2020-12-28 Even Rouault <even.rouault@spatialys.com>
  3594. Merge branch 'w_report-when-libdeflate-is-found' into 'master'
  3595. CMakeLists.txt: Report when libdeflate is found
  3596. See merge request libtiff/libtiff!175
  3597. 2020-12-28 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  3598. Declare gpsFields as static const.
  3599. 2020-12-28 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  3600. Merge branch 'tools-reduce-initialized-data' into 'master'
  3601. Reduce initialized data by making more data const and simplifying usage() implementation.
  3602. See merge request libtiff/libtiff!180
  3603. 2020-12-28 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  3604. Reduce initialized data by making more data const and simplifying usage() implementation.
  3605. 2020-12-27 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  3606. Merge branch 'master' into 'master'
  3607. tiff tools: display of compression methods is now conditional instead of hard-coded
  3608. See merge request libtiff/libtiff!176
  3609. 2020-12-27 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  3610. Merge branch 'build' into 'master'
  3611. Fix wrong URL for fetching config.guess and config.sub
  3612. See merge request libtiff/libtiff!177
  3613. 2020-12-26 Chocobo1 <Chocobo1@users.noreply.github.com>
  3614. Fix wrong URL for fetching config.guess and config.sub.
  3615. 2020-12-25 miguel <medalist@sapo.pt>
  3616. tiff tools: made display of compression methods and their parameters conditional on their actual availability
  3617. 2020-12-20 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  3618. autogen.sh now updates config.guess and config.sub from master gnulib version.
  3619. 2020-12-19 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  3620. Add a https://libtiff.gitlab.io/libtiff/ link.
  3621. Remove stray character in URL area.
  3622. Changes for 4.2.0 release.
  3623. Changes for 4.2.0 release.
  3624. 2020-12-19 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  3625. * libtiff 4.2.0 released.
  3626. * configure.ac: Pass tar-ustar option to AM_INIT_AUTOMAKE rather
  3627. than tar-pax since ustar POSIX 1003.1-1988 format is more portable
  3628. than PAX POSIX 1003.1-2001 format.
  3629. 2020-12-12 Even Rouault <even.rouault@spatialys.com>
  3630. Merge branch 'w_adjust-deflate_names' into 'master'
  3631. Set 'deflate' to DEFLATE_NAMES, instead of 'libdeflate'
  3632. See merge request libtiff/libtiff!174
  3633. 2020-12-12 Lemures Lemniscati <lemures.lemniscati@gmail.com>
  3634. Set 'deflate' to DEFLATE_NAMES, instead of 'libdeflate'
  3635. 'lib' will be automatically added as a prefix while doing find_library()
  3636. 2020-12-12 Even Rouault <even.rouault@spatialys.com>
  3637. DoubleToRational(): avoid casting NaN to uint32 (fixes #227)
  3638. 2020-12-12 Even Rouault <even.rouault@spatialys.com>
  3639. Merge branch 'fix_221' into 'master'
  3640. tiffio.h: do not define __attribute__ but defines TIFF_ATTRIBUTE instead (fixes #221)
  3641. Closes #221
  3642. See merge request libtiff/libtiff!173
  3643. 2020-12-12 Even Rouault <even.rouault@spatialys.com>
  3644. tiffio.h: do not define __attribute__ but defines TIFF_ATTRIBUTE instead (fixes #221)
  3645. 2020-12-08 Even Rouault <even.rouault@spatialys.com>
  3646. TIFFReadDirEntryArrayWithLimit(): properly read from offline tag value when we clamp the number of strips to 1.
  3647. Fixes regression of commit 7057734d986001b7fd6d2afde9667da7754ff2cc on reading
  3648. a file with StripByteCounts with 1 element (broken) and StripOffsets with
  3649. 896 elements, and where StripOffsets[0] is correct
  3650. $ tiffdump foo.tif
  3651. Magic: 0x4949 <little-endian> Version: 0x2a <ClassicTIFF>
  3652. Directory 0: offset 25725448 (0x1888a08) next 0 (0)
  3653. SubFileType (254) LONG (4) 1<0>
  3654. ImageWidth (256) LONG (4) 1<640>
  3655. ImageLength (257) LONG (4) 1<20098>
  3656. BitsPerSample (258) SHORT (3) 1<16>
  3657. Photometric (262) SHORT (3) 1<1>
  3658. SamplesPerPixel (277) SHORT (3) 1<1>
  3659. ResolutionUnit (296) SHORT (3) 1<2>
  3660. StripByteCounts (279) LONG (4) 1<1806>
  3661. StripOffsets (273) LONG (4) 896<8 648 1288 1928 2568 3208 3848 4488 5128 5768 6408 7048 7688 8328 8968 9608 10248 10888 11528 12168 12808 13448 14088 14728 ...>
  3662. 2020-12-02 Even Rouault <even.rouault@spatialys.com>
  3663. tif_jpeg.c: avoid potential harmless unsigned integer overflow on data->fileoffset in JPEGFixupTagsSubsamplingSkip() by validating earlier. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=28200
  3664. 2020-11-27 Even Rouault <even.rouault@spatialys.com>
  3665. Merge branch 'Jamaika1-master-patch-47839' into 'master'
  3666. Change ULARGE_INTEGER to LARGE_INTEGER
  3667. See merge request libtiff/libtiff!170
  3668. 2020-11-27 Even Rouault <even.rouault@spatialys.com>
  3669. Merge branch 'Jamaika1-master-patch-46397' into 'master'
  3670. Added stdint.h
  3671. See merge request libtiff/libtiff!171
  3672. 2020-11-27 Jamaika <lukaszcz18@wp.pl>
  3673. Added stdint.h.
  3674. ``` tif_win32.c: In function '_tiffSizeProc': tif_win32.c:159:23: warning: passing argument 2 of 'GetFileSizeEx' from incompatible pointer type [-Wincompatible-pointer-types] 159 | if (GetFileSizeEx(fd,&m)) | ^~ | | | ULARGE_INTEGER * In file included from c:\msys1021\x86_64-w64-mingw32\include\winbase.h:18, from c:\msys1021\x86_64-w64-mingw32\include\windows.h:70, from tif_win32.c:32: c:\msys1021\x86_64-w64-mingw32\include\fileapi.h:78:73: note: expected 'PLARGE_INTEGER' {aka 'LARGE_INTEGER *'} but argument is of type 'ULARGE_INTEGER *' 78 | WINBASEAPI WINBOOL WINAPI GetFileSizeEx (HANDLE hFile, PLARGE_INTEGER lpFileSize); | ~~~~~~~~~~~~~~~^~~~~~~~~~ ```
  3675. 2020-11-21 Even Rouault <even.rouault@spatialys.com>
  3676. Merge branch 'issue-113' into 'master'
  3677. tiffcrop: fix buffer overrun in extractContigSamples24bits()
  3678. Closes #113
  3679. See merge request libtiff/libtiff!169
  3680. 2020-11-21 Even Rouault <even.rouault@spatialys.com>
  3681. Merge branch 'issue-156' into 'master'
  3682. tiff2pdf: Check output size before writing
  3683. Closes #156
  3684. See merge request libtiff/libtiff!168
  3685. 2020-11-21 Even Rouault <even.rouault@spatialys.com>
  3686. Merge branch 'issue-201' into 'master'
  3687. tiff2pdf: enforce memory limit for tiled pictures too
  3688. Closes #201
  3689. See merge request libtiff/libtiff!167
  3690. 2020-11-20 Even Rouault <even.rouault@spatialys.com>
  3691. Merge branch 'issue-207' into 'master'
  3692. enforce (configurable) memory limit in tiff2rgba
  3693. Closes #209 et #207
  3694. See merge request libtiff/libtiff!165
  3695. 2020-11-20 Even Rouault <even.rouault@spatialys.com>
  3696. tif_lzw.c: avoid false positive -Wnull-dereference of mingw32 gcc 7.3.
  3697. 2020-11-17 Thomas Bernard <miniupnp@free.fr>
  3698. tiffcrop: fix buffer overrun in extractContigSamples24bits()
  3699. fixes #113
  3700. tiff2pdf: Check output size before writing.
  3701. fixes #156
  3702. tiff2pdf: enforce memory limit for tiled pictures too.
  3703. fixes #201
  3704. 2020-11-15 Thomas Bernard <miniupnp@free.fr>
  3705. tiff2rgba.1: -M option.
  3706. enforce (configurable) memory limit in tiff2rgba.
  3707. fixes #207
  3708. fixes #209
  3709. 2020-11-14 Even Rouault <even.rouault@spatialys.com>
  3710. Merge branch 'issue-220' into 'master'
  3711. tiff2pdf.c: properly calculate datasize when saving to JPEG YCbCr
  3712. Closes #220
  3713. See merge request libtiff/libtiff!159
  3714. 2020-11-14 Thomas Bernard <miniupnp@free.fr>
  3715. tiff2pdf.c: properly calculate datasize when saving to JPEG YCbCr.
  3716. fixes #220
  3717. 2020-11-14 Even Rouault <even.rouault@spatialys.com>
  3718. Merge branch 'issue-204' into 'master'
  3719. avoid buffer overflow while writing jpeg end of file marker
  3720. Closes #204
  3721. See merge request libtiff/libtiff!161
  3722. 2020-11-14 Even Rouault <even.rouault@spatialys.com>
  3723. Merge branch 'issue-193' into 'master'
  3724. fix buffer overflow in tiff2ps.c
  3725. Closes #193
  3726. See merge request libtiff/libtiff!162
  3727. 2020-11-14 Even Rouault <even.rouault@spatialys.com>
  3728. Merge branch 'skal65535-master-patch-91082' into 'master'
  3729. More overflow fixes for large widths
  3730. See merge request libtiff/libtiff!164
  3731. 2020-11-14 skal <pascal.massimino@gmail.com>
  3732. More overflow fixes for large width.
  3733. Also: use INT_MAX instead of hard-coded constants.
  3734. 2020-11-12 Even Rouault <even.rouault@spatialys.com>
  3735. Merge branch 'skal65535-master-patch-56655' into 'master'
  3736. Fix potential overflow in gtStripContig()
  3737. See merge request libtiff/libtiff!163
  3738. 2020-11-12 Even Rouault <even.rouault@spatialys.com>
  3739. Merge branch 'issue-211' into 'master'
  3740. check for tile width overflow
  3741. Closes #211
  3742. See merge request libtiff/libtiff!160
  3743. 2020-11-12 skal <pascal.massimino@gmail.com>
  3744. Fix potential overflow in gtStripContig()
  3745. (w + w) might not fit in int32 if too large.
  3746. 2020-11-09 Thomas Bernard <miniupnp@free.fr>
  3747. tiff2ps.c: fix buffer overread.
  3748. fixes #193
  3749. fix undefined behaviour (int shifted too much to the left)
  3750. avoid buffer overflow while writing jpeg end of file marker.
  3751. fixes #204
  3752. gtTileContig(): check Tile width for overflow.
  3753. fixes #211
  3754. fix warning messages (v32 is unsigned)
  3755. 2020-10-26 Even Rouault <even.rouault@spatialys.com>
  3756. TIFFStartStrip(): avoid potential crash in WebP codec when using scanline access on corrupted files. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=26650
  3757. 2020-10-20 Even Rouault <even.rouault@spatialys.com>
  3758. tif_webp.c: validate tile/strip dimension to avoid unsigned integer overflow in RGBA.size computation
  3759. 2020-10-19 Even Rouault <even.rouault@spatialys.com>
  3760. tif_zip.c: fix typo in comment.
  3761. 2020-10-16 Even Rouault <even.rouault@spatialys.com>
  3762. tiff.h: remove irrelevant warning about webp related pseudo-tags not being registered: they are purely internal libtiff concepts
  3763. 2020-10-16 Even Rouault <even.rouault@spatialys.com>
  3764. Merge branch 'libdeflate' into 'master'
  3765. Add support for building against libdeflate for faster Zip/Deflate compression/decompression
  3766. See merge request libtiff/libtiff!158
  3767. 2020-10-16 Even Rouault <even.rouault@spatialys.com>
  3768. test: add testdeflatelaststripextradata.sh.
  3769. 2020-10-16 Even Rouault <even.rouault@spatialys.com>
  3770. Add support for optional building against libdeflate for faster Zip/Deflate compression/decompression.
  3771. So we can have 2 kind of builds with the Zip/Deflate codec:
  3772. - zlib only
  3773. - zlib + libdeflate
  3774. Speed improvements in the 35%-50% range can be expected when libdeflate is used.
  3775. Compression level up to 12 is now supported (capped to 9 when zlib is used).
  3776. Still requires zlib for situations where libdeflate cannot be used (that
  3777. is for scanline access, since libdeflate has no streaming mode)
  3778. Pseudo-tag TIFFTAG_DEFLATE_SUBCODEC=DEFLATE_SUBCODEC_ZLIB/DEFLATE_SUBCODEC_LIBDEFLATE
  3779. is added to control which subcodec (zlib or libdeflate) should be used (it defaults
  3780. of course to libdeflate, when it is available).
  3781. This is mostly aimed at being used on the writing side, to be able to reproduce
  3782. output of previous libtiff versions at a binary level, in situations where this would
  3783. be really needed. Or as a safety belt in case there would be unforeseen issues
  3784. with using libdeflate.
  3785. It can be used to know when libdeflate is available at runtime (DEFLATE_SUBCODEC_LIBDEFLATE
  3786. will be the default value in that situation).
  3787. Of course, deflate codestreams produced by libdeflate can be read by zlib, and vice-versa.
  3788. 2020-10-14 Even Rouault <even.rouault@spatialys.com>
  3789. tif_webp.c: fix compiler warnings with MSVC.
  3790. 2020-10-12 Even Rouault <even.rouault@spatialys.com>
  3791. Merge branch 'various_fixes' into 'master'
  3792. Fix compiler warnings about unused variables when assert() expands to nothing
  3793. See merge request libtiff/libtiff!157
  3794. 2020-10-12 Even Rouault <even.rouault@spatialys.com>
  3795. .gitignore: add entries for new files in test/
  3796. Fix compiler warnings about unused variables when assert() expands to nothing
  3797. 2020-10-09 Roger Leigh <rleigh@codelibre.net>
  3798. Merge branch '215-cygwin-appveyor-fail' into 'master'
  3799. Update Appveyor CI build to build with VS2019 image
  3800. Closes #215
  3801. See merge request libtiff/libtiff!154
  3802. 2020-10-09 Roger Leigh <rleigh@codelibre.net>
  3803. wip.
  3804. wip.
  3805. wip.
  3806. wip.
  3807. wip.
  3808. wip.
  3809. 2020-10-09 Roger Leigh <rleigh@codelibre.net>
  3810. Merge branch 'TIFF-217_m_lib_path' into 'master'
  3811. cmake: Do not use absolute libm path
  3812. Closes #217
  3813. See merge request libtiff/libtiff!156
  3814. 2020-10-09 Roger Leigh <rleigh@codelibre.net>
  3815. cmake: Do not use absolute libm path.
  3816. 2020-10-08 Even Rouault <even.rouault@spatialys.com>
  3817. tif_fax3.h: restore systematic calls to CLEANUP_RUNS()
  3818. now that SETVALUE() no longer cause overflows.
  3819. Those were removed per b351db8be1b4d3f712bdb9424a79d3174cc03202 and
  3820. 3440ac216463fcad170bbb391491e69730a59ffa.
  3821. As SETVALUE() now returns an error, this allow the decoder to exit.
  3822. Otherwise, the assert(x == lastx) in _TIFFFax3fillruns() can trigger.
  3823. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=26201
  3824. 2020-10-06 Even Rouault <even.rouault@spatialys.com>
  3825. Merge branch 'check_TIFFFlushData1' into 'master'
  3826. FAX/JPEG/LZMA/PixarLog/ZIP/ZSTD codecs: make sure to check TIFFFlushData1() return value
  3827. See merge request libtiff/libtiff!155
  3828. 2020-10-04 Even Rouault <even.rouault@spatialys.com>
  3829. Merge branch 'shared-memory' into 'master'
  3830. Set the --shared-memory linker flag for Emscripten builds
  3831. See merge request libtiff/libtiff!153
  3832. 2020-10-03 Even Rouault <even.rouault@spatialys.com>
  3833. tiff2rgba.c: fix -Wold-style-declaration warning.
  3834. FAX/JPEG/LZMA/PixarLog/ZIP/ZSTD codecs: make sure to check TIFFFlushData1() return value
  3835. 2020-09-26 Even Rouault <even.rouault@spatialys.com>
  3836. tif_fax3.h: extra buffer overflow checks. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=25934
  3837. 2020-09-25 Roger Leigh <rleigh@codelibre.net>
  3838. wip.
  3839. wip.
  3840. wip.
  3841. wip.
  3842. wip.
  3843. wip.
  3844. Update AppVeyor image.
  3845. test-appveyor.
  3846. 2020-09-24 Attila Oláh <atl@google.com>
  3847. Also pass --shared-memory to raw_decode.
  3848. This is needed when building for Emscripten with *both* WEBP and JPEG
  3849. support.
  3850. Set the --shared-memory linker flag for Emscripten builds.
  3851. This is only needed when building with WEBP support, which uses atomics,
  3852. therefore the linker needs the --shared-memory flag. The flag cannot be
  3853. added globally because not all executables link against libwebp.
  3854. 2020-09-22 Even Rouault <even.rouault@spatialys.com>
  3855. tif_fax3.h: return error when a buffer overflow occurs. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=25552 and https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=25849
  3856. 2020-09-11 Even Rouault <even.rouault@spatialys.com>
  3857. Merge branch 'fix-float-compare' into 'master'
  3858. Fix comparison for max negative float value.
  3859. See merge request libtiff/libtiff!152
  3860. 2020-09-11 Dirk Lemstra <dirk@lemstra.org>
  3861. Fix comparison for max negative float value.
  3862. 2020-09-07 Even Rouault <even.rouault@spatialys.com>
  3863. Fax3PreDecode(): reset curruns and refruns state variables.
  3864. to avoid out-of-bounds write triggered by GDAL when repeatedly
  3865. reading a corrupt strip.
  3866. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=25493
  3867. 2020-06-06 Thomas Bernard <miniupnp@free.fr>
  3868. Merge branch 'issue-17' into 'master'
  3869. normalize tools behaviour regarding -h
  3870. Closes #17
  3871. See merge request libtiff/libtiff!115
  3872. 2020-05-31 Even Rouault <even.rouault@spatialys.com>
  3873. TWebPSetupEncode(): fix logic problem (and instead of or) in test that checks input is 8bit unsigned data
  3874. 2020-05-12 Even Rouault <even.rouault@spatialys.com>
  3875. TIFFGetConfiguredCODECs(): fix to avoid wrong structure to be returned for registered (ie non built-in) codecs
  3876. 2020-05-09 Even Rouault <even.rouault@spatialys.com>
  3877. Merge branch 'zstd-webp-update' into 'master'
  3878. gitlab-ci: use latest zstd and webp versions
  3879. See merge request libtiff/libtiff!148
  3880. 2020-05-09 Even Rouault <even.rouault@spatialys.com>
  3881. Merge branch 'deprecated' into 'master'
  3882. ojpeg: s/Depreciated/Deprecated/
  3883. See merge request libtiff/libtiff!149
  3884. 2020-05-09 Aaron Boxer <boxerab@gmail.com>
  3885. ojpeg: s/Depreciated/Deprecated/
  3886. 2020-04-27 Even Rouault <even.rouault@spatialys.com>
  3887. Fix typos.
  3888. tif_jpeg.c: avoid potential division in previous fix (master only)
  3889. 2020-04-26 Thomas Bernard <miniupnp@free.fr>
  3890. gitlab-ci: use latest zstd and webp versions.
  3891. 2020-04-26 Even Rouault <even.rouault@spatialys.com>
  3892. tiff.h: fixes to use ASCII only characters (master only)
  3893. 2020-04-26 Thomas Bernard <miniupnp@free.fr>
  3894. tiffsplit: use EXIT_SUCCESS / EXIT_FAILURE.
  3895. tiffset: print usage on stdout when -h is used.
  3896. also use EXIT_FAILURE / EXIT_SUCCESS
  3897. see #17
  3898. tiffmedian: shopw usage on stdout when -h is used.
  3899. also use EXIT_SUCCESS/EXIT_FAILURE
  3900. see #17
  3901. tiffinfo: print usage on stdout when -h is used.
  3902. also use EXIT_FAILURE / EXIT_SUCCESS
  3903. see #17
  3904. raw2tiff: print usage to stdout when -h is used.
  3905. see #17
  3906. tiff2pdf: print usage on stdout when -h is used.
  3907. see #17
  3908. tiffgt: output usage on stdout with -h.
  3909. also use EXIT_SUCCESS / EXIT_FAILURE
  3910. tiffdump: use EXIT_FAILURE / EXIT_SUCCESS.
  3911. see #17
  3912. tiffdither: print usage on stdout when -h is used.
  3913. see #17
  3914. 2020-04-26 Thomas Bernard <miniupnp@free.fr>
  3915. tiffcrop: -h / -v prints usage/version to stdout.
  3916. also uses the standard C EXIT_SUCCESS / EXIT_FAILURE
  3917. macros
  3918. see #17
  3919. 2020-04-26 Thomas Bernard <miniupnp@free.fr>
  3920. tiffcp: output usage to stdout when using -h.
  3921. also use EXIT_FAILURE / EXIT_SUCCESS
  3922. see #17
  3923. tiffcmp: match exit status for posix cmp and diff tools.
  3924. tiff2rgba: output usage to stdout when using -h.
  3925. also uses std C EXIT_FAILURE / EXIT_SUCCESS
  3926. see #17
  3927. tiff2ps: sue EXIT_FAILURE / EXIT_SUCCESS.
  3928. see #17
  3929. tiff2bw: output usage on stdout when using -h.
  3930. also uses EXIT_SUCCESS / EXIT_FAILURE
  3931. see #17
  3932. thumbnail: use EXIT_FAILURE / EXIT_SUCCESS.
  3933. the -h option was already used so it cannot be used for help/usage
  3934. see #17
  3935. rgb2ycbcr: use EXIT_FAILURE / EXIT_SUCCESS.
  3936. the -h option was already used so it cannot be used for help/usage
  3937. see #17
  3938. ppm2tiff: output usage to stdout when using -h option.
  3939. also uses std C EXIT_SUCCESS / EXIT_FAILURE
  3940. see #17
  3941. pal2rgb: output usage to stdout when -h is used.
  3942. see #17
  3943. fax2tiff.c: print usage on stdout when using -h option.
  3944. see #17
  3945. fax2ps: output usage to stdout when using -h option.
  3946. also use EXIT_SUCCESS, EXIT_FAILURE from C standard
  3947. 2020-04-25 Even Rouault <even.rouault@spatialys.com>
  3948. Merge branch 'jpeg_multiscan_dos_logic' into 'master'
  3949. tif_jpeg.c: revise logic to detect potential excessive memory usage when...
  3950. See merge request libtiff/libtiff!147
  3951. 2020-04-24 Even Rouault <even.rouault@spatialys.com>
  3952. Merge branch 'issue-176' into 'master'
  3953. tiff2pdf: get rid of uninitialized memory content
  3954. Closes #176
  3955. See merge request libtiff/libtiff!143
  3956. 2020-04-24 Even Rouault <even.rouault@spatialys.com>
  3957. tif_jpeg.c: revise logic to detect potential excessive memory usage when decoding multiscan JPEG compressed images
  3958. 2020-04-19 Thomas Bernard <miniupnp@free.fr>
  3959. tiff2pdf: test the return code of TIFFReadRawStrip() and TIFFReadRawTile()
  3960. tiff2pdf.c: fix some whitespace problems in source.
  3961. tiff2pdf: get rid of uninitialized memory content.
  3962. fixes #176
  3963. 2020-04-19 Even Rouault <even.rouault@spatialys.com>
  3964. Merge branch 'issue-18' into 'master'
  3965. tiffset: pass size for TIFFTAG_INKNAMES
  3966. Closes #18
  3967. See merge request libtiff/libtiff!146
  3968. 2020-04-18 Olivier Paquet <olivier.paquet@gmail.com>
  3969. Merge branch 'issue-80' into 'master'
  3970. tiffinfo: fix dump of Tiled images
  3971. Closes #80
  3972. See merge request libtiff/libtiff!144
  3973. 2020-04-15 Even Rouault <even.rouault@spatialys.com>
  3974. Fix wrong file size checks for memory-mapped BigTIFF files that could lead to image rejection
  3975. 2020-04-05 Thomas Bernard <miniupnp@free.fr>
  3976. tiffset: pass size for TIFFTAG_INKNAMES.
  3977. Uses TIFFFieldPassCount() to know which arguments need to be
  3978. passed to TiffSetField()
  3979. fixes #18
  3980. see http://bugzilla.maptools.org/show_bug.cgi?id=2202
  3981. 2020-04-04 Thomas Bernard <miniupnp@free.fr>
  3982. tiffinfo: showdata for tiled images.
  3983. tiffinfo: fix dump of Tiled images.
  3984. fixes #80
  3985. 2020-04-03 Even Rouault <even.rouault@spatialys.com>
  3986. Merge branch 'issue-117' into 'master'
  3987. tiffcrop: enforce memory allocation limit
  3988. Closes #117
  3989. See merge request libtiff/libtiff!140
  3990. 2020-04-03 Thomas Bernard <miniupnp@free.fr>
  3991. tiffcrop: enforce memory allocation limit.
  3992. uses -k option to change limit (default to 256MiB)
  3993. fixes #117 / http://bugzilla.maptools.org/show_bug.cgi?id=2757
  3994. 2020-04-02 Even Rouault <even.rouault@spatialys.com>
  3995. Merge branch 'issue-45' into 'master'
  3996. tiffcp: disable strip chopping when trying to convert to JBIG compression
  3997. Closes #45
  3998. See merge request libtiff/libtiff!138
  3999. 2020-04-02 Even Rouault <even.rouault@spatialys.com>
  4000. Merge branch 'issue-124' into 'master'
  4001. TIFFGetFields(3tiff): TIFFTAG_*BYTECOUNTS TIFFTAG_*OFFSETS are uint64
  4002. Closes #124
  4003. See merge request libtiff/libtiff!137
  4004. 2020-04-02 Even Rouault <even.rouault@spatialys.com>
  4005. Merge branch 'aix_itrunc' into 'master'
  4006. Rename itrunc to fix name clash with a different itrunc in math.h on AIX. Fixes issue #189
  4007. Closes #189
  4008. See merge request libtiff/libtiff!139
  4009. 2020-04-01 Rob Boehne <robb@datalogics.com>
  4010. Rename itrunc to fix name clash with a different itrunc in math.h on AIX. Fixes issue #189
  4011. 2020-04-01 Thomas Bernard <miniupnp@free.fr>
  4012. tiffcp: disable strip chopping when trying to convert to JBIG compression
  4013. fixes #45
  4014. 2020-03-29 Thomas Bernard <miniupnp@free.fr>
  4015. TIFFGetFields(3tiff): TIFFTAG_*BYTECOUNTS TIFFTAG_*OFFSETS are uint64.
  4016. fixes #124 / http://bugzilla.maptools.org/show_bug.cgi?id=2774
  4017. 2020-03-29 Even Rouault <even.rouault@spatialys.com>
  4018. Merge branch 'issue-48' into 'master'
  4019. tiff2pdf: fix "raw" copy of Deflate streams
  4020. Closes #48
  4021. See merge request libtiff/libtiff!136
  4022. 2020-03-27 Thomas Bernard <miniupnp@free.fr>
  4023. tiff2pdf: fix "raw" copy of Deflate streams.
  4024. The Predictor parameter was not copied from the source tiff to the PDF.
  4025. fixes #48 / http://bugzilla.maptools.org/show_bug.cgi?id=2442
  4026. 2020-03-26 Thomas Bernard <miniupnp@free.fr>
  4027. tif_fax3: quit Fax3Decode2D() when a buffer overflow occurs.
  4028. fixes #186
  4029. 2020-03-24 Even Rouault <even.rouault@spatialys.com>
  4030. Merge branch 'issue-143-144' into 'master'
  4031. tiffdump: avoid unaligned memory access
  4032. Closes #144 et #143
  4033. See merge request libtiff/libtiff!133
  4034. 2020-03-24 Even Rouault <even.rouault@spatialys.com>
  4035. Merge branch 'issue-133' into 'master'
  4036. tiff2pdf: avoid divide by 0
  4037. Closes #133
  4038. See merge request libtiff/libtiff!126
  4039. 2020-03-24 Thomas Bernard <miniupnp@free.fr>
  4040. tiff2pdf: normalizePoint() macro to normalize the white point.
  4041. 2020-03-23 Thomas Bernard <miniupnp@free.fr>
  4042. tiffdump: avoid unaligned memory access.
  4043. fixes #143
  4044. fixes #144
  4045. 2020-03-23 Even Rouault <even.rouault@spatialys.com>
  4046. Merge branch 'out-of-memory' into 'master'
  4047. tiffcp/tiff2pdf/tiff2ps: enforce maximum malloc size
  4048. Closes #153, #84, #116 et #115
  4049. See merge request libtiff/libtiff!130
  4050. 2020-03-23 Even Rouault <even.rouault@spatialys.com>
  4051. Merge branch 'issue-157' into 'master'
  4052. tiffset: check memory allocation
  4053. Closes #157
  4054. See merge request libtiff/libtiff!132
  4055. 2020-03-23 Even Rouault <even.rouault@spatialys.com>
  4056. Merge branch 'issue-185' into 'master'
  4057. tif_fax3: more buffer overflow checks in Fax3Decode2D()
  4058. Closes #185
  4059. See merge request libtiff/libtiff!131
  4060. 2020-03-23 Thomas Bernard <miniupnp@free.fr>
  4061. tiffset: check memory allocation.
  4062. fixes #157 / http://bugzilla.maptools.org/show_bug.cgi?id=2850
  4063. tif_fax3: more buffer overflow checks in Fax3Decode2D()
  4064. fixes #185
  4065. 2020-03-21 Thomas Bernard <miniupnp@free.fr>
  4066. tiff2ps: enforce memory allocation limit.
  4067. fixes #153 / http://bugzilla.maptools.org/show_bug.cgi?id=2845
  4068. tiff2pdf: enforce maximum data size.
  4069. fixes #116 / http://bugzilla.maptools.org/show_bug.cgi?id=2756
  4070. fixes #84 / http://bugzilla.maptools.org/show_bug.cgi?id=2683
  4071. update man page for tiffcp regarding the -m option.
  4072. tiffcp.c: _TIFFmalloc() => limitMalloc()
  4073. 2020-03-21 Thomas Bernard <miniupnp@free.fr>
  4074. tiffcp: enforce maximum malloc size.
  4075. default is 256MB. use -m option to change
  4076. fixes #115 / http://bugzilla.maptools.org/show_bug.cgi?id=2755
  4077. 2020-03-21 Even Rouault <even.rouault@spatialys.com>
  4078. Merge branch 'issue-184' into 'master'
  4079. CmakeLists.txt: define WORDS_BIGENDIAN when the CPU is big endian
  4080. Closes #184
  4081. See merge request libtiff/libtiff!127
  4082. 2020-03-21 Even Rouault <even.rouault@spatialys.com>
  4083. Merge branch 'issue-44' into 'master'
  4084. tiff2pdf: "" causes the relevant argument not to be written
  4085. Closes #44
  4086. See merge request libtiff/libtiff!128
  4087. 2020-03-21 Even Rouault <even.rouault@spatialys.com>
  4088. Merge branch 'issue-56' into 'master'
  4089. fix man for TIFFReadEncodedStrip(), TIFFStripSize, TIFFVStripSize, TIFFRawStripSize
  4090. Closes #56
  4091. See merge request libtiff/libtiff!129
  4092. 2020-03-20 Thomas Bernard <miniupnp@free.fr>
  4093. fix man for TIFFReadEncodedStrip(), TIFFStripSize, TIFFVStripSize, TIFFRawStripSize
  4094. fixes #56
  4095. http://bugzilla.maptools.org/show_bug.cgi?id=2507
  4096. tiff2pdf: "" causes the relevant argument not to be written.
  4097. fixes #44
  4098. CmakeLists.txt: define WORDS_BIGENDIAN when the CPU is big endian.
  4099. fixes #184
  4100. 2020-03-17 Thomas Bernard <miniupnp@free.fr>
  4101. tiff2pdf: avoid divide by 0.
  4102. fixes #133 http://bugzilla.maptools.org/show_bug.cgi?id=2796
  4103. 2020-03-17 Even Rouault <even.rouault@spatialys.com>
  4104. Merge branch 'issue-22' into 'master'
  4105. do not _tiffMapProc 0 size files
  4106. Closes #22
  4107. See merge request libtiff/libtiff!125
  4108. 2020-03-13 Thomas Bernard <miniupnp@free.fr>
  4109. tif_win32.c: do not _tiffMapProc() 0 sized files.
  4110. see #22
  4111. tif_unix.c: do not _tiffMapProc 0 size files.
  4112. fixes #22
  4113. http://bugzilla.maptools.org/show_bug.cgi?id=2249
  4114. 2020-03-12 Even Rouault <even.rouault@spatialys.com>
  4115. tif_fax3.c: fix warning C4018: '<': signed/unsigned mismatch introduced in past commits
  4116. 2020-03-11 Even Rouault <even.rouault@spatialys.com>
  4117. tiff.h: mention TIFFTAG_RPCCOEFFICIENT, TIFFTAG_TIFF_RSID, TIFFTAG_GEO_METADATA
  4118. 2020-03-11 Even Rouault <even.rouault@spatialys.com>
  4119. Merge branch 'issue-60' into 'master'
  4120. added support for more private tags
  4121. Closes #60
  4122. See merge request libtiff/libtiff!124
  4123. 2020-03-11 Even Rouault <even.rouault@spatialys.com>
  4124. Merge branch 'issue-160' into 'master'
  4125. Fax3SetupState(): check consistency of rowbytes and rowpixels
  4126. Closes #160
  4127. See merge request libtiff/libtiff!123
  4128. 2020-03-11 Thomas Bernard <miniupnp@free.fr>
  4129. added support for more private tags.
  4130. see https://gitlab.com/libtiff/libtiff/-/issues/60
  4131. bugzilla.maptools.org/show_bug.cgi?id=2525
  4132. closes #60
  4133. original author : art1@andreas-romeyke.de
  4134. 2020-03-11 Thomas Bernard <miniupnp@free.fr>
  4135. Fax3SetupState(): check consistency of rowbytes and rowpixels.
  4136. also add some parameter documentation to Fax3Decode1D()
  4137. fixes #160
  4138. http://bugzilla.maptools.org/show_bug.cgi?id=2854
  4139. 2020-03-10 Even Rouault <even.rouault@spatialys.com>
  4140. Merge branch 'issue-11-const-pointers' into 'master'
  4141. Make pointers returned via TIFFGetField const
  4142. Closes #11
  4143. See merge request libtiff/libtiff!118
  4144. 2020-03-10 Even Rouault <even.rouault@spatialys.com>
  4145. tif_ojpeg.c: relax again too strict sanity checks to allow reading of valid images such as https://gitlab.com/libtiff/libtiff/-/issues/181#note_302535232. Fixes #181
  4146. 2020-03-09 Even Rouault <even.rouault@spatialys.com>
  4147. Merge branch 'issue-52' into 'master'
  4148. contrib/win_dib/tiff2dib: fix Uninitialized variable: lpBits
  4149. Closes #52
  4150. See merge request libtiff/libtiff!121
  4151. 2020-03-09 Thomas Bernard <miniupnp@free.fr>
  4152. contrib/win_dib/tiff2dib: fix Uninitialized variable: lpBits.
  4153. fixes #52
  4154. http://bugzilla.maptools.org/show_bug.cgi?id=2469
  4155. 2020-03-08 Even Rouault <even.rouault@spatialys.com>
  4156. Merge branch 'issue-58' into 'master'
  4157. Make TIFFTAG_CFAPATTERN variable count
  4158. Closes #58
  4159. See merge request libtiff/libtiff!120
  4160. 2020-03-08 Even Rouault <even.rouault@spatialys.com>
  4161. Merge branch 'issue-158-no-predictor-in-webp' into 'master'
  4162. TIFFTAG_PREDICTOR is not supported for WebP
  4163. Closes #158
  4164. See merge request libtiff/libtiff!119
  4165. 2020-03-08 Sam Hasinoff <hasinoff@google.com>
  4166. Make TIFFTAG_CFAPATTERN variable count.
  4167. The TIFFTAG_CFAPATTERN tag (33422) from TIFF/EP, recently introduced in libtiff
  4168. 3363eda09d082e3e1dfffa6281f53085cac51ad3 / http://bugzilla.maptools.org/show_bug.cgi?id=2457
  4169. is described as having a fixed count of 4.
  4170. But the TIFF/EP spec says this should support a variable count (= CFARepeatRows * CFARepeatCols):
  4171. TIFF/EP, ISO 12234-2:2001
  4172. http://www.barrypearson.co.uk/top2009/downloads/TAG2000-22_DIS12234-2.pdf
  4173. page 18 and 26
  4174. 2020-03-08 Thomas Bernard <miniupnp@free.fr>
  4175. TIFFTAG_PREDICTOR is not supported for WebP.
  4176. fixes #158
  4177. https://gitlab.com/libtiff/libtiff/-/issues/158
  4178. this bug was introduced by 9eacd59fecc4ef593ac17689bc530ab451c8ec14
  4179. merge request !32
  4180. 2020-03-07 Adam Goode <adam@spicenitz.org>
  4181. Make the default whitepoint and ycbcrcoeffs arrays const.
  4182. Now that we are returning const pointers in TIFFGetFieldDefaulted,
  4183. we can now make these static default arrays const.
  4184. see #11
  4185. 2020-03-07 Adam Goode <adam@spicenitz.org>
  4186. Make pointers returned via TIFFGetField const.
  4187. According to http://bugzilla.maptools.org/show_bug.cgi?id=2125#c6
  4188. callers are not allowed to modify pointer or array values returned from
  4189. TIFFGetField or the like. So, make this explicit in the documentation
  4190. by specifying these things as const. Note that this is not an ABI
  4191. change, since C does not encode const in libraries. Also, this is
  4192. not really an API change, since the varargs call strips away all
  4193. the types anyway. So it really is more of a documentation change.
  4194. fixes #11
  4195. 2020-03-07 Even Rouault <even.rouault@spatialys.com>
  4196. CMake: Skip custom_dir_EXIF_231 test on shared builds to avoid issues on Windows
  4197. 2020-03-07 Even Rouault <even.rouault@spatialys.com>
  4198. Merge branch 'EXIF231_GPS_upgrade' into 'master'
  4199. EXIF 2.32 and GPS TIFF-tags and functionality upgraded.
  4200. See merge request libtiff/libtiff!91
  4201. 2020-03-07 Su_Laus <sulau@freenet.de>
  4202. EXIF 2.32 and GPS tags and functionality upgraded.
  4203. - Existing EXIF field definition of tags is upgraded to EXIF version 2.3.2
  4204. - EXIF-GPS structure, tags and access functions are added as special CustomDirectory (like it was done for EXIF).
  4205. - Test program custom_dir_EXIF_231.c added to test writing/reading of EXID IFD and GPS IFD tags
  4206. and to highlight some quirks of IFD-handling and peculiarities of reading/writing the different data types.
  4207. - Reading error for FileSource and SceneType tags corrected.
  4208. - EXIF_GPS_upgrade rebased onto c8c5309b765ef4ff097d2aaffbdb8f403db8967d (Merge branch 'Rational2DoublePrecision_correction' into 'master')
  4209. and adapted:
  4210. - tif_dirinfo.c: All rational tags set to TIFF_SETGET_FLOAT but only the GPSTAG_ tags set to TIFF_SETGET_DOUBLE.
  4211. - custom_dir_EXIF_231.c: Editorials amended and gcc warnings fixed.
  4212. - CMakeLists.txt: add_test(NAME "custom_dir_EXIF_231" COMMAND "custom_dir_EXIF_231") added.
  4213. 2020-03-07 Even Rouault <even.rouault@spatialys.com>
  4214. Merge branch 'issue-55' into 'master'
  4215. ppm2tiff: support any bps value from 1 to 16
  4216. Closes #55
  4217. See merge request libtiff/libtiff!106
  4218. 2020-03-07 Thomas Bernard <miniupnp@free.fr>
  4219. ppm2tiff: Add test for 16bpc PPM.
  4220. ppm2tiff: remove unused argument warning.
  4221. 2020-03-07 Ludolf Holzheid <ludolf.holzheid@gmx.de>
  4222. ppm2tiff: support any bps value from 1 to 16.
  4223. fix #55
  4224. http://bugzilla.maptools.org/show_bug.cgi?id=2505
  4225. Patch originally submitted by Ludolf Holzheid <ludolf.holzheid@gmx.de>
  4226. 2020-03-06 Even Rouault <even.rouault@spatialys.com>
  4227. Merge branch 'fax-test' into 'master'
  4228. add test for fax4 decoding
  4229. See merge request libtiff/libtiff!114
  4230. 2020-03-05 Thomas Bernard <miniupnp@free.fr>
  4231. add test for fax4 decoding.
  4232. This will check for regression on #46
  4233. https://gitlab.com/libtiff/libtiff/issues/46
  4234. http://bugzilla.maptools.org/show_bug.cgi?id=2434
  4235. 2020-03-05 Even Rouault <even.rouault@spatialys.com>
  4236. Merge branch 'freebsd-tests' into 'master'
  4237. make tests pass under FreeBSD.
  4238. See merge request libtiff/libtiff!113
  4239. 2020-03-05 Thomas Bernard <miniupnp@free.fr>
  4240. make tests pass under FreeBSD.
  4241. the -I option for the GNU diff and the FreeBSD diff
  4242. behaves differently regarding escaping the ( ) and |
  4243. By using two -I option, we avoid using such charracters.
  4244. 2020-03-05 Even Rouault <even.rouault@spatialys.com>
  4245. Merge branch 'issue-31' into 'master'
  4246. HTML
  4247. Closes #31
  4248. See merge request libtiff/libtiff!111
  4249. 2020-03-05 Even Rouault <even.rouault@spatialys.com>
  4250. Merge branch 'issue-179' into 'master'
  4251. tif_fax3.h: check for buffer overflow in EXPAND2D before "calling" CLEANUP_RUNS()
  4252. Closes #179
  4253. See merge request libtiff/libtiff!112
  4254. 2020-03-05 Thomas Bernard <miniupnp@free.fr>
  4255. v4.1.0.html: fix for validation.
  4256. long <!----------------> comments were replaced
  4257. because they confused some parsers
  4258. add DOCTYPE on v*.html.
  4259. fix HTML files so they are valid according to https://validator.w3.org.
  4260. 2020-03-05 Thomas Bernard <miniupnp@free.fr>
  4261. tif_fax3.h: check for buffer overflow in EXPAND2D before "calling" CLEANUP_RUNS()
  4262. fixes #179
  4263. this fixes the regression introduced in 02bb0175 / 72c4acef
  4264. ( merge request !110 )
  4265. It may be a better fix to do the overflow check in SETVALUE() but the
  4266. macro do { } while(0) construct makes it difficult to quit the loop
  4267. properly.
  4268. 2020-03-01 Thomas Bernard <miniupnp@free.fr>
  4269. index.html: fix unclosed <tt> tag.
  4270. 2020-03-01 Thomas Bernard <miniupnp@free.fr>
  4271. html: do not force colors (which are default anyway)
  4272. If needed, style should be set using CSS.
  4273. fixes #31
  4274. https://gitlab.com/libtiff/libtiff/issues/31
  4275. http://bugzilla.maptools.org/show_bug.cgi?id=2326
  4276. 2020-03-01 Even Rouault <even.rouault@spatialys.com>
  4277. TIFFReadCustomDirectory(): fix potential heap buffer overflow when reading a custom directory, after a regular directory where a codec was active. Fixes https://gitlab.com/libtiff/libtiff/issues/178
  4278. 2020-03-01 Even Rouault <even.rouault@spatialys.com>
  4279. Merge branch 'issue-46' into 'master'
  4280. fix decoding of fax4 images
  4281. Closes #46
  4282. See merge request libtiff/libtiff!110
  4283. 2020-02-29 Thomas Bernard <miniupnp@free.fr>
  4284. tif_fax3: better fix for CVE-2011-0192.
  4285. There are some legitimate case which were forbidden by the previous fix
  4286. tif_fax3.h: allow 0 length run in DECODE2D.
  4287. fixes #46
  4288. https://gitlab.com/libtiff/libtiff/issues/46
  4289. http://bugzilla.maptools.org/show_bug.cgi?id=2434
  4290. 2020-02-29 Even Rouault <even.rouault@spatialys.com>
  4291. Merge branch 'mingwlibm' into 'master'
  4292. Don't use libm with libtiff due to conflict with libmsvcrt
  4293. See merge request libtiff/libtiff!73
  4294. 2020-02-29 Even Rouault <even.rouault@spatialys.com>
  4295. Merge branch 'Rational2DoublePrecision_correction' into 'master'
  4296. tif_dirwrite.c: bugfix DoubleToSrational() for plain signed integers
  4297. See merge request libtiff/libtiff!109
  4298. 2020-02-29 Su_Laus <sulau@freenet.de>
  4299. tif_dirwrite.c: bugfix DoubleToSrational(), which returns plain signed integer values always as unsigned rationals. Add a test into rational_precision2double.c for "-1.0" and some editorials in tif_dirwrite.c. (code is related to 6df997c786928757caea0dd68d26ea5f098f49df changes).
  4300. 2020-02-29 Even Rouault <even.rouault@spatialys.com>
  4301. Merge branch 'issue-174' into 'master'
  4302. tif_fax3.c: check buffer overflow in Fax4Decode()
  4303. Closes #174
  4304. See merge request libtiff/libtiff!108
  4305. 2020-02-29 Thomas Bernard <miniupnp@free.fr>
  4306. Fax4Decode(): log error message in case of buffer overrun.
  4307. tif_fax3.c: check buffer overflow in Fax4Decode()
  4308. fixes #174
  4309. 2020-02-28 Even Rouault <even.rouault@spatialys.com>
  4310. typo fixes in code comments.
  4311. ToRationalEuclideanGCD: remove useless test that confuses Coverity Scan about a potential later modulo by zero
  4312. 2020-02-27 Even Rouault <even.rouault@spatialys.com>
  4313. tif_dirwrite.c: fix other warnings related to 6df997c786928757caea0dd68d26ea5f098f49df changes
  4314. rational_precision2double.c: fix many warnings, and do not build it on CMake on shared lib builds
  4315. tif_dirwrite.c: fix various warnings found when building GDAL with internal libtiff after 6df997c786928757caea0dd68d26ea5f098f49df changes
  4316. tif_dirwrite.c: qualify ToRationalEuclideanGCD() with static.
  4317. 2020-02-27 Even Rouault <even.rouault@spatialys.com>
  4318. Merge branch 'Rational2DoublePrecision' into 'master'
  4319. Rational with Double Precision Upgrade
  4320. See merge request libtiff/libtiff!100
  4321. 2020-02-27 Su_Laus <sulau@freenet.de>
  4322. Rational with Double Precision Upgrade.
  4323. Unfortunately, custom rational tags (TIFF_RATIONAL with field_bit=FIELD_CUSTOM) are defined as TIFF_SETGET_DOUBLE
  4324. but for the reading interface and LibTiff internally they are stored ALWAYS as floating point SINGLE precision.
  4325. Double precision custom rational tags are not supported by LibTiff.
  4326. For the GPS tags in WGS84 a higher accuracy / precision is needed.
  4327. Therefore, this upgrade is made, keeping the old interface for the already defined tags and allowing a double precision definition,
  4328. as well as calculating rationals with higher accuracy / precision.
  4329. This higher accuracy can be used for newly defined tags like that in EXIF/GPS.
  4330. Refer also to the very old Bugzilla issue 2542 (#69)
  4331. A test file rational_precision2double.c is added, which shows prevention of the old interface to the already defined custom rational tags
  4332. with the standard library as well as with the upgraded library.
  4333. Also TIFFTAG_XRESOLUTION, TIFFTAG_YRESOLUTION, TIFFTAG_XPOSITION, TIFFTAG_YPOSITION amended from TIFF_SETGET_DOUBLE to TIFF_SETGET_FLOAT and testcase inserted in rational_precision2double.c
  4334. 2020-02-26 Chris Degawa <ccom@randomderp.com>
  4335. mingw-w64 cmake: Don't find libm.
  4336. mingw-w64 will provide libm symbols by default without -lm and mingw-64's
  4337. libm is just a stub.
  4338. This is just to make sure that on systems with msys2 and also cygwin, cmake
  4339. doesn't find a libm that actually contains math functions.
  4340. 2020-02-26 Even Rouault <even.rouault@spatialys.com>
  4341. Merge branch 'division-by-zero' into 'master'
  4342. tools/tiffcp.c: fix potential division by zero
  4343. See merge request libtiff/libtiff!83
  4344. 2020-02-26 Even Rouault <even.rouault@spatialys.com>
  4345. Merge branch 'fix-unused-warning' into 'master'
  4346. warnings: mark conditionally used parameters
  4347. See merge request libtiff/libtiff!49
  4348. 2020-02-26 Even Rouault <even.rouault@spatialys.com>
  4349. Merge branch 'master' into 'master'
  4350. fix issue #78 warnings regarding RichTIFFIPTC data type
  4351. Closes #78
  4352. See merge request libtiff/libtiff!99
  4353. 2020-02-26 Even Rouault <even.rouault@spatialys.com>
  4354. Merge branch 'win64-handle-casts-warn-fix' into 'master'
  4355. Avoid warnings about casts between HANDLE and int in Win64 builds
  4356. Closes #2
  4357. See merge request libtiff/libtiff!93
  4358. 2020-02-26 Even Rouault <even.rouault@spatialys.com>
  4359. Merge branch 'bug2839' into 'master'
  4360. raw2tiff: avoid divide by 0
  4361. Closes #151
  4362. See merge request libtiff/libtiff!103
  4363. 2020-02-26 Even Rouault <even.rouault@spatialys.com>
  4364. Merge branch 'bug2669' into 'master'
  4365. tiff2pdf: palette bound check in t2p_sample_realize_palette()
  4366. Closes #82
  4367. See merge request libtiff/libtiff!104
  4368. 2020-02-26 Even Rouault <even.rouault@spatialys.com>
  4369. Merge branch 'int-shift' into 'master'
  4370. tiffcrop: fix asan runtime error caused by integer promotion
  4371. See merge request libtiff/libtiff!105
  4372. 2020-02-26 Even Rouault <even.rouault@spatialys.com>
  4373. Merge branch 'bug-2538' into 'master'
  4374. libtiff.html: fix function casing
  4375. Closes #68
  4376. See merge request libtiff/libtiff!107
  4377. 2020-02-16 Thomas Bernard <miniupnp@free.fr>
  4378. raw2tiff: avoid divide by 0.
  4379. fixes #151 / http://bugzilla.maptools.org/show_bug.cgi?id=2839
  4380. first memcmp() lines before computing correlation
  4381. and always avoid divide by 0 anyway
  4382. 2020-02-09 Even Rouault <even.rouault@spatialys.com>
  4383. Merge branch 'bug2855' into 'master'
  4384. tiff2ps: fix heap buffer read overflow in PSDataColorContig()
  4385. Closes #161
  4386. See merge request libtiff/libtiff!102
  4387. 2020-02-08 Thomas Bernard <miniupnp@free.fr>
  4388. libtiff.html: fix function casing.
  4389. libtiff.html: fix function casing.
  4390. fixes #68 / http://bugzilla.maptools.org/show_bug.cgi?id=2538
  4391. 2020-02-08 Thomas Bernard <miniupnp@free.fr>
  4392. tiffcrop: fix asan runtime error caused by integer promotion.
  4393. tiffcrop.c:4027:20: runtime error: left shift of 190 by 24 places cannot be represented in type 'int'
  4394. C treats (byte << 24) as an int expression.
  4395. casting explicitly to unsigned type uint32 avoids the problem.
  4396. the same issue has been fixed elsewhere with a24213691616e7cd35aa3e2805493de80c7e4fcf
  4397. I detected the bug with the test file of #86
  4398. 2020-02-08 Thomas Bernard <miniupnp@free.fr>
  4399. tiff2pdf: palette bound check in t2p_sample_realize_palette()
  4400. fixes #82
  4401. 2020-02-08 Thomas Bernard <miniupnp@free.fr>
  4402. tiff2ps: fix heap buffer read overflow in PSDataColorContig()
  4403. fixes #161 / http://bugzilla.maptools.org/show_bug.cgi?id=2855
  4404. in 05029fb7f1ecf771abaf90b5705b6cab9eb522a7 I missed that 1 extra byte is read
  4405. in this loop.
  4406. 2020-02-05 Even Rouault <even.rouault@spatialys.com>
  4407. tif_dirread.c: suppress CLang static Analyzer 9.0 false positive.
  4408. 2020-02-01 Even Rouault <even.rouault@spatialys.com>
  4409. TIFFSetupStrips: enforce 2GB limitation of Strip/Tile Offsets/ByteCounts arrays
  4410. TIFFWriteDirectoryTagData() has an assertion that checks that the
  4411. arrays are not larger than 2GB. So error out earlier if in that situation.
  4412. 2020-01-29 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  4413. Simplify nmake configuration for building port directory. Now there is only one boolean setting to enable building strtoll() and strtoull() port functions. The boolean setting enables the necessary port files to be built, but the remainder of the logic is via pre-processor code in the common tif_config.h, which was prepared before entering the port directory to do a build.
  4414. 2020-01-28 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  4415. Make sure that tif_config.h is produced prior to entering the port directory and add an include path so that the port files can include tif_config.h. Do not actually include tif_config.h at this time since CMake and Autotools builds are not prepared for that. This issue could be handled by updating the CMake and Autotools builds or by adding a define which directs libport.h to include tif_config.h.
  4416. 2020-01-26 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  4417. Fix nmake build mistakes in my last commit:
  4418. tif_config.vc.h:
  4419. Always define HAVE_STRTOL/HAVE_STRTOUL.
  4420. Define HAVE_STRTOLL/HAVE_STRTOULL if _MSC_VER >= 1900.
  4421. nmake.opt:
  4422. Provide defaults suitable for MSVC prior to 14.0.
  4423. libport.h:
  4424. The sense of the pre-processor logic was inverted from what it
  4425. should be. The intention is to only provide the prototype if the
  4426. function is missing.
  4427. 2020-01-25 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  4428. Add nmake build support for manually configuring the 'port' files to be built based on MSVC features. Include tif_config.h in tools/tiffset.c.
  4429. 2020-01-23 Even Rouault <even.rouault@spatialys.com>
  4430. Adjust previous fix to avoid undue warning in some situations triggered by GDAL
  4431. 2020-01-12 Even Rouault <even.rouault@spatialys.com>
  4432. _TIFFPartialReadStripArray: bring back support for non-conformant SLONG8 data type
  4433. Such as in https://github.com/OSGeo/gdal/issues/2165
  4434. 2020-01-07 Even Rouault <even.rouault@spatialys.com>
  4435. test: add test for single-strip OJPEG file without RowsPerStrip tag (like in CR2 files)
  4436. OJPEGReadHeaderInfo: if rowsperstrip not defined, then assume one-single-strip. Complementary fix to 0356ea76bac908c61160d735f078437ace953bd3
  4437. 2019-12-16 Angel Sánchez <angelsanchez@inedit.com>
  4438. fix issue #78 warnings regarding RichTIFFIPTC data type.
  4439. 2019-12-14 Even Rouault <even.rouault@spatialys.com>
  4440. contrib/oss-fuzz/build.sh: fix broken if construct.
  4441. 2019-11-28 Even Rouault <even.rouault@spatialys.com>
  4442. contrib/oss-fuzz/build.sh: other attempt at fixing build failure.
  4443. 2019-11-20 Even Rouault <even.rouault@spatialys.com>
  4444. contrib/oss-fuzz/build.sh: install liblzma-dev for x86_64 builds.
  4445. 2019-11-17 Even Rouault <even.rouault@spatialys.com>
  4446. contrib/oss-fuzz/build.sh: install liblzma-dev:i386 on i386 builds.
  4447. 2019-11-15 Even Rouault <even.rouault@spatialys.com>
  4448. Merge branch 'cmake-parse' into 'master'
  4449. CMake: simplify parsing variables from configure
  4450. See merge request libtiff/libtiff!98
  4451. 2019-11-15 Rolf Eike Beer <eb@emlix.com>
  4452. CMake: simplify parsing variables from configure.
  4453. 2019-11-14 Even Rouault <even.rouault@spatialys.com>
  4454. contrib/oss-fuzz/build.sh: fix ossfuzz build by statically linking to lzma
  4455. 2019-11-12 Even Rouault <even.rouault@spatialys.com>
  4456. Merge branch 'fix_ojpeg_172' into 'master'
  4457. OJPEG: fix broken sanity check added in 4.1.0 (#fixes 172)
  4458. See merge request libtiff/libtiff!97
  4459. 2019-11-11 Even Rouault <even.rouault@spatialys.com>
  4460. OJPEG: fix broken sanity check added in 4.1.0, and add two OJPEG test files
  4461. test/: add missing generated .sh files.
  4462. 2019-11-04 Even Rouault <even.rouault@spatialys.com>
  4463. Merge branch 'fix-missing-checks-TIFFGetField-tiffcrop' into 'master'
  4464. adds missing checks on TIFFGetField in tiffcrop tool
  4465. Closes #170
  4466. See merge request libtiff/libtiff!96
  4467. 2019-11-04 Bug Checkers <coolbugcheckers@gmail.com>
  4468. adds missing checks on TIFFGetField in tiffcrop tool (fixes #170)
  4469. 2019-11-04 Even Rouault <even.rouault@spatialys.com>
  4470. Merge branch 'adds-missing-TIFFClose-rgb2ycbcr' into 'master'
  4471. adds a missing TIFFClose in rgb2ycbcr tool
  4472. See merge request libtiff/libtiff!95
  4473. 2019-11-04 Mansour Ahmadi <mansourweb@gmail.com>
  4474. adds a missing TIFFClose in rgb2ycbcr tool.
  4475. 2019-11-03 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  4476. libtiff 4.1.0 released.
  4477. Added a step for updating the legacy ChangeLog file.
  4478. Ignore emacs temporary files (ending with tilde character).
  4479. Added release summary page for the 4.1.0 release.
  4480. Fix Cmake HAVE_GETOPT for systems which declare getopt in stdio.h. Fix utility baked-in getopt prototype which appears when HAVE_GETOPT is not defined.
  4481. Fax2tiff.sh needs to remove its output file in advance. Syntax changes so that bash is not required.
  4482. 2019-10-26 Even Rouault <even.rouault@spatialys.com>
  4483. tif_jpeg.c: extra cast to silence Coverity warning. GDAL CID 1406475.
  4484. 2019-10-23 Even Rouault <even.rouault@spatialys.com>
  4485. tif_jpeg.c: fix warning added by previous commit (on 32bit builds)
  4486. 2019-10-23 Even Rouault <even.rouault@spatialys.com>
  4487. Merge branch 'coverity-fixes' into 'master'
  4488. Coverity fixes
  4489. See merge request libtiff/libtiff!94
  4490. 2019-10-22 Timothy Lyanguzov <timothy.lyanguzov@sap.com>
  4491. Use 64-bit calculations correctly.
  4492. Fix size calculation to use 64-bit tmsize_t correctly.
  4493. Make bytesperclumpline calculations using tmsize_t type.
  4494. 2019-10-03 Even Rouault <even.rouault@spatialys.com>
  4495. tif_read: align code of TIFFReadRawStrip() and TIFFReadRawTile() that differed for non good reason. Non-functional change normally. (fixes GitLab #162)
  4496. 2019-10-01 Even Rouault <even.rouault@spatialys.com>
  4497. HTML: update for GitLab issues.
  4498. 2019-09-29 Even Rouault <even.rouault@spatialys.com>
  4499. html/v3.5.6-beta.html: redact URL of defunct web site.
  4500. Website: update links to mailing list.
  4501. 2019-09-17 Even Rouault <even.rouault@spatialys.com>
  4502. TIFFReadAndRealloc(): avoid too large memory allocation attempts. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=17244
  4503. 2019-09-03 Even Rouault <even.rouault@spatialys.com>
  4504. ByteCountLooksBad and EstimateStripByteCounts: avoid unsigned integer overflows. Fixes https://oss-fuzz.com/testcase-detail/5686156066291712 and https://oss-fuzz.com/testcase-detail/6332499206078464
  4505. 2019-09-02 Even Rouault <even.rouault@spatialys.com>
  4506. tif_ojpeg.c: avoid relying on isTiled macro being wrapped in ()
  4507. tif_ojpeg.c: avoid use of uninitialized memory on edge/broken file. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=16844
  4508. tiff_read_rgba_fuzzer.cc: add a -DSTANDALONE mode for easier reproduction of oss-fuzz reports
  4509. 2019-09-01 Even Rouault <even.rouault@spatialys.com>
  4510. tif_dirread.c: allocChoppedUpStripArrays(). avoid unsigned integer overflow. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=16846
  4511. 2019-08-27 Even Rouault <even.rouault@spatialys.com>
  4512. tif_ojpeg.c: avoid unsigned integer overflow. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=16793
  4513. 2019-08-26 Even Rouault <even.rouault@spatialys.com>
  4514. TIFFReadDirEntryData(): rewrite to avoid unsigned integer overflow (not a bug). Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=16792
  4515. TIFFFetchDirectory(): fix invalid cast from uint64 to tmsize_t. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=16784
  4516. 2019-08-25 Even Rouault <even.rouault@spatialys.com>
  4517. JPEG: avoid use of uninitialized memory on corrupted files.
  4518. Follow-up of cf3ce6fab894414a336546f62adc57f02590a22c
  4519. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=16602
  4520. Credit to OSS Fuzz
  4521. 2019-08-23 Even Rouault <even.rouault@spatialys.com>
  4522. _TIFFPartialReadStripArray(): avoid unsigned integer overflow. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=16685
  4523. OJPEGWriteHeaderInfo(): avoid unsigned integer overflow on strile dimensions close to UINT32_MAX. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=16683
  4524. TIFFFillStrip(): avoid harmless unsigned integer overflow. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=16653
  4525. EstimateStripByteCounts(): avoid unsigned integer overflow. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=16643&
  4526. tif_ojpeg: avoid unsigned integer overflow (probably not a bug). Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=16635
  4527. tif_thunder: avoid unsigned integer overflow (not a bug). Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=16632
  4528. 2019-08-22 Even Rouault <even.rouault@spatialys.com>
  4529. _TIFFMultiply32() / _TIFFMultiply64(): avoid relying on unsigned integer overflow (not a bug)
  4530. EstimateStripByteCounts(): avoid unsigned integer overflow.
  4531. 2019-08-21 Even Rouault <even.rouault@spatialys.com>
  4532. EstimateStripByteCounts(): avoid unsigned integer overflow.
  4533. 2019-08-20 Even Rouault <even.rouault@spatialys.com>
  4534. EstimateStripByteCounts(): avoid harmless unsigned integer overflow.
  4535. _TIFFPartialReadStripArray(): avoid triggering unsigned integer overflow with -fsanitize=unsigned-integer-overflow (not a bug, this is well defined by itself)
  4536. 2019-08-18 Even Rouault <even.rouault@spatialys.com>
  4537. tiff2ps: fix use of wrong data type that caused issues (/Height being written as 0) on 64-bit big endian platforms
  4538. 2019-08-16 Even Rouault <even.rouault@spatialys.com>
  4539. setByteArray(): fix previous commit.
  4540. setByteArray(): avoid potential signed integer overflow. Pointed by Hendra Gunadi. No actual problem known (which does not mean there wouldn't be any. Particularly on 32bit builds)
  4541. 2019-08-15 Even Rouault <even.rouault@spatialys.com>
  4542. RGBA interface: fix integer overflow potentially causing write heap buffer overflow, especially on 32 bit builds. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=16443. Credit to OSS Fuzz
  4543. 2019-08-14 Even Rouault <even.rouault@spatialys.com>
  4544. Merge branch 'fix_integer_overflow' into 'master'
  4545. Fix integer overflow in _TIFFCheckMalloc() and other implementation-defined behaviour (CVE-2019-14973)
  4546. See merge request libtiff/libtiff!90
  4547. 2019-08-13 Even Rouault <even.rouault@spatialys.com>
  4548. Fix integer overflow in _TIFFCheckMalloc() and other implementation-defined behaviour (CVE-2019-14973)
  4549. _TIFFCheckMalloc()/_TIFFCheckRealloc() used a unsafe way to detect overflow
  4550. in the multiplication of nmemb and elem_size (which are of type tmsize_t, thus
  4551. signed), which was especially easily triggered on 32-bit builds (with recent
  4552. enough compilers that assume that signed multiplication cannot overflow, since
  4553. this is undefined behaviour by the C standard). The original issue which lead to
  4554. this fix was triggered from tif_fax3.c
  4555. There were also unsafe (implementation defied), and broken in practice on 64bit
  4556. builds, ways of checking that a uint64 fits of a (signed) tmsize_t by doing
  4557. (uint64)(tmsize_t)uint64_var != uint64_var comparisons. Those have no known
  4558. at that time exploits, but are better to fix in a more bullet-proof way.
  4559. Or similarly use of (int64)uint64_var <= 0.
  4560. 2019-08-12 Even Rouault <even.rouault@spatialys.com>
  4561. TIFFClientOpen(): fix memory leak if one of the required callbacks is not provided. Fixed Coverity GDAL CID 1404110
  4562. OJPEGReadBufferFill(): avoid very long processing time on corrupted files. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=16400. master only
  4563. 2019-08-10 Even Rouault <even.rouault@spatialys.com>
  4564. oss-fuzz/tiff_read_rgba_fuzzer.cc: fix wrong env variable value in previous commit
  4565. oss-fuzz/tiff_read_rgba_fuzzer.cc: avoid issue with libjpeg-turbo and MSAN
  4566. OJPEG: fix integer division by zero on corrupted subsampling factors. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=15824. Credit to OSS Fuzz
  4567. Merge branch 'ossfuzz_i386'
  4568. contrib/oss-fuzz/build.sh: fix for i386 build of jbigkit, and use $LIB_FUZZING_ENGINE
  4569. 2019-08-10 Even Rouault <even.rouault@spatialys.com>
  4570. Merge branch 'patch-1' into 'master'
  4571. fix two tiny typos
  4572. See merge request libtiff/libtiff!89
  4573. 2019-08-10 Reto Kromer <rk@reto.ch>
  4574. fix two tiny typos.
  4575. 2019-08-09 Even Rouault <even.rouault@spatialys.com>
  4576. Merge branch 'patch-1' into 'master'
  4577. fix a typo in man page
  4578. See merge request libtiff/libtiff!88
  4579. 2019-08-09 Reto Kromer <rk@reto.ch>
  4580. fix typo.
  4581. 2019-08-04 Even Rouault <even.rouault@spatialys.com>
  4582. Merge branch 'TIFFTAGID_Zero_reading_IGNORE' into 'master'
  4583. Suppressed Reading of Tiff tags with ID = 0 (like GPSVERSIONID) corrected.
  4584. See merge request libtiff/libtiff!77
  4585. 2019-08-04 Su Laus <sulau@freenet.de>
  4586. Reading of Tiff tags with ID = 0 (like GPSVERSIONID) corrected.
  4587. IGNORE placeholder in tif_dirread.c is now replaced by a field dir_ignore in the TIFFDirEntry structure
  4588. Currently, in tif_dirread.c a special IGNORE value for the tif tags is defined
  4589. in order to flag status preventing already processed tags from further processing.
  4590. This irrational behaviour prevents reading of custom tags with id code 0 - like tag GPSVERSIONID from EXIF 2.31 definition.
  4591. An additional field 'tdir_ignore' is now added to the TIFFDirEntry structure and code is changed
  4592. to allow tags with id code 0 to be read correctly.
  4593. This change was already proposed as pending improvement in tif_dirread.c around line 32.
  4594. Reference is also made to:
  4595. - Discussion in https://gitlab.com/libtiff/libtiff/merge_requests/39
  4596. - http://bugzilla.maptools.org/show_bug.cgi?id=2540
  4597. Comments and indentation adapted.
  4598. Preparation to rebase onto master
  4599. 2019-07-16 Even Rouault <even.rouault@spatialys.com>
  4600. Merge branch 'cmake_amd64' into 'master'
  4601. CMakeLists.txt: properly set value of HOST_FILLORDER to LSB2MSB for Windows CMake builds
  4602. See merge request libtiff/libtiff!87
  4603. 2019-07-15 Even Rouault <even.rouault@spatialys.com>
  4604. CMakeLists.txt: properly set value of HOST_FILLORDER to LSB2MSB for Windows CMake builds
  4605. As can be seen in https://ci.appveyor.com/project/rleigh-codelibre/libtiff-didfs/builds/25846668/job/ory5w098j8wcij9x
  4606. log, the HOST_FILLORDER is not properly set:
  4607. [00:02:58] -- CMAKE_HOST_SYSTEM_PROCESSOR set to AMD64
  4608. [00:02:58] -- HOST_FILLORDER set to FILLORDER_MSB2LSB
  4609. The reason is that we match the "amd64.*" lowercase string whereas
  4610. CMAKE_HOST_SYSTEM_PROCESSOR is set to AMD64 uppercase.
  4611. 2019-07-09 Even Rouault <even.rouault@spatialys.com>
  4612. TIFFWriteCheck(): call TIFFForceStrileArrayWriting() when needed (should have gone with eaeca6274ae71cdfaeb9f673b6fb0f3cfc0e6ce5) (master only)
  4613. 2019-07-09 Even Rouault <even.rouault@spatialys.com>
  4614. Merge branch 'fix_chromium_925269' into 'master'
  4615. OJPEG: avoid use of uninitialized memory on corrupted files
  4616. See merge request libtiff/libtiff!86
  4617. 2019-07-05 Even Rouault <even.rouault@spatialys.com>
  4618. OJPEG: avoid use of uninitialized memory on corrupted files.
  4619. Fixes https://bugs.chromium.org/p/chromium/issues/detail?id=925269
  4620. Patch from Lei Zhang with little adaptations.
  4621. 2019-06-29 Even Rouault <even.rouault@spatialys.com>
  4622. Merge branch 'fix-division-by-zero' into 'master'
  4623. Return infinite distance when denominator is zero.
  4624. See merge request libtiff/libtiff!85
  4625. 2019-06-29 Dirk Lemstra <dirk@lemstra.org>
  4626. Return infinite distance when denominator is zero.
  4627. 2019-06-29 Even Rouault <even.rouault@spatialys.com>
  4628. Merge branch 'typetests' into 'master'
  4629. Add test to check that libtiff types have the correct size
  4630. See merge request libtiff/libtiff!57
  4631. 2019-05-31 Thomas Bernard <miniupnp@free.fr>
  4632. make TIFF_SSIZE_T the same bitwidth as TIFF_SIZE_T.
  4633. it was previously the same bitwidth as unsigned char *
  4634. Pointers can be larger than size_t.
  4635. 2019-05-31 Thomas Bernard <miniupnp@free.fr>
  4636. Add test to check that libtiff types have the correct size.
  4637. in configure/CMakeList.txt :
  4638. - TIFF_INT8_T/TIFF_UINT8_T is signed/unsigned char
  4639. sizeof(char)==1 in C standard
  4640. - TIFF_INT16_T/TIFF_UINT16_T is signed/unsigned short
  4641. sizeof(short)>=2 in C standard
  4642. - TIFF_INT32_T/TIFF_UINT32_T is defined so its sizeof() is 4
  4643. - TIFF_INT64_T/TIFF_UINT64_T is defined so its sizeof() is 8
  4644. - TIFF_SIZE_T is defined so it has same sizeof() than size_t
  4645. - TIFF_SSIZE_T is defined so it has same sizeof() than unsigned char *
  4646. 2019-05-29 Even Rouault <even.rouault@spatialys.com>
  4647. Merge branch 'defer_strile_writing' into 'master'
  4648. Add TIFFDeferStrileArrayWriting() and TIFFForceStrileArrayWriting()
  4649. See merge request libtiff/libtiff!82
  4650. 2019-05-29 Even Rouault <even.rouault@spatialys.com>
  4651. Merge branch 'TIFFReadFromUserBuffer' into 'master'
  4652. Add TIFFReadFromUserBuffer()
  4653. See merge request libtiff/libtiff!81
  4654. 2019-05-26 Even Rouault <even.rouault@spatialys.com>
  4655. Fix vulnerability in 'D' (DeferStrileLoad) mode (master only) (fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=14908)
  4656. 2019-05-25 Even Rouault <even.rouault@spatialys.com>
  4657. Replace 'stripped' by 'striped' in error messages.
  4658. 2019-05-25 Even Rouault <even.rouault@spatialys.com>
  4659. Add TIFFDeferStrileArrayWriting() and TIFFForceStrileArrayWriting()
  4660. Those advanced writing functions must be used in a particular sequence
  4661. to make their intended effect. Their aim is to control when/where
  4662. the [Strip/Tile][Offsets/ByteCounts] arrays are written into the file.
  4663. The purpose of this is to generate 'cloud-optimized geotiff' files where
  4664. the first KB of the file only contain the IFD entries without the potentially
  4665. large strile arrays. Those are written afterwards.
  4666. The typical sequence of calls is:
  4667. TIFFOpen()
  4668. [ TIFFCreateDirectory(tif) ]
  4669. Set fields with calls to TIFFSetField(tif, ...)
  4670. TIFFDeferStrileArrayWriting(tif)
  4671. TIFFWriteCheck(tif, ...)
  4672. TIFFWriteDirectory(tif)
  4673. ... potentially create other directories and come back to the above directory
  4674. TIFFForceStrileArrayWriting(tif): emit the arrays at the end of file
  4675. See test/defer_strile_writing.c for a practical example.
  4676. 2019-05-24 Even Rouault <even.rouault@spatialys.com>
  4677. Fix vulnerability introduced by defer strile loading (master only)
  4678. Found on GDAL with https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=14894
  4679. Disabling the TIFF_DEFERSTRILELOAD bit in ChopupStripArray() was a
  4680. bad idea since when using TIFFReadDirectory() to reload the directory again
  4681. would lead to a different value of td_rowsperstrip, which could confuse
  4682. readers if they relied on the value found initially.
  4683. Fix typo in error message (master only)
  4684. 2019-05-22 Even Rouault <even.rouault@spatialys.com>
  4685. Add TIFFReadFromUserBuffer()
  4686. This function replaces the use of TIFFReadEncodedStrip()/TIFFReadEncodedTile()
  4687. when the user can provide the buffer for the input data, for example when
  4688. he wants to avoid libtiff to read the strile offset/count values from the
  4689. [Strip|Tile][Offsets/ByteCounts] array.
  4690. libtiff.def: add missing new symbols.
  4691. test/defer_strile_loading.c: fix warning with Visual C++
  4692. _TIFFRewriteField(): fix for bigtiff case (master only)
  4693. 116cf67f4c59196605abdb244657c3070c4310af made StripByteCount/TileByteCount to
  4694. always be rewritten as TIFF_LONG8.
  4695. 2019-05-21 Even Rouault <even.rouault@spatialys.com>
  4696. Merge branch 'ondemand_strile_offbytecount_loading' into 'master'
  4697. Make defer strile offset/bytecount loading available at runtime
  4698. See merge request libtiff/libtiff!79
  4699. 2019-05-21 Even Rouault <even.rouault@spatialys.com>
  4700. Merge branch 'bigtiff_write_bytecount_on_long_when_possible' into 'master'
  4701. Create TileByteCounts/StripByteCounts tag with SHORT (ClassicTIFF/BigTIFF) or LONG (BigTIFF) type when possible
  4702. See merge request libtiff/libtiff!78
  4703. 2019-05-21 Even Rouault <even.rouault@spatialys.com>
  4704. Merge branch 'html_link' into 'master'
  4705. libtiff.html, bigtiffpr.html: absolute => relative link
  4706. See merge request libtiff/libtiff!80
  4707. 2019-05-14 Thomas Bernard <miniupnp@free.fr>
  4708. libtiff.html, bigtiffpr.html: absolute => relative link.
  4709. 2019-05-10 Even Rouault <even.rouault@spatialys.com>
  4710. Make defer strile offset/bytecount loading available at runtime.
  4711. ... and add per-strile offset/bytecount loading capabilities.
  4712. Part of this commit makes the behaviour that was previously met when
  4713. libtiff was compiled with -DDEFER_STRILE_LOAD available for default builds
  4714. when specifying the new 'D' (Deferred) TIFFOpen() flag. In that mode, the [Tile/Strip][ByteCounts/Offsets]
  4715. arrays are only loaded when first accessed. This can speed-up the opening
  4716. of files stored on the network when just metadata retrieval is needed.
  4717. This mode has been used for years by the GDAL library when compiled with
  4718. its embedded libtiff copy.
  4719. To avoid potential out-of-tree code (typically codecs) that would use
  4720. the td_stripbytecount and td_stripoffset array inconditionnaly assuming they
  4721. have been loaded, those have been suffixed with _p (for protected). The
  4722. use of the new functions mentioned below is then recommended.
  4723. Another addition of this commit is the capability of loading only the
  4724. values of the offset/bytecount of the strile of interest instead of the
  4725. whole array. This is enabled with the new 'O' (Ondemand) flag of TIFFOpen()
  4726. (which implies 'D'). That behaviour has also been used by GDAL, which hacked
  4727. into the td_stripoffset/td_stripbytecount arrays directly. The new code
  4728. added in the _TIFFFetchStrileValue() and _TIFFPartialReadStripArray() internal
  4729. functions is mostly a port of what was in GDAL GTiff driver previously.
  4730. Related to that, the public TIFFGetStrileOffset[WithErr]() and TIFFGetStrileByteCount[WithErr]()
  4731. functions have been added to API. They are of particular interest when
  4732. using sparse files (with offset == bytecount == 0) and you want to detect
  4733. if a strile is present or not without decompressing the data, or updating
  4734. an existing sparse file.
  4735. They will also be used to enable a future enhancement where client code can entirely
  4736. skip bytecount loading in some situations
  4737. A new test/defer_strile_loading.c test has been added to test the above
  4738. capabilities.
  4739. 2019-05-10 Even Rouault <even.rouault@spatialys.com>
  4740. Creation: use SHORT type when possible for StripByteCounts/TileByteCounts
  4741. This follows the same logic as previous commit.
  4742. 2019-05-09 Even Rouault <even.rouault@spatialys.com>
  4743. BigTIFF creation: write TileByteCounts/StripByteCounts tag with LONG when possible
  4744. In most situations of BigTIFF file, the tile/strip sizes are of reasonable size,
  4745. that is they fit on a 4-byte LONG. So in that case, use LONG instead of LONG8
  4746. to save some space. For uncompressed file, it is easy to detect such situations
  4747. by checking at the TIFFTileSize64()/TIFFStripSize64() return. For compressed file,
  4748. we must take into account the fact that compression may sometimes result in
  4749. larger compressed data. So we allow this optimization only for a few select
  4750. compression times, and take a huge security margin (10x factor). We also only
  4751. apply this optimization on multi-strip files, so as to allow easy on-the-fly
  4752. growing of single-strip files whose strip size could grow above the 4GB threshold.
  4753. This change is compatible with the BigTIFF specification. According to
  4754. https://www.awaresystems.be/imaging/tiff/bigtiff.html:
  4755. "The StripOffsets, StripByteCounts, TileOffsets, and TileByteCounts tags are
  4756. allowed to have the datatype TIFF_LONG8 in BigTIFF. Old datatypes TIFF_LONG,
  4757. and TIFF_SHORT where allowed in the TIFF 6.0 specification, are still valid in BigTIFF, too. "
  4758. On a practical point of view, this is also compatible on reading/writing of
  4759. older libtiff 4.X versions.
  4760. The only glitch I found, which is rather minor, is when using such a BigTIFF
  4761. file with TileByteCounts/StripByteCounts written with TIFF_LONG, and updating
  4762. it with an older libtiff 4.X version with a change in the
  4763. [Tile/Strip][ByteCounts/Offsets] array. In that case the _TIFFRewriteField()
  4764. function will rewrite the directory and array with TIFF_LONG8, instead of updating
  4765. the existing array (this is an issue fixed by this commit). The file will
  4766. still be valid however, hence the minor severity of this.
  4767. 2019-05-08 Even Rouault <even.rouault@spatialys.com>
  4768. Merge branch 'bug2799' into 'master'
  4769. fix fax2tiff
  4770. See merge request libtiff/libtiff!55
  4771. 2019-05-08 Even Rouault <even.rouault@spatialys.com>
  4772. Merge branch 'bug_2829' into 'master'
  4773. WIN32: use tif_win32.c when building with CMake
  4774. See merge request libtiff/libtiff!75
  4775. 2019-05-06 Even Rouault <even.rouault@spatialys.com>
  4776. Merge branch 'FILESOURCE_SCENETYPE_reading' into 'master'
  4777. Reading error for FileSource and SceneType tags corrected.
  4778. See merge request libtiff/libtiff!76
  4779. 2019-05-06 Su Laus <sulau@freenet.de>
  4780. Reading error for FileSource and SceneType tags corrected.
  4781. EXIF tags FILESOURCE and SCENETYPE are defined as TIFF_UNDEFINED and field_readcount==1!
  4782. There is a bug in TIFFReadDirEntryByte() preventing to read correctly type TIFF_UNDEFINED fields with field_readcount==1
  4783. Upgrade of TIFFReadDirEntryByte() with added TIFF_UNDEFINED switch-entry allows libtiff to read those tags correctly.
  4784. 2019-04-25 Thomas Bernard <miniupnp@free.fr>
  4785. WIN32: use tif_win32.c when building with CMake.
  4786. see http://bugzilla.maptools.org/show_bug.cgi?id=2829
  4787. the top CMakeLists.txt defines
  4788. win32_io and USE_WIN32_FILEIO
  4789. WIN32_IO is defined nowhere in CMake (only in automake things)
  4790. 2019-04-25 Even Rouault <even.rouault@spatialys.com>
  4791. Merge branch 'gitlab_pages' into 'master'
  4792. Advertise https://libtiff.gitlab.io/libtiff/ as mirror
  4793. See merge request libtiff/libtiff!70
  4794. 2019-04-25 Even Rouault <even.rouault@spatialys.com>
  4795. Merge branch 'bug_2844' into 'master'
  4796. tiff2ps.c: PSDataColorContig(): avoid heap buffer overrun
  4797. See merge request libtiff/libtiff!69
  4798. 2019-04-25 Even Rouault <even.rouault@spatialys.com>
  4799. Merge branch 'issue_2785' into 'master'
  4800. tiff2pdf.c: don't call t2p_tile_collapse_left() for Ycbcr
  4801. See merge request libtiff/libtiff!64
  4802. 2019-04-11 Even Rouault <even.rouault@spatialys.com>
  4803. Merge branch 'fix_gdal_1439' into 'master'
  4804. TIFFWriteEncodedStrip/TIFFWriteEncodedTile: fix rewriting of LZW-compressed data
  4805. See merge request libtiff/libtiff!74
  4806. 2019-04-11 Even Rouault <even.rouault@spatialys.com>
  4807. TIFFWriteEncodedStrip/TIFFWriteEncodedTile: fix rewriting of LZW-compressed data
  4808. Fixes https://github.com/OSGeo/gdal/issues/1439
  4809. When rewriting a LZW tile/strip whose existing size is very close to a multiple of
  4810. 1024 bytes (and larger than 8192 bytes) with compressed data that is larger,
  4811. the new data was not placed at the end of the file, causing corruption.
  4812. 2019-04-08 Even Rouault <even.rouault@spatialys.com>
  4813. Merge branch 'bug2848' into 'master'
  4814. tif_luv.c: LogLuvSetupEncode() error must return 0
  4815. See merge request libtiff/libtiff!72
  4816. 2019-04-03 Thomas Bernard <miniupnp@free.fr>
  4817. build/gitlab-ci: fix typo.
  4818. show test-suite.log in gitlab-ci.
  4819. useful when build fails
  4820. Add output check for tiff2ps.
  4821. note : the reference files have been generated in master branch
  4822. 2019-03-23 Even Rouault <even.rouault@spatialys.com>
  4823. tif_read.c: potentially fix false positive from Coverity Scan. CID 1400288
  4824. tif_read.c: potentially fix false positive from Coverity Scan. CID 1400271
  4825. tif_zip.c: remove dead code. CID 1400360.
  4826. tif_webp.c: remove false positive warning about dereference before null check. CID 1400255
  4827. tif_pixarlog.c: remove dead code. CID 1400342.
  4828. tif_pixarlog.c: avoid false positive Coverity Scan warnings about overflow. CID 1400300 and 1400367
  4829. tif_lzw.c: silence CoverityScan false positive. CID 1400355.
  4830. tif_luv.c: silence CoverityScan false positive. CID 1400231, 1400251, 1400254, 1400272, 1400318, 1400356
  4831. TryChopUpUncompressedBigTiff(): avoid potential division by zero. master only. GDAL Coverity CID 1400263
  4832. 2019-03-22 Thomas Bernard <miniupnp@free.fr>
  4833. tif_luv.c: LogLuvSetupEncode() error must return 0.
  4834. see http://bugzilla.maptools.org/show_bug.cgi?id=2848
  4835. if wrongly returning 1, the processing of incorrect file continues,
  4836. which causes problems.
  4837. 2019-03-22 Thomas Bernard <miniupnp@free.fr>
  4838. add a test for fax2tiff tool.
  4839. 2019-02-28 Thomas Bernard <miniupnp@free.fr>
  4840. tiff2pdf.c: don't call t2p_tile_collapse_left() when buffer size is wrong
  4841. see http://bugzilla.maptools.org/show_bug.cgi?id=2785
  4842. Advertise https://libtiff.gitlab.io/libtiff/ as mirror.
  4843. I'm put it above the maptools.org mirror because
  4844. Even Rouault believe at some point it will be completely removed
  4845. 2019-02-28 Even Rouault <even.rouault@spatialys.com>
  4846. Merge branch 'bug_2826' into 'master'
  4847. tiff2pdf.c: check colormap pointers when loading CMYK with colormap
  4848. See merge request libtiff/libtiff!65
  4849. 2019-02-28 Thomas Bernard <miniupnp@free.fr>
  4850. tiff2pdf.c: check colormap pointers.
  4851. Avoid access to non initialized pointers
  4852. http://bugzilla.maptools.org/show_bug.cgi?id=2826
  4853. 2019-02-27 Even Rouault <even.rouault@spatialys.com>
  4854. Merge branch 'fix_warnings' into 'master'
  4855. tiff2ps.c: fix warning caused by integer promotion
  4856. See merge request libtiff/libtiff!68
  4857. 2019-02-23 Thomas Bernard <miniupnp@free.fr>
  4858. PSDataColorContig(): avoid heap buffer overrun.
  4859. fixes http://bugzilla.maptools.org/show_bug.cgi?id=2844
  4860. each iteration of the loop read nc bytes
  4861. 2019-02-22 Thomas Bernard <miniupnp@free.fr>
  4862. tiff2ps.c: fix warning caused by integer promotion.
  4863. uint8 value is promoted to int in (value << 24) so -fsanitize
  4864. yield runtime errors :
  4865. tiff2ps.c:2969:33: runtime error: left shift of 246 by 24 places cannot be represented in type 'int'
  4866. 2019-02-22 Even Rouault <even.rouault@spatialys.com>
  4867. Merge branch 'large_strile_improvements' into 'master'
  4868. Large strile support improvements
  4869. See merge request libtiff/libtiff!63
  4870. 2019-02-21 Even Rouault <even.rouault@spatialys.com>
  4871. Merge branch 'gitlab-pages' into 'master'
  4872. ci: Add pages job
  4873. See merge request libtiff/libtiff!45
  4874. 2019-02-19 Even Rouault <even.rouault@spatialys.com>
  4875. Merge branch 'issue_2833' into 'master'
  4876. tiffcp.c: check that (Tile Width)*(Samples/Pixel) do no overflow
  4877. See merge request libtiff/libtiff!60
  4878. 2019-02-19 Even Rouault <even.rouault@spatialys.com>
  4879. Merge branch 'issue_2831' into 'master'
  4880. tiffcrop.c: fix invertImage() for bps 2 and 4
  4881. See merge request libtiff/libtiff!61
  4882. 2019-02-19 Even Rouault <even.rouault@spatialys.com>
  4883. Merge branch 'issue_2842' into 'master'
  4884. move _TIFFClampDoubleToFloat() to tif_aux.c
  4885. See merge request libtiff/libtiff!62
  4886. 2019-02-19 Even Rouault <even.rouault@spatialys.com>
  4887. tif_zip.c: allow reading and writing strips/tiles with more than 4 GB of compressed or uncompressed data
  4888. tif_dirread.c: when strip chopping is enabled, extend this mechanism to multi-strip uncompressed files with strips larger than 2GB to expose them as strips of ~500 MB
  4889. 2019-02-19 Even Rouault <even.rouault@spatialys.com>
  4890. Merge branch 'size_t_typo' into 'master'
  4891. CMakeLists.txt: fix TIFF_SIZE_T
  4892. See merge request libtiff/libtiff!59
  4893. 2019-02-12 Thomas Bernard <miniupnp@free.fr>
  4894. move _TIFFClampDoubleToFloat() to tif_aux.c.
  4895. the same function was declared in tif_dir.c and tif_dirwrite.c
  4896. see http://bugzilla.maptools.org/show_bug.cgi?id=2842
  4897. 2019-02-11 Thomas Bernard <miniupnp@free.fr>
  4898. tiffcrop.c: fix invertImage() for bps 2 and 4.
  4899. too much bytes were processed, causing a heap buffer overrun
  4900. http://bugzilla.maptools.org/show_bug.cgi?id=2831
  4901. the loop counter must be
  4902. for (col = 0; col < width; col += 8 / bps)
  4903. Also the values were not properly calculated. It should be
  4904. 255-x, 15-x, 3-x for bps 8, 4, 2.
  4905. But anyway it is easier to invert all bits as 255-x = ~x, etc.
  4906. (subtracting from a binary number composed of all 1 is like inverting
  4907. the bits)
  4908. 2019-02-11 Thomas Bernard <miniupnp@free.fr>
  4909. tiffcp.c: use INT_MAX.
  4910. check that (Tile Width)*(Samples/Pixel) do no overflow.
  4911. fixes bug 2833
  4912. 2019-02-03 Thomas Bernard <miniupnp@free.fr>
  4913. CMakeLists.txt: fix TIFF_SIZE_T.
  4914. 2019-02-02 Even Rouault <even.rouault@spatialys.com>
  4915. Merge branch 'master' into 'master'
  4916. Fix for simple memory leak that was assigned CVE-2019-6128.
  4917. See merge request libtiff/libtiff!50
  4918. 2019-02-02 Even Rouault <even.rouault@spatialys.com>
  4919. Merge branch 'bug2835' into 'master'
  4920. tiff2ps: fix heap-buffer-overflow
  4921. See merge request libtiff/libtiff!53
  4922. 2019-02-02 Even Rouault <even.rouault@spatialys.com>
  4923. Fix warning (use of uninitialized value) added per d0a842c5dbad2609aed43c701a12ed12461d3405 (fixes https://gitlab.com/libtiff/libtiff/merge_requests/54#note_137742985)
  4924. 2019-02-02 Yuri Aksenov <yuri.aksenov@gmail.com>
  4925. fix fax2tiff.
  4926. see http://bugzilla.maptools.org/show_bug.cgi?id=2799
  4927. fixes d9bc8472e72549f29c0062c1cbd3d56f279f3be2
  4928. 2019-02-02 Even Rouault <even.rouault@spatialys.com>
  4929. Merge branch 'tiffcrop' into 'master'
  4930. tiffcrop: shut up clang warnings
  4931. See merge request libtiff/libtiff!52
  4932. 2019-02-01 Even Rouault <even.rouault@spatialys.com>
  4933. Merge branch 'bug2833' into 'master'
  4934. TIFFWriteDirectoryTagTransferfunction() : fix NULL dereferencing
  4935. See merge request libtiff/libtiff!54
  4936. 2019-02-01 Even Rouault <even.rouault@spatialys.com>
  4937. Merge branch 'gitignore' into 'master'
  4938. add test/ files to .gitignore
  4939. See merge request libtiff/libtiff!56
  4940. 2019-02-01 Even Rouault <even.rouault@spatialys.com>
  4941. Merge branch 'master' into 'master'
  4942. tif_dir: unset transferfunction field if necessary (CVE-2018-19210)
  4943. See merge request libtiff/libtiff!47
  4944. 2019-01-29 Thomas Bernard <miniupnp@free.fr>
  4945. add test/ files to .gitignore.
  4946. 2019-01-29 Thomas Bernard <miniupnp@free.fr>
  4947. TIFFWriteDirectoryTagTransferfunction() : fix NULL dereferencing.
  4948. http://bugzilla.maptools.org/show_bug.cgi?id=2833
  4949. we must check the pointer is not NULL before memcmp() the memory
  4950. 2019-01-29 Thomas Bernard <miniupnp@free.fr>
  4951. tiff2ps: fix heap-buffer-overflow.
  4952. http://bugzilla.maptools.org/show_bug.cgi?id=2834
  4953. usually the test (i < byte_count) is OK because the byte_count is divisible by samplesperpixel.
  4954. But if that is not the case, (i + ncomps) < byte_count should be used, or
  4955. maybe (i + samplesperpixel) <= byte_count
  4956. 2019-01-28 Thomas Bernard <miniupnp@free.fr>
  4957. tiffcrop: shut up clang warnings.
  4958. make the out filename building a bit more simple
  4959. and remove the use of strcat()
  4960. 2019-01-23 Scott Gayou <github.scott@gmail.com>
  4961. Fix for simple memory leak that was assigned CVE-2019-6128.
  4962. pal2rgb failed to free memory on a few errors. This was reported
  4963. here: http://bugzilla.maptools.org/show_bug.cgi?id=2836.
  4964. 2019-01-05 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  4965. Fix tiff2ps error regarding "Inconsistent value of es" by allowing es to be zero. Problem was reported to the tiff mailing list by Julian H. Stacey on January 5, 2019.
  4966. 2018-12-13 Hugo Lefeuvre <hle@debian.org>
  4967. tif_dir: unset transferfunction field if necessary.
  4968. The number of entries in the transfer table is determined as following:
  4969. (td->td_samplesperpixel - td->td_extrasamples) > 1 ? 3 : 1
  4970. This means that whenever td->td_samplesperpixel or td->td_extrasamples are
  4971. modified we also need to make sure that the number of required entries in
  4972. the transfer table didn't change.
  4973. If it changed and the number of entries is higher than before we should
  4974. invalidate the transfer table field and free previously allocated values.
  4975. In the other case there's nothing to do, additional tf entries won't harm
  4976. and properly written code will just ignore them since spp - es < 1.
  4977. For instance this situation might happen when reading an OJPEG compressed
  4978. image with missing SamplesPerPixel tag. In this case the SamplesPerPixel
  4979. field might be updated after setting the transfer table.
  4980. see http://bugzilla.maptools.org/show_bug.cgi?id=2500
  4981. This commit addresses CVE-2018-19210.
  4982. 2018-12-08 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  4983. Do not attempt to re-sync zip stream after reported data error from inflate().
  4984. 2018-12-07 Even Rouault <even.rouault@spatialys.com>
  4985. Merge branch 'resource-leaks' into 'master'
  4986. Fix two resource leaks
  4987. See merge request libtiff/libtiff!43
  4988. 2018-12-07 Even Rouault <even.rouault@spatialys.com>
  4989. Merge branch 'build-jbig' into 'master'
  4990. add jbig support to the fuzzer
  4991. See merge request libtiff/libtiff!42
  4992. 2018-12-01 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  4993. tiffcrop.c: Avoid new clang warning about tools/tiffcrop.c "size argument in 'strncat' call appears to be size of the source".
  4994. 2018-11-28 Even Rouault <even.rouault@spatialys.com>
  4995. Merge branch 'webp_memleak' into 'master'
  4996. fixed mem leak in webp compression
  4997. See merge request libtiff/libtiff!48
  4998. 2018-11-28 Norman Barker <norman.barker@mapbox.com>
  4999. fixed mem leak in webp compression.
  5000. 2018-11-20 Even Rouault <even.rouault@spatialys.com>
  5001. Merge branch 'lossless_webp' into 'master'
  5002. fixed lossless webp compression config
  5003. See merge request libtiff/libtiff!46
  5004. 2018-11-20 Norman Barker <norman.barker@mapbox.com>
  5005. fixed lossless webp compression config.
  5006. 2018-11-18 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  5007. snprintf porting fix for Visual Studio 2003.
  5008. 2018-11-18 Roger Leigh <rleigh@codelibre.net>
  5009. ci: Add pages job.
  5010. 2018-11-10 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  5011. Change references from defunct ftp site to https site.
  5012. 2018-11-10 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  5013. * configure.ac: libtiff 4.0.10 released.
  5014. Change COMPRESSION_ZSTD to 50000 and COMPRESSION_WEBP to 50001.
  5015. 2018-11-04 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  5016. Added preliminary release notes for release 4.0.10.
  5017. 2018-11-03 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  5018. tiff2pdf: Eliminate compiler warning about snprintf output truncation when formatting pdf_datetime.
  5019. 2018-11-03 Olivier Paquet <olivier.paquet@gmail.com>
  5020. Merge branch 'no_tif_platform_console' into 'master'
  5021. Remove builtin support for GUI warning and error message boxes
  5022. See merge request libtiff/libtiff!24
  5023. 2018-11-03 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  5024. tiffcrop.c: Eliminate compiler warning about snprintf output truncation when formatting filenum.
  5025. TWebPVGetField(): Add apparently missing break statement impacting TIFFTAG_WEBP_LOSSLESS.
  5026. Eliminate compiler warnings about duplicate definitions of streq/strneq macros.
  5027. Ignore generated files.
  5028. Remove and ignore files which are a product of autogen.sh.
  5029. 2018-11-02 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  5030. Fix TIFFErrorExt() formatting of size_t type for 32-bit compiles.
  5031. 2018-10-30 Even Rouault <even.rouault@spatialys.com>
  5032. tiff2bw: avoid null pointer dereference in case of out of memory situation. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2819 / CVE-2018-18661
  5033. tiffio.h: fix comment.
  5034. 2018-10-26 Even Rouault <even.rouault@spatialys.com>
  5035. Merge branch 'header2' into 'master'
  5036. Fix 725279bd: Standalone tif_predict.h: tiff.h should be tiffiop.h
  5037. See merge request libtiff/libtiff!41
  5038. 2018-10-26 Kurt Schwehr <schwehr@google.com>
  5039. Fix 725279bd: Standalone tif_predict.h: tiff.h should be tiffiop.h.
  5040. 2018-10-25 Even Rouault <even.rouault@spatialys.com>
  5041. Merge branch 'headers' into 'master'
  5042. Add includes to headers to allow them to stand alone.
  5043. See merge request libtiff/libtiff!40
  5044. 2018-10-24 Kurt Schwehr <schwehr@google.com>
  5045. Add includes to headers to allow them to stand alone.
  5046. This allows compilers that can do header stand alone header parsing
  5047. to process libtiff.
  5048. 2018-10-18 Even Rouault <even.rouault@spatialys.com>
  5049. LZMAPreEncode: emit verbose error if lzma_stream_encoder() fails (typically because not enough memory available)
  5050. 2018-10-17 Even Rouault <even.rouault@spatialys.com>
  5051. tif_webp.c: fix previous commit that broke scanline decoding.
  5052. tif_webp.c: fix potential read outside libwebp buffer on corrupted images
  5053. 2018-10-14 Even Rouault <even.rouault@spatialys.com>
  5054. Merge branch 'jbig_decode_overflow' into 'master'
  5055. JBIG: fix potential out-of-bounds write in JBIGDecode()
  5056. See merge request libtiff/libtiff!38
  5057. 2018-10-14 Even Rouault <even.rouault@spatialys.com>
  5058. JBIG: fix potential out-of-bounds write in JBIGDecode()
  5059. JBIGDecode doesn't check if the user provided buffer is large enough
  5060. to store the JBIG decoded image, which can potentially cause out-of-bounds
  5061. write in the buffer.
  5062. This issue was reported and analyzed by Thomas Dullien.
  5063. Also fixes a (harmless) potential use of uninitialized memory when
  5064. tif->tif_rawsize > tif->tif_rawcc
  5065. And in case libtiff is compiled with CHUNKY_STRIP_READ_SUPPORT, make sure
  5066. that whole strip data is provided to JBIGDecode()
  5067. 2018-10-05 Even Rouault <even.rouault@spatialys.com>
  5068. tif_webp.c: fix scanline reading/writing.
  5069. WEBP codec: initialize nSamples in TWebPSetupDecode() and TWebPSetupEncode()
  5070. 2018-10-05 Even Rouault <even.rouault@spatialys.com>
  5071. Merge branch 'tif_webp' into 'master'
  5072. webp support
  5073. See merge request libtiff/libtiff!32
  5074. 2018-10-05 Norman Barker <norman.barker@mapbox.com>
  5075. webp in tiff.
  5076. 2018-09-17 Even Rouault <even.rouault@spatialys.com>
  5077. Merge branch 'master' into 'master'
  5078. fix three potential vulnerabilities.
  5079. See merge request libtiff/libtiff!33
  5080. 2018-09-08 Young_X <YangX92@hotmail.com>
  5081. fix out-of-bound read on some tiled images.
  5082. avoid potential int32 overflows in multiply_ms()
  5083. only read/write TIFFTAG_GROUP3OPTIONS or TIFFTAG_GROUP4OPTIONS if compression is COMPRESSION_CCITTFAX3 or COMPRESSION_CCITTFAX4
  5084. 2018-08-15 Even Rouault <even.rouault@spatialys.com>
  5085. TIFFSetupStrips(): avoid potential uint32 overflow on 32-bit systems with large number of strips. Probably relates to http://bugzilla.maptools.org/show_bug.cgi?id=2788 / CVE-2018-10779
  5086. 2018-08-07 Even Rouault <even.rouault@spatialys.com>
  5087. ZSTD: fix flush issue that can cause endless loop in ZSTDEncode()
  5088. Fixes https://github.com/OSGeo/gdal/issues/833
  5089. 2018-08-07 Even Rouault <even.rouault@spatialys.com>
  5090. Merge branch 'fix_bug_2800' into 'master'
  5091. Fix libtiff 4.0.8 regression when reading LZW-compressed strips with scanline API
  5092. See merge request libtiff/libtiff!31
  5093. 2018-08-07 Even Rouault <even.rouault@spatialys.com>
  5094. Fix libtiff 4.0.8 regression when reading LZW-compressed strips with scanline API
  5095. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2800
  5096. 2018-07-05 Even Rouault <even.rouault@spatialys.com>
  5097. Add tag and pseudo-tag definitions for ESRI LERC codec (out of tree codec whose source is at https://github.com/OSGeo/gdal/blob/master/gdal/frmts/gtiff/tif_lerc.c)
  5098. 2018-07-02 Even Rouault <even.rouault@spatialys.com>
  5099. Fix TIFFTAG_ZSTD_LEVEL pseudo tag value to be > 65536, and the next one in the series
  5100. 2018-05-25 Stefan Weil <sw@weilnetz.de>
  5101. Remove builtin support for GUI warning and error message boxes.
  5102. Now warnings always go to the console by default unless applications
  5103. define their own warning and error handlers.
  5104. GUI applications (and Windows CE) are required to define such handlers.
  5105. 2018-05-12 Even Rouault <even.rouault@spatialys.com>
  5106. LZWDecodeCompat(): fix potential index-out-of-bounds write. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2780 / CVE-2018-8905
  5107. The fix consists in using the similar code LZWDecode() to validate we
  5108. don't write outside of the output buffer.
  5109. TIFFFetchNormalTag(): avoid (probably false positive) clang-tidy clang-analyzer-core.NullDereference warnings
  5110. TIFFWriteDirectorySec: avoid assertion. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2795. CVE-2018-10963
  5111. 2018-05-04 Even Rouault <even.rouault@spatialys.com>
  5112. tif_color.c: fix code comment.
  5113. 2018-04-17 Even Rouault <even.rouault@mines-paris.org>
  5114. Merge branch 'fuzzer-fix' into 'master'
  5115. remove a pointless multiplication and a variable that's not necessary
  5116. See merge request libtiff/libtiff!29
  5117. 2018-04-17 Paul Kehrer <paul.l.kehrer@gmail.com>
  5118. remove a pointless multiplication and a variable that's not necessary.
  5119. 2018-04-17 Even Rouault <even.rouault@mines-paris.org>
  5120. Merge branch 'ossfuzz' into 'master'
  5121. move oss-fuzz build script and fuzzer into libtiff tree
  5122. See merge request libtiff/libtiff!28
  5123. 2018-04-17 Paul Kehrer <paul.l.kehrer@gmail.com>
  5124. move oss-fuzz build script and fuzzer into libtiff tree.
  5125. 2018-04-14 Even Rouault <even.rouault@spatialys.com>
  5126. _TIFFGetMaxColorChannels: update for LOGLUV, ITULAB and ICCLAB that have 3 color channels
  5127. 2018-04-12 Even Rouault <even.rouault@spatialys.com>
  5128. Fix MSVC warning.
  5129. 2018-04-12 Even Rouault <even.rouault@mines-paris.org>
  5130. Merge branch 'master' into 'master'
  5131. Fix NULL pointer dereference in TIFFPrintDirectory (bugzilla 2778/CVE-2018-7456)
  5132. See merge request libtiff/libtiff!27
  5133. 2018-04-11 Hugo Lefeuvre <hle@debian.org>
  5134. Fix NULL pointer dereference in TIFFPrintDirectory.
  5135. The TIFFPrintDirectory function relies on the following assumptions,
  5136. supposed to be guaranteed by the specification:
  5137. (a) A Transfer Function field is only present if the TIFF file has
  5138. photometric type < 3.
  5139. (b) If SamplesPerPixel > Color Channels, then the ExtraSamples field
  5140. has count SamplesPerPixel - (Color Channels) and contains
  5141. information about supplementary channels.
  5142. While respect of (a) and (b) are essential for the well functioning of
  5143. TIFFPrintDirectory, no checks are realized neither by the callee nor
  5144. by TIFFPrintDirectory itself. Hence, following scenarios might happen
  5145. and trigger the NULL pointer dereference:
  5146. (1) TIFF File of photometric type 4 or more has illegal Transfer
  5147. Function field.
  5148. (2) TIFF File has photometric type 3 or less and defines a
  5149. SamplesPerPixel field such that SamplesPerPixel > Color Channels
  5150. without defining all extra samples in the ExtraSamples fields.
  5151. In this patch, we address both issues with respect of the following
  5152. principles:
  5153. (A) In the case of (1), the defined transfer table should be printed
  5154. safely even if it isn't 'legal'. This allows us to avoid expensive
  5155. checks in TIFFPrintDirectory. Also, it is quite possible that
  5156. an alternative photometric type would be developed (not part of the
  5157. standard) and would allow definition of Transfer Table. We want
  5158. libtiff to be able to handle this scenario out of the box.
  5159. (B) In the case of (2), the transfer table should be printed at its
  5160. right size, that is if TIFF file has photometric type Palette
  5161. then the transfer table should have one row and not three, even
  5162. if two extra samples are declared.
  5163. In order to fulfill (A) we simply add a new 'i < 3' end condition to
  5164. the broken TIFFPrintDirectory loop. This makes sure that in any case
  5165. where (b) would be respected but not (a), everything stays fine.
  5166. (B) is fulfilled by the loop condition
  5167. 'i < td->td_samplesperpixel - td->td_extrasamples'. This is enough as
  5168. long as (b) is respected.
  5169. Naturally, we also make sure (b) is respected. This is done in the
  5170. TIFFReadDirectory function by making sure any non-color channel is
  5171. counted in ExtraSamples.
  5172. This commit addresses CVE-2018-7456.
  5173. 2018-03-27 Even Rouault <even.rouault@mines-paris.org>
  5174. Merge branch 'tiffset-long8' into 'master'
  5175. tiffset: Add support for LONG8, SLONG8 and IFD8 field types
  5176. See merge request libtiff/libtiff!25
  5177. 2018-03-26 Roger Leigh <rleigh@codelibre.net>
  5178. port: Clean up NetBSD sources and headers to build standalone.
  5179. 2018-03-23 Roger Leigh <rleigh@dundee.ac.uk>
  5180. port: Add strtol, strtoll and strtoull.
  5181. Also update strtoul. All use the same implementation from NetBSD libc.
  5182. tiffset: Add support for LONG8, SLONG8 and IFD8 field types.
  5183. 2018-03-17 Even Rouault <even.rouault@spatialys.com>
  5184. ChopUpSingleUncompressedStrip: avoid memory exhaustion (CVE-2017-11613)
  5185. Rework fix done in 3719385a3fac5cfb20b487619a5f08abbf967cf8 to work in more
  5186. cases like https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=6979.
  5187. Credit to OSS Fuzz
  5188. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2724
  5189. 2018-03-13 Even Rouault <even.rouault@spatialys.com>
  5190. libtiff/tif_luv.c: rewrite loops in a more readable way (to avoid false positive reports like http://bugzilla.maptools.org/show_bug.cgi?id=2779)
  5191. 2018-03-13 Even Rouault <even.rouault@mines-paris.org>
  5192. Merge branch 'avoid_memory_exhaustion_in_ChopUpSingleUncompressedStrip' into 'master'
  5193. ChopUpSingleUncompressedStrip: avoid memory exhaustion (CVE-2017-11613)
  5194. See merge request libtiff/libtiff!26
  5195. 2018-03-11 Even Rouault <even.rouault@spatialys.com>
  5196. ChopUpSingleUncompressedStrip: avoid memory exhaustion (CVE-2017-11613)
  5197. In ChopUpSingleUncompressedStrip(), if the computed number of strips is big
  5198. enough and we are in read only mode, validate that the file size is consistent
  5199. with that number of strips to avoid useless attempts at allocating a lot of
  5200. memory for the td_stripbytecount and td_stripoffset arrays.
  5201. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2724
  5202. 2018-03-10 Even Rouault <even.rouault@spatialys.com>
  5203. Typo fix in comment.
  5204. 2018-03-03 Even Rouault <even.rouault@spatialys.com>
  5205. Avoid warning with gcc 8 (partially revert 647b0e8c11ee11896f319b92cf110775f538d75c)
  5206. 2018-02-25 Even Rouault <even.rouault@mines-paris.org>
  5207. Merge branch 'typos' into 'master'
  5208. Fix some typos
  5209. See merge request libtiff/libtiff!23
  5210. 2018-02-24 Stefan Weil <sw@weilnetz.de>
  5211. Fix some typos.
  5212. Most of them were found by codespell.
  5213. 2018-02-14 Even Rouault <even.rouault@spatialys.com>
  5214. Typo fix in comment.
  5215. Merge branch 'zstd'
  5216. Add warning about COMPRESSION_ZSTD not being officially registered.
  5217. 2018-02-14 Even Rouault <even.rouault@mines-paris.org>
  5218. Merge branch 'bug2772' into 'master'
  5219. Fix for bug 2772
  5220. See merge request libtiff/libtiff!20
  5221. 2018-02-12 Nathan Baker <nathanb@lenovo-chrome.com>
  5222. Fix for bug 2772.
  5223. It is possible to craft a TIFF document where the IFD list is circular,
  5224. leading to an infinite loop while traversing the chain. The libtiff
  5225. directory reader has a failsafe that will break out of this loop after
  5226. reading 65535 directory entries, but it will continue processing,
  5227. consuming time and resources to process what is essentially a bogus TIFF
  5228. document.
  5229. This change fixes the above behavior by breaking out of processing when
  5230. a TIFF document has >= 65535 directories and terminating with an error.
  5231. 2018-02-09 Even Rouault <even.rouault@mines-paris.org>
  5232. Merge branch 'libtiff-as-subdirectory-fixes' into 'master'
  5233. Prefer target_include_directories
  5234. See merge request libtiff/libtiff!12
  5235. 2018-02-06 Even Rouault <even.rouault@mines-paris.org>
  5236. Merge branch 'cmake-cleanups' into 'master'
  5237. Cmake cleanups
  5238. See merge request libtiff/libtiff!11
  5239. 2018-02-06 Even Rouault <even.rouault@mines-paris.org>
  5240. Merge branch 'check-right-cxx-variable' into 'master'
  5241. Check right cxx variable
  5242. See merge request libtiff/libtiff!19
  5243. 2018-02-06 Even Rouault <even.rouault@mines-paris.org>
  5244. Merge branch 'dont-leak-stream-open' into 'master'
  5245. Fix a memory leak in TIFFStreamOpen
  5246. See merge request libtiff/libtiff!17
  5247. 2018-02-06 Ben Boeckel <ben.boeckel@kitware.com>
  5248. cmake: check CXX_SUPPORT.
  5249. This variable is set in response to the `cxx` cache variable; use it
  5250. instead.
  5251. 2018-02-04 Olivier Paquet <olivier.paquet@gmail.com>
  5252. Merge branch 'warnings' into 'master'
  5253. Fix all compiler warnings for default build
  5254. See merge request libtiff/libtiff!16
  5255. 2018-02-04 Nathan Baker <elitebadger@gmail.com>
  5256. Fix all compiler warnings for default build.
  5257. 2018-01-30 Paul Kehrer <paul.l.kehrer@gmail.com>
  5258. tabs are hard.
  5259. 2018-01-29 Paul Kehrer <paul.l.kehrer@gmail.com>
  5260. use hard tabs like the rest of the project.
  5261. Fix a memory leak in TIFFStreamOpen.
  5262. TIFFStreamOpen allocates a new tiff{o,i}s_data, but if TIFFClientOpen
  5263. fails then that struct is leaked. Delete it if the returned TIFF * is
  5264. null.
  5265. 2018-01-29 Kevin Funk <kfunk@kde.org>
  5266. Bump minimum required CMake version to v2.8.11.
  5267. Because we use the BUILD_INTERFACE generator expression
  5268. 2018-01-27 Even Rouault <even.rouault@mines-paris.org>
  5269. Merge branch 'patch-1' into 'master'
  5270. Update CMakeLists.txt for build fix on Windows
  5271. See merge request libtiff/libtiff!14
  5272. 2018-01-27 Even Rouault <even.rouault@mines-paris.org>
  5273. Merge branch 'patch-2' into 'master'
  5274. Update tiffgt.c for build fix on Windows
  5275. See merge request libtiff/libtiff!13
  5276. 2018-01-25 Olivier Paquet <olivier.paquet@gmail.com>
  5277. Merge branch 'bug2750' into 'master'
  5278. Add workaround to pal2rgb buffer overflow.
  5279. See merge request libtiff/libtiff!15
  5280. 2018-01-25 Nathan Baker <elitebadger@gmail.com>
  5281. Add workaround to pal2rgb buffer overflow.
  5282. 2018-01-23 Andrea <andrea@andreaplanet.com>
  5283. Update tiffgt.c for build fix on Windows.
  5284. Update CMakeLists.txt for build fix on Windows.
  5285. 2018-01-15 Even Rouault <even.rouault@mines-paris.org>
  5286. Merge branch 'has-attribute-check' into 'master'
  5287. tiffiop: use __has_attribute to detect the no_sanitize attribute
  5288. See merge request libtiff/libtiff!10
  5289. 2018-01-15 Ben Boeckel <ben.boeckel@kitware.com>
  5290. cmake: avoid setting hard-coded variables in the cache.
  5291. cmake: avoid an unnecessary intermediate variable.
  5292. cmake: avoid an unnecessary intermediate variable.
  5293. cmake: avoid tautological logic.
  5294. cmake: use check_symbol_exists.
  5295. This accounts for symbols being provided by macros.
  5296. cmake: remove unused configure checks.
  5297. 2018-01-12 Kevin Funk <kfunk@kde.org>
  5298. Prefer target_include_directories.
  5299. When libtiff is included in a super project via a simple
  5300. `add_subdirectory(libtiff)`, this way the `tiff` library target has all
  5301. the necessary information to build against it.
  5302. Note: The BUILD_INTERFACE generator expression feature requires at least
  5303. CMake v2.8.11 if I'm correct.
  5304. 2018-01-09 Ben Boeckel <ben.boeckel@kitware.com>
  5305. tiffiop: use __has_attribute to detect the no_sanitize attribute.
  5306. 2017-12-31 Even Rouault <even.rouault@spatialys.com>
  5307. man/TIFFquery.3tiff: remove reference to non-existing TIFFReadStrip() function in TIFFIsByteSwapped() documentation. Patch by Eric Piel. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2763
  5308. libtiff/tif_dir.c: _TIFFVGetField(): fix heap out-of-bounds access when requesting TIFFTAG_NUMBEROFINKS on a EXIF directory. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2765. Reported by Google Autofuzz project
  5309. libtiff/tif_print.c: TIFFPrintDirectory(): fix null pointer dereference on corrupted file. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2770
  5310. 2017-12-21 Even Rouault <even.rouault@spatialys.com>
  5311. Add libzstd to gitlab-ci.
  5312. 2017-12-21 Even Rouault <even.rouault@spatialys.com>
  5313. Add ZSTD compression codec.
  5314. From https://github.com/facebook/zstd
  5315. "Zstandard, or zstd as short version, is a fast lossless compression
  5316. algorithm, targeting real-time compression scenarios at zlib-level
  5317. and better compression ratios. It's backed by a very fast entropy stage,
  5318. provided by Huff0 and FSE library."
  5319. We require libzstd >= 1.0.0 so as to be able to use streaming compression
  5320. and decompression methods.
  5321. The default compression level we have selected is 9 (range goes from 1 to 22),
  5322. which experimentally offers equivalent or better compression ratio than
  5323. the default deflate/ZIP level of 6, and much faster compression.
  5324. For example on a 6600x4400 16bit image, tiffcp -c zip runs in 10.7 seconds,
  5325. while tiffcp -c zstd runs in 5.3 seconds. Decompression time for zip is
  5326. 840 ms, and for zstd 650 ms. File size is 42735936 for zip, and
  5327. 42586822 for zstd. Similar findings on other images.
  5328. On a 25894x16701 16bit image,
  5329. Compression time Decompression time File size
  5330. ZSTD 35 s 3.2 s 399 700 498
  5331. ZIP/Deflate 1m 20 s 4.9 s 419 622 336
  5332. 2017-12-10 Even Rouault <even.rouault@mines-paris.org>
  5333. Merge branch 'fix_cve-2017-9935' into 'master'
  5334. Fix CVE-2017-9935
  5335. See merge request libtiff/libtiff!7
  5336. 2017-12-10 Brian May <brian@linuxpenguins.xyz>
  5337. tiff2pdf: Fix apparent incorrect type for transfer table.
  5338. The standard says the transfer table contains unsigned 16 bit values,
  5339. I have no idea why we refer to them as floats.
  5340. 2017-12-10 Brian May <brian@linuxpenguins.xyz>
  5341. tiff2pdf: Fix CVE-2017-9935.
  5342. Fix for http://bugzilla.maptools.org/show_bug.cgi?id=2704
  5343. This vulnerability - at least for the supplied test case - is because we
  5344. assume that a tiff will only have one transfer function that is the same
  5345. for all pages. This is not required by the TIFF standards.
  5346. We than read the transfer function for every page. Depending on the
  5347. transfer function, we allocate either 2 or 4 bytes to the XREF buffer.
  5348. We allocate this memory after we read in the transfer function for the
  5349. page.
  5350. For the first exploit - POC1, this file has 3 pages. For the first page
  5351. we allocate 2 extra extra XREF entries. Then for the next page 2 more
  5352. entries. Then for the last page the transfer function changes and we
  5353. allocate 4 more entries.
  5354. When we read the file into memory, we assume we have 4 bytes extra for
  5355. each and every page (as per the last transfer function we read). Which
  5356. is not correct, we only have 2 bytes extra for the first 2 pages. As a
  5357. result, we end up writing past the end of the buffer.
  5358. There are also some related issues that this also fixes. For example,
  5359. TIFFGetField can return uninitialized pointer values, and the logic to
  5360. detect a N=3 vs N=1 transfer function seemed rather strange.
  5361. It is also strange that we declare the transfer functions to be of type
  5362. float, when the standard says they are unsigned 16 bit values. This is
  5363. fixed in another patch.
  5364. This patch will check to ensure that the N value for every transfer
  5365. function is the same for every page. If this changes, we abort with an
  5366. error. In theory, we should perhaps check that the transfer function
  5367. itself is identical for every page, however we don't do that due to the
  5368. confusion of the type of the data in the transfer function.
  5369. 2017-12-10 Even Rouault <even.rouault@mines-paris.org>
  5370. Merge branch 'undef-warn-fixes' into 'master'
  5371. Fix a couple of harmless but annoying -Wundef warnings
  5372. See merge request libtiff/libtiff!8
  5373. 2017-12-07 Vadim Zeitlin <vadim@zeitlins.org>
  5374. Remove tests for undefined SIZEOF_VOIDP.
  5375. As configure never uses AC_CHECK_SIZEOF(void*), this symbol is never
  5376. defined and so it doesn't make sense to test it in the code, this just
  5377. results in -Wundef warnings if they're enabled.
  5378. Avoid harmless -Wundef warnings for __clang_major__
  5379. Check that we're using Clang before checking its version.
  5380. 2017-12-02 Even Rouault <even.rouault@mines-paris.org>
  5381. Merge branch 'remove_autogenerated_files' into 'master'
  5382. Remove autogenerated files
  5383. See merge request libtiff/libtiff!5
  5384. 2017-12-02 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  5385. Merge branch 'tif_config_h_includes' into 'master'
  5386. 'tif_config.h' or 'tiffiop.h' must be included before any system header.
  5387. See merge request libtiff/libtiff!6
  5388. 2017-12-02 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  5389. 'tif_config.h' or 'tiffio.h' must be included before any system header.
  5390. 2017-12-01 Even Rouault <even.rouault@spatialys.com>
  5391. .gitignore: add patterns for build from root.
  5392. Remove remaining .cvsignore files.
  5393. Remove autoconf/automake generated files, and add them to .gitignore.
  5394. 2017-12-01 Olivier Paquet <olivier.paquet@gmail.com>
  5395. Merge branch 'makedistcheck' into 'master'
  5396. build/gitlab-ci and build/travis-ci: add a 'make dist' step in autoconf_build()…
  5397. See merge request libtiff/libtiff!4
  5398. 2017-12-01 Even Rouault <even.rouault@spatialys.com>
  5399. build/gitlab-ci and build/travis-ci: add a 'make dist' step in autoconf_build() target, to check we are release-ready
  5400. 2017-12-01 Even Rouault <even.rouault@mines-paris.org>
  5401. Merge branch 'git_updates' into 'master'
  5402. CVS to Git updates
  5403. See merge request libtiff/libtiff!2
  5404. 2017-12-01 Even Rouault <even.rouault@spatialys.com>
  5405. HOWTO-RELEASE: update to use signed tags.
  5406. README.md: use markdown syntax for hyperlinks.
  5407. 2017-11-30 Even Rouault <even.rouault@spatialys.com>
  5408. Add .gitignore.
  5409. Regenerate autoconf files.
  5410. Makefile.am: update to reflect removal of README.vms and README -> README.md
  5411. Remove all $Id and $Headers comments with CVS versions.
  5412. HOWTO-RELEASE: update for git.
  5413. Remove outdated .cvsignore.
  5414. Remove outdated commit script.
  5415. Remove README.vms.
  5416. Rename README as README.md, and update content.
  5417. html/index.html: reflect change from CVS to gitlab.
  5418. 2017-11-30 Olivier Paquet <olivier.paquet@gmail.com>
  5419. Merge branch 'test-ci' into 'master'
  5420. Update CI configuration
  5421. See merge request libtiff/libtiff!1
  5422. 2017-11-23 Roger Leigh <rleigh@codelibre.net>
  5423. appveyor: Correct path for git clone and skip artifact archival.
  5424. 2017-11-22 Roger Leigh <rleigh@codelibre.net>
  5425. travis-ci: Remove unused matrix exclusion.
  5426. Add gitlab-ci build support.
  5427. 2017-11-18 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  5428. * configure.ac: libtiff 4.0.9 released.
  5429. * html/v4.0.9.html: Add HTML file to document changes in libtiff
  5430. v4.0.9.
  5431. 2017-11-17 Even Rouault <even.rouault at spatialys.com>
  5432. * libtiff/tif_aux.c, tif_getimage.c, tif_read.c: typo fixes in
  5433. comments.
  5434. 2017-11-02 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  5435. * test/Makefile.am: Add some tests for tiff2bw.
  5436. 2017-11-01 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  5437. * tools/tiff2bw.c (main): Free memory allocated in the tiff2bw
  5438. program. This is in response to the report associated with
  5439. CVE-2017-16232 but does not solve the extremely high memory usage
  5440. with the associated POC file.
  5441. 2017-10-29 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  5442. * tools/tiff2pdf.c (t2p_sample_realize_palette): Fix possible
  5443. arithmetic overflow in bounds checking code and eliminate
  5444. comparison between signed and unsigned type.
  5445. * tools/fax2tiff.c (_FAX_Client_Data): Pass FAX_Client_Data as the
  5446. client data. This client data is not used at all at the moment,
  5447. but it makes the most sense. Issue that the value of
  5448. client_data.fd was passed where a pointer is expected was reported
  5449. via email by Gerald Schade on Sun, 29 Oct 2017.
  5450. 2017-10-23 Even Rouault <even.rouault at spatialys.com>
  5451. * libtiff/tif_getimage.c: avoid floating point division by zero in
  5452. initCIELabConversion()
  5453. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3733
  5454. Credit to OSS Fuzz
  5455. 2017-10-17 Even Rouault <even.rouault at spatialys.com>
  5456. * libtiff/tif_jpeg.c: add compatibility with libjpeg-turbo 1.5.2 that
  5457. honours max_memory_to_use > 0.
  5458. Cf https://github.com/libjpeg-turbo/libjpeg-turbo/issues/162
  5459. 2017-10-10 Even Rouault <even.rouault at spatialys.com>
  5460. * nmake.opt: support a DEBUG=1 option, so as to adjust OPTFLAGS and use
  5461. /MDd runtime in debug mode.
  5462. 2017-10-01 Even Rouault <even.rouault at spatialys.com>
  5463. * tools/tiffset.c: fix setting a single value for the ExtraSamples tag
  5464. (and other tags with variable number of values).
  5465. So 'tiffset -s ExtraSamples 1 X'. This only worked
  5466. when setting 2 or more values, but not just one.
  5467. 2017-09-29 Even Rouault <even.rouault at spatialys.com>
  5468. * libtiff/libtiff.def: add TIFFReadRGBAStripExt and TIFFReadRGBATileExt
  5469. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2735
  5470. 2017-09-09 Even Rouault <even.rouault at spatialys.com>
  5471. * libtiff/tif_dirread.c: add NULL check to avoid likely false positive
  5472. null-pointer dereference warning by CLang Static Analyzer.
  5473. 2017-09-07 Even Rouault <even.rouault at spatialys.com>
  5474. * libtiff/tiffiop.h, tif_aux.c: redirect SeekOK() macro to a _TIFFSeekoK()
  5475. function that checks if the offset is not bigger than INT64_MAX, so as
  5476. to avoid a -1 error return code of TIFFSeekFile() to match a required
  5477. seek to UINT64_MAX/-1.
  5478. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2726
  5479. Adapted from proposal by Nicolas Ruff.
  5480. 2017-08-29 Even Rouault <even.rouault at spatialys.com>
  5481. * libtiff/tif_jpeg.c: accept reading the last strip of a JPEG compressed
  5482. file if the codestream height is larger than the truncated height of the
  5483. strip. Emit a warning in this situation since this is non compliant.
  5484. 2017-08-28 Even Rouault <even.rouault at spatialys.com>
  5485. * test/Makefile.am: add missing reference to images/quad-lzw-compat.tiff
  5486. to fix "make distcheck". Patch by Roger Leigh
  5487. 2017-08-23 Even Rouault <even.rouault at spatialys.com>
  5488. * libtiff/tif_dirwrite.c: replace assertion to tag value not fitting
  5489. on uint32 when selecting the value of SubIFD tag by runtime check
  5490. (in TIFFWriteDirectoryTagSubifd()).
  5491. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2728
  5492. Reported by team OWL337
  5493. 2017-08-23 Even Rouault <even.rouault at spatialys.com>
  5494. * libtiff/tif_dirwrite.c: replace assertion related to not finding the
  5495. SubIFD tag by runtime check (in TIFFWriteDirectorySec())
  5496. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2727
  5497. Reported by team OWL337
  5498. 2017-07-24 Even Rouault <even.rouault at spatialys.com>
  5499. * libtiff/tif_luv.c: further reduce memory requirements for temporary
  5500. buffer when RowsPerStrip >= image_length in LogLuvInitState() and
  5501. LogL16InitState().
  5502. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2700
  5503. Credit to OSS Fuzz
  5504. 2017-07-24 Even Rouault <even.rouault at spatialys.com>
  5505. * libtiff/tif_getimage.c: fix fromskew computation when to-be-skipped
  5506. pixel number is not a multiple of the horizontal subsampling, and
  5507. also in some other cases. Impact putcontig8bitYCbCr44tile,
  5508. putcontig8bitYCbCr42tile, putcontig8bitYCbCr41tile,
  5509. putcontig8bitYCbCr21tile and putcontig8bitYCbCr12tile
  5510. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2637 (discovered
  5511. by Agostino Sarubbo)
  5512. and https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2691 (credit
  5513. to OSS Fuzz)
  5514. 2017-07-24 Even Rouault <even.rouault at spatialys.com>
  5515. * libtiff/tif_getimage.c: gtTileContig() and gtTileSeparate():
  5516. properly break from loops on error when stoponerr is set, instead
  5517. of going on iterating on row based loop.
  5518. 2017-07-18 Even Rouault <even.rouault at spatialys.com>
  5519. * libtiff/tif_luv.c: LogLuvInitState(): avoid excessive memory
  5520. allocation when RowsPerStrip tag is missing.
  5521. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2683
  5522. Credit to OSS-Fuzz
  5523. 2017-07-15 Even Rouault <even.rouault at spatialys.com>
  5524. * libtiff/tif_read.c: add protection against excessive memory
  5525. allocation attempts in TIFFReadDirEntryArray() on short files.
  5526. Effective for mmap'ed case. And non-mmap'ed case, but restricted
  5527. to 64bit builds.
  5528. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2675
  5529. 2017-07-15 Even Rouault <even.rouault at spatialys.com>
  5530. * libtiff/tif_read.c: in TIFFFetchStripThing(), only grow the
  5531. arrays that hold StripOffsets/StripByteCounts, when they are smaller
  5532. than the expected number of striles, up to 1 million striles, and
  5533. error out beyond. Can be tweaked by setting the environment variable
  5534. LIBTIFF_STRILE_ARRAY_MAX_RESIZE_COUNT.
  5535. This partially goes against a change added on 2002-12-17 to accept
  5536. those arrays of wrong sizes, but is needed to avoid denial of services.
  5537. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2350
  5538. Credit to OSS Fuzz
  5539. 2017-07-15 Even Rouault <even.rouault at spatialys.com>
  5540. * libtiff/tif_read.c: TIFFFillStrip() / TIFFFillTile().
  5541. Complementary fix for http://bugzilla.maptools.org/show_bug.cgi?id=2708
  5542. in the isMapped() case, so as to avoid excessive memory allocation
  5543. when we need a temporary buffer but the file is truncated.
  5544. 2017-07-15 Even Rouault <even.rouault at spatialys.com>
  5545. * tools/tiff2pdf.c: prevent heap buffer overflow write in "Raw"
  5546. mode on PlanarConfig=Contig input images.
  5547. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2715
  5548. Reported by team OWL337
  5549. 2017-07-11 Even Rouault <even.rouault at spatialys.com>
  5550. * libtiff/tif_dir.c: avoid potential null pointer dereference in
  5551. _TIFFVGetField() on corrupted TIFFTAG_NUMBEROFINKS tag instance.
  5552. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2713
  5553. 2017-07-11 Even Rouault <even.rouault at spatialys.com>
  5554. * libtiff/tif_lzw.c: fix potential out-of-buffer read on 1-byte LZW
  5555. strips. Crashing issue only on memory mapped files, where the strip
  5556. offset is the last byte of the file, and the file size is a multiple
  5557. of one page size on the CPU architecture (typically 4096). Credit
  5558. to myself :-)
  5559. 2017-07-11 Even Rouault <even.rouault at spatialys.com>
  5560. * test/tiffcp-lzw-compat.sh, test/images/quad-lzw-compat.tiff: new files
  5561. to test old-style LZW decompression
  5562. * test/common.sh, Makefile.am, CMakeList.txt: updated with above
  5563. 2017-07-11 Even Rouault <even.rouault at spatialys.com>
  5564. * refresh autoconf/make stuff with what is on Ubuntu 16.04 (minor changes)
  5565. 2017-07-11 Even Rouault <even.rouault at spatialys.com>
  5566. * libtiff/tif_lzw.c: fix 4.0.8 regression in the decoding of old-style LZW
  5567. compressed files.
  5568. 2017-07-10 Even Rouault <even.rouault at spatialys.com>
  5569. * libtiff/tif_pixarlog.c: avoid excessive memory allocation on decoding
  5570. when RowsPerStrip tag is not defined (and thus td_rowsperstrip == UINT_MAX)
  5571. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2554
  5572. Credit to OSS Fuzz
  5573. 2017-07-04 Even Rouault <even.rouault at spatialys.com>
  5574. * libtiff/tif_read.c, tiffiop.h: add a _TIFFReadEncodedTileAndAllocBuffer()
  5575. and _TIFFReadTileAndAllocBuffer() variants of TIFFReadEncodedTile() and
  5576. TIFFReadTile() that allocates the decoded buffer only after a first
  5577. successful TIFFFillTile(). This avoids excessive memory allocation
  5578. on corrupted files.
  5579. * libtiff/tif_getimage.c: use _TIFFReadTileAndAllocBuffer().
  5580. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2470
  5581. Credit to OSS Fuzz.
  5582. 2017-07-04 Even Rouault <even.rouault at spatialys.com>
  5583. * libtiff/tif_error.c, tif_warning.c: correctly use va_list when both
  5584. an old-style and new-style warning/error handlers are installed.
  5585. Patch by Paavo Helde (sent on the mailing list)
  5586. 2017-07-02 Even Rouault <even.rouault at spatialys.com>
  5587. * libtiff/tif_read.c: TIFFStartTile(): set tif_rawcc to
  5588. tif_rawdataloaded when it is set. Similarly to TIFFStartStrip().
  5589. This issue was revealed by the change of 2017-06-30 in TIFFFileTile(),
  5590. limiting the number of bytes read. But it could probably have been hit
  5591. too in CHUNKY_STRIP_READ_SUPPORT mode previously ?
  5592. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2454
  5593. Credit to OSS Fuzz
  5594. 2017-06-30 Even Rouault <even.rouault at spatialys.com>
  5595. * man: update documentation regarding SubIFD tag and
  5596. TIFFSetSubDirectory() data type.
  5597. Patch by Eric Piel
  5598. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2671
  5599. 2017-06-30 Even Rouault <even.rouault at spatialys.com>
  5600. * libtiff/tif_dirwrite.c: in TIFFWriteDirectoryTagCheckedXXXX()
  5601. functions associated with LONG8/SLONG8 data type, replace assertion that
  5602. the file is BigTIFF, by a non-fatal error.
  5603. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2712
  5604. Reported by team OWL337
  5605. 2017-06-30 Even Rouault <even.rouault at spatialys.com>
  5606. * libtiff/tif_read.c, tiffiop.h: add a _TIFFReadEncodedStripAndAllocBuffer()
  5607. function, variant of TIFFReadEncodedStrip() that allocates the
  5608. decoded buffer only after a first successful TIFFFillStrip(). This avoids
  5609. excessive memory allocation on corrupted files.
  5610. * libtiff/tif_getimage.c: use _TIFFReadEncodedStripAndAllocBuffer().
  5611. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2708 and
  5612. https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2433 .
  5613. Credit to OSS Fuzz
  5614. 2017-06-30 Even Rouault <even.rouault at spatialys.com>
  5615. * libtiff/tif_read.c: TIFFFillTile(): add limitation to the number
  5616. of bytes read in case td_stripbytecount[strip] is bigger than
  5617. reasonable, so as to avoid excessive memory allocation (similarly to
  5618. what was done for TIFFFileStrip() on 2017-05-10)
  5619. 2017-06-29 Even Rouault <even.rouault at spatialys.com>
  5620. * libtiff/tiffiop.h, libtiff/tif_jpeg.c, libtiff/tif_jpeg_12.c,
  5621. libtiff/tif_read.c: make TIFFReadScanline() works in
  5622. CHUNKY_STRIP_READ_SUPPORT mode with JPEG stream with multiple scans.
  5623. Also make configurable through a LIBTIFF_JPEG_MAX_ALLOWED_SCAN_NUMBER
  5624. environment variable the maximum number of scans allowed. Defaults to
  5625. 100.
  5626. 2017-06-27 Even Rouault <even.rouault at spatialys.com>
  5627. * libtiff/tif_dirread.c: in TIFFReadDirEntryFloat(), check that a
  5628. double value can fit in a float before casting. Patch by Nicolas RUFF
  5629. 2017-06-26 Even Rouault <even.rouault at spatialys.com>
  5630. * libtiff/tif_jbig.c: fix memory leak in error code path of JBIGDecode()
  5631. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2706
  5632. Reported by team OWL337
  5633. 2017-06-24 Even Rouault <even.rouault at spatialys.com>
  5634. * libtiff/tif_jpeg.c: error out at decoding time if anticipated libjpeg
  5635. memory allocation is above 100 MB. libjpeg in case of multiple scans,
  5636. which is allowed even in baseline JPEG, if components are spread over several
  5637. scans and not interleavedin a single one, needs to allocate memory (or
  5638. backing store) for the whole strip/tile.
  5639. See http://www.libjpeg-turbo.org/pmwiki/uploads/About/TwoIssueswiththeJPEGStandard.pdf
  5640. This limitation may be overridden by setting the
  5641. LIBTIFF_ALLOW_LARGE_LIBJPEG_MEM_ALLOC environment variable, or recompiling
  5642. libtiff with a custom value of TIFF_LIBJPEG_LARGEST_MEM_ALLOC macro.
  5643. 2017-06-24 Even Rouault <even.rouault at spatialys.com>
  5644. * libtiff/tif_jpeg.c: add anti-denial of service measure to avoid excessive
  5645. CPU consumption on progressive JPEGs with a huge number of scans.
  5646. See http://www.libjpeg-turbo.org/pmwiki/uploads/About/TwoIssueswiththeJPEGStandard.pdf
  5647. Note: only affects libtiff since 2014-12-29 where support of non-baseline JPEG
  5648. was added.
  5649. 2017-06-18 Even Rouault <even.rouault at spatialys.com>
  5650. * libtiff/tiffiop.h: add TIFF_NOSANITIZE_UNSIGNED_INT_OVERFLOW macro to
  5651. disable CLang warnings raised by -fsanitize=undefined,unsigned-integer-overflow
  5652. * libtiff/tif_predict.c: decorate legitimate functions where unsigned int
  5653. overflow occur with TIFF_NOSANITIZE_UNSIGNED_INT_OVERFLOW
  5654. * libtiff/tif_dirread.c: avoid unsigned int overflow in EstimateStripByteCounts()
  5655. and BYTECOUNTLOOKSBAD when file is too short.
  5656. * libtiff/tif_jpeg.c: avoid (harmless) unsigned int overflow on tiled images.
  5657. * libtiff/tif_fax3.c: avoid unsigned int overflow in Fax3Encode2DRow(). Could
  5658. potentially be a bug with huge rows.
  5659. * libtiff/tif_getimage.c: avoid many (harmless) unsigned int overflows.
  5660. 2017-06-12 Even Rouault <even.rouault at spatialys.com>
  5661. * libtiff/tif_dirread.c: TIFFFetchStripThing(): limit the number of items
  5662. read in StripOffsets/StripByteCounts tags to the number of strips to avoid
  5663. excessive memory allocation.
  5664. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2215
  5665. Credit to OSS Fuzz
  5666. 2017-06-12 Even Rouault <even.rouault at spatialys.com>
  5667. * libtiff/tif_dirread.c: fix regression of libtiff 4.0.8 in
  5668. ChopUpSingleUncompressedStrip() regarding update of newly single-strip
  5669. uncompressed files whose bytecount is 0. Before the change of 2016-12-03,
  5670. the condition bytecount==0 used to trigger an early exit/disabling of
  5671. strip chop. Re-introduce that in update mode. Otherwise this cause
  5672. later incorrect setting for the value of StripByCounts/StripOffsets.
  5673. ( https://trac.osgeo.org/gdal/ticket/6924 )
  5674. 2017-06-10 Even Rouault <even.rouault at spatialys.com>
  5675. * .appveyor.yml, .travis.yml, build/travis-ci: apply patches
  5676. 0001-ci-Travis-script-improvements.patch and
  5677. 0002-ci-Invoke-helper-script-via-shell.patch by Roger Leigh
  5678. (sent to mailing list)
  5679. 2017-06-08 Even Rouault <even.rouault at spatialys.com>
  5680. * .travis.yml, build/travis-ci: new files from
  5681. 0001-ci-Add-Travis-support-for-Linux-builds-with-Autoconf.patch by
  5682. Roger Leigh (sent to mailing list on 2017-06-08)
  5683. This patch adds support for the Travis-CI service.
  5684. * .appveyor.yml: new file from
  5685. 0002-ci-Add-AppVeyor-support.patch by Roger Leigh (sent to mailing
  5686. list on 2017-06-08)
  5687. This patch adds a .appveyor.yml file to the top-level. This allows
  5688. one to opt in to having a branch built on Windows with Cygwin,
  5689. MinGW and MSVC automatically when a branch is pushed to GitHub,
  5690. GitLab, BitBucket or any other supported git hosting service.
  5691. * CMakeLists.txt, test/CMakeLists.txt, test/TiffTestCommon.cmake: apply
  5692. patch 0001-cmake-Improve-Cygwin-and-MingGW-test-support.patch from Roger
  5693. Leigh (sent to mailing list on 2017-06-08)
  5694. This patch makes the CMake build system support running the tests
  5695. with MinGW or Cygwin.
  5696. 2017-06-08 Even Rouault <even.rouault at spatialys.com>
  5697. * libtiff/tif_swab.c: if DISABLE_CHECK_TIFFSWABMACROS is defined, do not do
  5698. the #ifdef TIFFSwabXXX checks. Make it easier for GDAL to rename the symbols
  5699. of its internal libtiff copy.
  5700. 2017-06-01 Even Rouault <even.rouault at spatialys.com>
  5701. * libtiff/tif_dirinfo.c, tif_dirread.c: add _TIFFCheckFieldIsValidForCodec(),
  5702. and use it in TIFFReadDirectory() so as to ignore fields whose tag is a
  5703. codec-specified tag but this codec is not enabled. This avoids TIFFGetField()
  5704. to behave differently depending on whether the codec is enabled or not, and
  5705. thus can avoid stack based buffer overflows in a number of TIFF utilities
  5706. such as tiffsplit, tiffcmp, thumbnail, etc.
  5707. Patch derived from 0063-Handle-properly-CODEC-specific-tags.patch
  5708. (http://bugzilla.maptools.org/show_bug.cgi?id=2580) by Raphaël Hertzog.
  5709. Fixes:
  5710. http://bugzilla.maptools.org/show_bug.cgi?id=2580
  5711. http://bugzilla.maptools.org/show_bug.cgi?id=2693
  5712. http://bugzilla.maptools.org/show_bug.cgi?id=2625 (CVE-2016-10095)
  5713. http://bugzilla.maptools.org/show_bug.cgi?id=2564 (CVE-2015-7554)
  5714. http://bugzilla.maptools.org/show_bug.cgi?id=2561 (CVE-2016-5318)
  5715. http://bugzilla.maptools.org/show_bug.cgi?id=2499 (CVE-2014-8128)
  5716. http://bugzilla.maptools.org/show_bug.cgi?id=2441
  5717. http://bugzilla.maptools.org/show_bug.cgi?id=2433
  5718. 2017-05-29 Even Rouault <even.rouault at spatialys.com>
  5719. * libtiff/tif_getimage.c: initYCbCrConversion(): stricter validation for
  5720. refBlackWhite coefficients values. To avoid invalid float->int32 conversion
  5721. (when refBlackWhite[0] == 2147483648.f)
  5722. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=1907
  5723. Credit to OSS Fuzz
  5724. 2017-05-29 Even Rouault <even.rouault at spatialys.com>
  5725. * libtiff/tif_color.c: TIFFYCbCrToRGBInit(): stricter clamping to avoid
  5726. int32 overflow in TIFFYCbCrtoRGB().
  5727. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=1844
  5728. Credit to OSS Fuzz
  5729. 2017-05-21 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  5730. * configure.ac: libtiff 4.0.8 released.
  5731. * html/v4.0.8.html: Add description of changes targeting the 4.0.8
  5732. release.
  5733. 2017-05-20 Even Rouault <even.rouault at spatialys.com>
  5734. * libtiff/tif_getimage.c: initYCbCrConversion(): stricter validation for
  5735. refBlackWhite coefficients values. To avoid invalid float->int32 conversion.
  5736. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=1718
  5737. Credit to OSS Fuzz
  5738. 2017-05-18 Even Rouault <even.rouault at spatialys.com>
  5739. * libtiff/tif_getimage.c: initYCbCrConversion(): check luma[1] is not zero
  5740. to avoid division by zero.
  5741. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=1665
  5742. Credit to OSS Fuzz
  5743. 2017-05-17 Even Rouault <even.rouault at spatialys.com>
  5744. * libtiff/tif_read.c: _TIFFVSetField(): fix outside range cast of double to
  5745. float.
  5746. Credit to Google Autofuzz project
  5747. 2017-05-17 Even Rouault <even.rouault at spatialys.com>
  5748. * libtiff/tif_getimage.c: initYCbCrConversion(): add basic validation of
  5749. luma and refBlackWhite coefficients (just check they are not NaN for now),
  5750. to avoid potential float to int overflows.
  5751. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=1663
  5752. Credit to OSS Fuzz
  5753. 2017-05-17 Even Rouault <even.rouault at spatialys.com>
  5754. * libtiff/tif_pixarlog.c: PixarLogDecode(): resync tif_rawcp with
  5755. next_in and tif_rawcc with avail_in at beginning and end of function,
  5756. similarly to what is done in LZWDecode(). Likely needed so that it
  5757. works properly with latest chnges in tif_read.c in CHUNKY_STRIP_READ_SUPPORT
  5758. mode. But untested...
  5759. 2017-05-17 Even Rouault <even.rouault at spatialys.com>
  5760. * libtiff/tif_lzw.c: update dec_bitsleft at beginning of LZWDecode(),
  5761. and update tif_rawcc at end of LZWDecode(). This is needed to properly
  5762. work with the latest chnges in tif_read.c in CHUNKY_STRIP_READ_SUPPORT
  5763. mode.
  5764. 2017-05-14 Even Rouault <even.rouault at spatialys.com>
  5765. * libtiff/tif_luv.c: LogL16InitState(): avoid excessive memory
  5766. allocation when RowsPerStrip tag is missing.
  5767. Credit to OSS-Fuzz (locally run, on GDAL)
  5768. 2017-05-14 Even Rouault <even.rouault at spatialys.com>
  5769. * libtiff/tif_packbits.c: fix out-of-buffer read in PackBitsDecode()
  5770. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=1563
  5771. Credit to OSS-Fuzz
  5772. 2017-05-13 Even Rouault <even.rouault at spatialys.com>
  5773. * libtiff/tif_pixarlog.c, tif_luv.c: avoid potential int32
  5774. overflows in multiply_ms() and add_ms().
  5775. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=1558
  5776. Credit to OSS-Fuzz
  5777. 2017-05-13 Even Rouault <even.rouault at spatialys.com>
  5778. * libtiff/tif_color.c: avoid potential int32 overflow in
  5779. TIFFYCbCrToRGBInit()
  5780. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=1533
  5781. Credit to OSS-Fuzz
  5782. 2017-05-13 Even Rouault <even.rouault at spatialys.com>
  5783. * libtiff/tif_read.c: update tif_rawcc in CHUNKY_STRIP_READ_SUPPORT
  5784. mode with tif_rawdataloaded when calling TIFFStartStrip() or
  5785. TIFFFillStripPartial(). This avoids reading beyond tif_rawdata
  5786. when bytecount > tif_rawdatasize.
  5787. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=1545.
  5788. Credit to OSS-Fuzz
  5789. 2017-05-12 Even Rouault <even.rouault at spatialys.com>
  5790. * libtiff/tif_read.c: TIFFFillStripPartial():
  5791. avoid excessive memory allocation in case of shorten files.
  5792. Only effective on 64 bit builds.
  5793. Credit to OSS-Fuzz (locally run, on GDAL)
  5794. 2017-05-12 Even Rouault <even.rouault at spatialys.com>
  5795. * libtiff/tif_read.c: TIFFFillStripPartial() / TIFFSeek(),
  5796. avoid potential integer overflows with read_ahead in
  5797. CHUNKY_STRIP_READ_SUPPORT mode. Should
  5798. especially occur on 32 bit platforms.
  5799. 2017-05-10 Even Rouault <even.rouault at spatialys.com>
  5800. * libtiff/tif_read.c: TIFFFillStrip() and TIFFFillTile():
  5801. avoid excessive memory allocation in case of shorten files.
  5802. Only effective on 64 bit builds and non-mapped cases.
  5803. Credit to OSS-Fuzz (locally run, on GDAL)
  5804. 2017-05-10 Even Rouault <even.rouault at spatialys.com>
  5805. * libtiff/tif_zip.c, tif_pixarlog.c, tif_predict.c: fix memory
  5806. leak when the underlying codec (ZIP, PixarLog) succeeds its
  5807. setupdecode() method, but PredictorSetup fails.
  5808. Credit to OSS-Fuzz (locally run, on GDAL)
  5809. 2017-05-10 Even Rouault <even.rouault at spatialys.com>
  5810. * libtiff/tif_read.c: TIFFFillStrip(): add limitation to the number
  5811. of bytes read in case td_stripbytecount[strip] is bigger than
  5812. reasonable, so as to avoid excessive memory allocation.
  5813. 2017-04-28 Even Rouault <even.rouault at spatialys.com>
  5814. * tools/tiff2bw.c: close TIFF handle in error code path.
  5815. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2677
  5816. 2017-04-27 Even Rouault <even.rouault at spatialys.com>
  5817. * litiff/tif_fax3.c: avoid crash in Fax3Close() on empty file.
  5818. Patch by Alan Coopersmith + complement by myself.
  5819. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2673
  5820. * tools/fax2tiff.c: emit appropriate message if the input file is
  5821. empty. Patch by Alan Coopersmith.
  5822. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2672
  5823. 2017-04-27 Even Rouault <even.rouault at spatialys.com>
  5824. * libtiff/tif_ojpeg.c: fix potential memory leak in
  5825. OJPEGReadHeaderInfoSecTablesQTable, OJPEGReadHeaderInfoSecTablesDcTable
  5826. and OJPEGReadHeaderInfoSecTablesAcTable
  5827. Patch by Nicolás Peña.
  5828. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2670
  5829. 2017-04-27 Even Rouault <even.rouault at spatialys.com>
  5830. * libtiff/tif_dirread.c: fix memory leak in non DEFER_STRILE_LOAD
  5831. mode (ie default) when there is both a StripOffsets and
  5832. TileOffsets tag, or a StripByteCounts and TileByteCounts
  5833. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2689
  5834. * tools/tiff2ps.c: call TIFFClose() in error code paths.
  5835. 2017-02-25 Even Rouault <even.rouault at spatialys.com>
  5836. * libtiff/tif_fax3.c, tif_predict.c, tif_getimage.c: fix GCC 7
  5837. -Wimplicit-fallthrough warnings.
  5838. 2017-02-18 Even Rouault <even.rouault at spatialys.com>
  5839. * libtiff/tif_pixarlog.c: fix memory leak in error code path of
  5840. PixarLogSetupDecode(). Patch by Nicolás Peña.
  5841. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2665
  5842. 2017-02-18 Even Rouault <even.rouault at spatialys.com>
  5843. * libtiff/tif_lzw.c: in LZWPostEncode(), increase, if necessary, the
  5844. code bit-width after flushing the remaining code and before emitting
  5845. the EOI code.
  5846. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=1982
  5847. 2017-01-31 Even Rouault <even.rouault at spatialys.com>
  5848. * libtiff/tif_jpeg.c: only run JPEGFixupTagsSubsampling() if the
  5849. YCbCrSubsampling tag is not explicitly present. This helps a bit to reduce
  5850. the I/O amount when the tag is present (especially on cloud hosted files).
  5851. 2017-01-14 Even Rouault <even.rouault at spatialys.com>
  5852. * tools/raw2tiff.c: avoid integer division by zero.
  5853. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2631
  5854. 2017-01-12 Even Rouault <even.rouault at spatialys.com>
  5855. * libtiff/tif_ojpeg.c: fix leak in OJPEGReadHeaderInfoSecTablesQTable,
  5856. OJPEGReadHeaderInfoSecTablesDcTable and OJPEGReadHeaderInfoSecTablesAcTable
  5857. when read fails.
  5858. Patch by Nicolás Peña.
  5859. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2659
  5860. 2017-01-11 Even Rouault <even.rouault at spatialys.com>
  5861. * libtiff/tif_luv.c, tif_lzw.c, tif_packbits.c: return 0 in Encode
  5862. functions instead of -1 when TIFFFlushData1() fails.
  5863. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2130
  5864. 2017-01-11 Even Rouault <even.rouault at spatialys.com>
  5865. * tools/tiffcp.c: error out cleanly in cpContig2SeparateByRow and
  5866. cpSeparate2ContigByRow if BitsPerSample != 8 to avoid heap based overflow.
  5867. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2656 and
  5868. http://bugzilla.maptools.org/show_bug.cgi?id=2657
  5869. 2017-01-11 Even Rouault <even.rouault at spatialys.com>
  5870. * libtiff/tiffio.h, tif_unix.c, tif_win32.c, tif_vms.c: add _TIFFcalloc()
  5871. * libtiff/tif_read.c: TIFFReadBufferSetup(): use _TIFFcalloc() to zero
  5872. initialize tif_rawdata.
  5873. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2651
  5874. 2017-01-11 Even Rouault <even.rouault at spatialys.com>
  5875. * libtiff/tif_getimage.c: add explicit uint32 cast in putagreytile to
  5876. avoid UndefinedBehaviorSanitizer warning.
  5877. Patch by Nicolás Peña.
  5878. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2658
  5879. 2017-01-11 Even Rouault <even.rouault at spatialys.com>
  5880. * libtiff/tif_read.c: avoid potential undefined behaviour on signed integer
  5881. addition in TIFFReadRawStrip1() in isMapped() case.
  5882. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2650
  5883. 2017-01-11 Even Rouault <even.rouault at spatialys.com>
  5884. * libtiff/tif_jpeg.c: validate BitsPerSample in JPEGSetupEncode() to avoid
  5885. undefined behaviour caused by invalid shift exponent.
  5886. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2648
  5887. 2017-01-11 Even Rouault <even.rouault at spatialys.com>
  5888. * libtiff/tif_dir.c, tif_dirread.c, tif_dirwrite.c: implement various clampings
  5889. of double to other data types to avoid undefined behaviour if the output range
  5890. isn't big enough to hold the input value.
  5891. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2643
  5892. http://bugzilla.maptools.org/show_bug.cgi?id=2642
  5893. http://bugzilla.maptools.org/show_bug.cgi?id=2646
  5894. http://bugzilla.maptools.org/show_bug.cgi?id=2647
  5895. 2017-01-11 Even Rouault <even.rouault at spatialys.com>
  5896. * libtiff/tif_dirread.c: avoid division by floating point 0 in
  5897. TIFFReadDirEntryCheckedRational() and TIFFReadDirEntryCheckedSrational(),
  5898. and return 0 in that case (instead of infinity as before presumably)
  5899. Apparently some sanitizers do not like those divisions by zero.
  5900. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2644
  5901. 2017-01-11 Even Rouault <even.rouault at spatialys.com>
  5902. * libtiff/tif_dirwrite.c: in TIFFWriteDirectoryTagCheckedRational, replace
  5903. assertion by runtime check to error out if passed value is strictly
  5904. negative.
  5905. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2535
  5906. * tools/tiffcrop.c: remove extraneous TIFFClose() in error code path, that
  5907. caused double free.
  5908. Related to http://bugzilla.maptools.org/show_bug.cgi?id=2535
  5909. 2017-01-11 Even Rouault <even.rouault at spatialys.com>
  5910. * libtiff/tif_jpeg.c: avoid integer division by zero in
  5911. JPEGSetupEncode() when horizontal or vertical sampling is set to 0.
  5912. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2653
  5913. 2017-01-03 Even Rouault <even.rouault at spatialys.com>
  5914. * libtiff/tif_jpeg.c: increase libjpeg max memory usable to
  5915. 10 MB instead of libjpeg 1MB default. This helps when creating files
  5916. with "big" tile, without using libjpeg temporary files.
  5917. Related to https://trac.osgeo.org/gdal/ticket/6757
  5918. 2016-12-20 Even Rouault <even.rouault at spatialys.com>
  5919. * tools/tiff2pdf.c: avoid potential heap-based overflow in
  5920. t2p_readwrite_pdf_image_tile().
  5921. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2640
  5922. 2016-12-20 Even Rouault <even.rouault at spatialys.com>
  5923. * tools/tiff2pdf.c: avoid potential invalid memory read in
  5924. t2p_writeproc.
  5925. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2639
  5926. 2016-12-20 Even Rouault <even.rouault at spatialys.com>
  5927. * tools/tiff2pdf.c: fix wrong usage of memcpy() that can trigger
  5928. unspecified behaviour.
  5929. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2638
  5930. 2016-12-18 Even Rouault <even.rouault at spatialys.com>
  5931. * libtiff/tif_getimage.c: fix potential memory leaks in error code
  5932. path of TIFFRGBAImageBegin().
  5933. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2627
  5934. 2016-12-18 Even Rouault <even.rouault at spatialys.com>
  5935. * tools/tiff2pdf.c: prevent heap-based buffer overflow in -j mode
  5936. on a paletted image. Note: this fix errors out before the overflow
  5937. happens. There could probably be a better fix.
  5938. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2635
  5939. 2016-12-17 Even Rouault <even.rouault at spatialys.com>
  5940. * libtiff/tiffio.h, libtiff/tif_getimage.c: add TIFFReadRGBAStripExt()
  5941. and TIFFReadRGBATileExt() variants of the functions without ext, with
  5942. an extra argument to control the stop_on_error behaviour.
  5943. 2016-12-17 Even Rouault <even.rouault at spatialys.com>
  5944. * tools/tiff2ps.c: fix 2 heap-based buffer overflows (in PSDataBW
  5945. and PSDataColorContig). Reported by Agostino Sarubbo.
  5946. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2633 and
  5947. http://bugzilla.maptools.org/show_bug.cgi?id=2634.
  5948. 2016-12-13 Even Rouault <even.rouault at spatialys.com>
  5949. * libtiff/tif_fax3.h: revert change done on 2016-01-09 that made
  5950. Param member of TIFFFaxTabEnt structure a uint16 to reduce size of
  5951. the binary. It happens that the Hylafax software uses the tables that
  5952. follow this typedef (TIFFFaxMainTable, TIFFFaxWhiteTable,
  5953. TIFFFaxBlackTable), although they are not in a public libtiff header.
  5954. Raised by Lee Howard.
  5955. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2636
  5956. 2016-12-04 Even Rouault <even.rouault at spatialys.com>
  5957. * html/man/Makefile.am: remove thumbnail.1.html and rgb2ycbcr.1.html
  5958. from installed pages since the corresponding utilities are no longer
  5959. installed. Reported by Havard Eidnes
  5960. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2606
  5961. 2016-12-03 Even Rouault <even.rouault at spatialys.com>
  5962. * libtiff/tif_write.c: fix misleading indentation as warned by GCC.
  5963. 2016-12-03 Even Rouault <even.rouault at spatialys.com>
  5964. * tools/tiffcp.c: replace assert( (bps % 8) == 0 ) by a non assert check.
  5965. Reported by Agostino Sarubbo.
  5966. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2605
  5967. 2016-12-03 Even Rouault <even.rouault at spatialys.com>
  5968. * tools/tiffcp.c: fix uint32 underflow/overflow that can cause heap-based
  5969. buffer overflow.
  5970. Reported by Agostino Sarubbo.
  5971. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2610
  5972. 2016-12-03 Even Rouault <even.rouault at spatialys.com>
  5973. * tools/tiffcp.c: avoid potential division by zero is BitsPerSamples tag is
  5974. missing.
  5975. Reported by Agostino Sarubbo.
  5976. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2607
  5977. 2016-12-03 Even Rouault <even.rouault at spatialys.com>
  5978. * man/Makefile.am: remove thumbnail.1 and rgb2ycbcr.1 from installed man
  5979. pages since the corresponding utilities are no longer installed.
  5980. Reported by Havard Eidnes
  5981. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2606
  5982. 2016-12-03 Even Rouault <even.rouault at spatialys.com>
  5983. * tools/tif_dir.c: when TIFFGetField(, TIFFTAG_NUMBEROFINKS, ) is called,
  5984. limit the return number of inks to SamplesPerPixel, so that code that parses
  5985. ink names doesn't go past the end of the buffer.
  5986. Reported by Agostino Sarubbo.
  5987. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2599
  5988. 2016-12-03 Even Rouault <even.rouault at spatialys.com>
  5989. * tools/tiffcp.c: avoid potential division by zero is BitsPerSamples tag is
  5990. missing.
  5991. Reported by Agostino Sarubbo.
  5992. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2597
  5993. 2016-12-03 Even Rouault <even.rouault at spatialys.com>
  5994. * tools/tiffinfo.c: fix null pointer dereference in -r mode when the image has
  5995. no StripByteCount tag.
  5996. Reported by Agostino Sarubbo.
  5997. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2594
  5998. 2016-12-03 Even Rouault <even.rouault at spatialys.com>
  5999. * tools/tiffcrop.c: fix integer division by zero when BitsPerSample is missing.
  6000. Reported by Agostino Sarubbo.
  6001. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2619
  6002. 2016-12-03 Even Rouault <even.rouault at spatialys.com>
  6003. * tools/tiffcrop.c: add 3 extra bytes at end of strip buffer in
  6004. readSeparateStripsIntoBuffer() to avoid read outside of heap allocated buffer.
  6005. Reported by Agostino Sarubbo.
  6006. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2621
  6007. 2016-12-03 Even Rouault <even.rouault at spatialys.com>
  6008. * tools/tiffcrop.c: fix readContigStripsIntoBuffer() in -i (ignore) mode so
  6009. that the output buffer is correctly incremented to avoid write outside bounds.
  6010. Reported by Agostino Sarubbo.
  6011. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2620
  6012. 2016-12-03 Even Rouault <even.rouault at spatialys.com>
  6013. * libtiff/tif_ojpeg.c: make OJPEGDecode() early exit in case of failure in
  6014. OJPEGPreDecode(). This will avoid a divide by zero, and potential other issues.
  6015. Reported by Agostino Sarubbo.
  6016. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2611
  6017. 2016-12-03 Even Rouault <even.rouault at spatialys.com>
  6018. * libtiff/tif_dirread.c: modify ChopUpSingleUncompressedStrip() to
  6019. instantiate compute nstrips as TIFFhowmany_32(td->td_imagelength, rowsperstrip),
  6020. instead of a logic based on the total size of data. Which is faulty is
  6021. the total size of data is not sufficient to fill the whole image, and thus
  6022. results in reading outside of the StripByCounts/StripOffsets arrays when
  6023. using TIFFReadScanline().
  6024. Reported by Agostino Sarubbo.
  6025. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2608.
  6026. * libtiff/tif_strip.c: revert the change in TIFFNumberOfStrips() done
  6027. for http://bugzilla.maptools.org/show_bug.cgi?id=2587 / CVE-2016-9273 since
  6028. the above change is a better fix that makes it unnecessary.
  6029. 2016-12-03 Even Rouault <even.rouault at spatialys.com>
  6030. * libtiff/tif_pixarlog.c, libtiff/tif_luv.c: fix heap-based buffer
  6031. overflow on generation of PixarLog / LUV compressed files, with
  6032. ColorMap, TransferFunction attached and nasty plays with bitspersample.
  6033. The fix for LUV has not been tested, but suffers from the same kind
  6034. of issue of PixarLog.
  6035. Reported by Agostino Sarubbo.
  6036. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2604
  6037. 2016-12-02 Even Rouault <even.rouault at spatialys.com>
  6038. * tools/tiffcp.c: avoid uint32 underflow in cpDecodedStrips that
  6039. can cause various issues, such as buffer overflows in the library.
  6040. Reported by Agostino Sarubbo.
  6041. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2598
  6042. 2016-12-02 Even Rouault <even.rouault at spatialys.com>
  6043. * libtiff/tif_read.c, libtiff/tiffiop.h: fix uint32 overflow in
  6044. TIFFReadEncodedStrip() that caused an integer division by zero.
  6045. Reported by Agostino Sarubbo.
  6046. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2596
  6047. 2016-11-20 Even Rouault <even.rouault at spatialys.com>
  6048. * libtiff/tif_getimage.c, libtiff/tif_open.c: add parenthesis to
  6049. fix cppcheck clarifyCalculation warnings
  6050. * libtiff/tif_predict.c, libtiff/tif_print.c: fix printf unsigned
  6051. vs signed formatting (cppcheck invalidPrintfArgType_uint warnings)
  6052. 2016-11-20 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  6053. * tools/fax2tiff.c (main): Applied patch by Jörg Ahrens to fix
  6054. passing client data for Win32 builds using tif_win32.c
  6055. (USE_WIN32_FILEIO defined) for file I/O. Patch was provided via
  6056. email on November 20, 2016.
  6057. 2016-11-19 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  6058. * libtiff 4.0.7 released.
  6059. * configure.ac: Update for 4.0.7 release.
  6060. * tools/tiffdump.c (ReadDirectory): Remove uint32 cast to
  6061. _TIFFmalloc() argument which resulted in Coverity report. Added
  6062. more mutiplication overflow checks.
  6063. 2016-11-18 Even Rouault <even.rouault at spatialys.com>
  6064. * tools/tiffcrop.c: Fix memory leak in (recent) error code path.
  6065. Fixes Coverity 1394415.
  6066. 2016-11-17 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  6067. * libtiff/tif_getimage.c: Fix some benign warnings which appear in
  6068. 64-bit compilation under Microsoft Visual Studio of the form
  6069. "Arithmetic overflow: 32-bit value is shifted, then cast to 64-bit
  6070. value. Results might not be an expected value.". Problem was
  6071. reported on November 16, 2016 on the tiff mailing list.
  6072. 2016-11-16 Even Rouault <even.rouault at spatialys.com>
  6073. * libtiff/tif_dirread.c: in TIFFFetchNormalTag(), do not dereference
  6074. NULL pointer when values of tags with TIFF_SETGET_C16_ASCII / TIFF_SETGET_C32_ASCII
  6075. access are 0-byte arrays.
  6076. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2593 (regression introduced
  6077. by previous fix done on 2016-11-11 for CVE-2016-9297).
  6078. Reported by Henri Salo. Assigned as CVE-2016-9448
  6079. 2016-11-12 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  6080. * tools/tiffinfo.c (TIFFReadContigTileData): Fix signed/unsigned
  6081. comparison warning.
  6082. (TIFFReadSeparateTileData): Fix signed/unsigned comparison
  6083. warning.
  6084. * tools/tiffcrop.c (readContigTilesIntoBuffer): Fix
  6085. signed/unsigned comparison warning.
  6086. * html/v4.0.7.html: Add a file to document the pending 4.0.7
  6087. release.
  6088. 2016-11-11 Even Rouault <even.rouault at spatialys.com>
  6089. * tools/tiff2pdf.c: avoid undefined behaviour related to overlapping
  6090. of source and destination buffer in memcpy() call in
  6091. t2p_sample_rgbaa_to_rgb()
  6092. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2577
  6093. 2016-11-11 Even Rouault <even.rouault at spatialys.com>
  6094. * tools/tiff2pdf.c: fix potential integer overflows on 32 bit builds
  6095. in t2p_read_tiff_size()
  6096. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2576
  6097. 2016-11-11 Even Rouault <even.rouault at spatialys.com>
  6098. * libtiff/tif_aux.c: fix crash in TIFFVGetFieldDefaulted()
  6099. when requesting Predictor tag and that the zip/lzw codec is not
  6100. configured.
  6101. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2591
  6102. 2016-11-11 Even Rouault <even.rouault at spatialys.com>
  6103. * libtiff/tif_dirread.c: in TIFFFetchNormalTag(), make sure that
  6104. values of tags with TIFF_SETGET_C16_ASCII / TIFF_SETGET_C32_ASCII
  6105. access are null terminated, to avoid potential read outside buffer
  6106. in _TIFFPrintField().
  6107. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2590 (CVE-2016-9297)
  6108. 2016-11-11 Even Rouault <even.rouault at spatialys.com>
  6109. * libtiff/tif_dirread.c: reject images with OJPEG compression that
  6110. have no TileOffsets/StripOffsets tag, when OJPEG compression is
  6111. disabled. Prevent null pointer dereference in TIFFReadRawStrip1()
  6112. and other functions that expect td_stripbytecount to be non NULL.
  6113. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2585
  6114. 2016-11-11 Even Rouault <even.rouault at spatialys.com>
  6115. * tools/tiffcrop.c: fix multiple uint32 overflows in
  6116. writeBufferToSeparateStrips(), writeBufferToContigTiles() and
  6117. writeBufferToSeparateTiles() that could cause heap buffer overflows.
  6118. Reported by Henri Salo from Nixu Corporation.
  6119. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2592 (CVE-2016-9532)
  6120. 2016-11-10 Even Rouault <even.rouault at spatialys.com>
  6121. * libtiff/tif_strip.c: make TIFFNumberOfStrips() return the td->td_nstrips
  6122. value when it is non-zero, instead of recomputing it. This is needed in
  6123. TIFF_STRIPCHOP mode where td_nstrips is modified. Fixes a read outsize of
  6124. array in tiffsplit (or other utilities using TIFFNumberOfStrips()).
  6125. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2587 (CVE-2016-9273)
  6126. 2016-11-04 Even Rouault <even.rouault at spatialys.com>
  6127. * libtiff/tif_predic.c: fix memory leaks in error code paths added in
  6128. previous commit (fix for MSVR 35105)
  6129. 2016-10-31 Even Rouault <even.rouault at spatialys.com>
  6130. * libtiff/tif_predict.h, libtiff/tif_predict.c:
  6131. Replace assertions by runtime checks to avoid assertions in debug mode,
  6132. or buffer overflows in release mode. Can happen when dealing with
  6133. unusual tile size like YCbCr with subsampling. Reported as MSVR 35105
  6134. by Axel Souchet & Vishal Chauhan from the MSRC Vulnerabilities & Mitigations
  6135. team.
  6136. 2016-10-26 Even Rouault <even.rouault at spatialys.com>
  6137. * tools/fax2tiff.c: fix segfault when specifying -r without
  6138. argument. Patch by Yuriy M. Kaminskiy.
  6139. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2572
  6140. 2016-10-25 Even Rouault <even.rouault at spatialys.com>
  6141. * libtiff/tif_dir.c: discard values of SMinSampleValue and
  6142. SMaxSampleValue when they have been read and the value of
  6143. SamplesPerPixel is changed afterwards (like when reading a
  6144. OJPEG compressed image with a missing SamplesPerPixel tag,
  6145. and whose photometric is RGB or YCbCr, forcing SamplesPerPixel
  6146. being 3). Otherwise when rewriting the directory (for example
  6147. with tiffset, we will expect 3 values whereas the array had been
  6148. allocated with just one), thus causing a out of bound read access.
  6149. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2500
  6150. (CVE-2014-8127, duplicate: CVE-2016-3658)
  6151. * libtiff/tif_dirwrite.c: avoid null pointer dereference on td_stripoffset
  6152. when writing directory, if FIELD_STRIPOFFSETS was artificially set
  6153. for a hack case in OJPEG case.
  6154. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2500
  6155. (CVE-2014-8127, duplicate: CVE-2016-3658)
  6156. 2016-10-25 Even Rouault <even.rouault at spatialys.com>
  6157. * tools/tiffinfo.c: fix out-of-bound read on some tiled images.
  6158. (http://bugzilla.maptools.org/show_bug.cgi?id=2517)
  6159. * libtiff/tif_compress.c: make TIFFNoDecode() return 0 to indicate an
  6160. error and make upper level read routines treat it accordingly.
  6161. (linked to the test case of http://bugzilla.maptools.org/show_bug.cgi?id=2517)
  6162. 2016-10-14 Even Rouault <even.rouault at spatialys.com>
  6163. * tools/tiffcrop.c: fix out-of-bound read of up to 3 bytes in
  6164. readContigTilesIntoBuffer(). Reported as MSVR 35092 by Axel Souchet
  6165. & Vishal Chauhan from the MSRC Vulnerabilities & Mitigations team.
  6166. 2016-10-09 Even Rouault <even.rouault at spatialys.com>
  6167. * tools/tiff2pdf.c: fix write buffer overflow of 2 bytes on JPEG
  6168. compressed images. Reported by Tyler Bohan of Cisco Talos as
  6169. TALOS-CAN-0187 / CVE-2016-5652.
  6170. Also prevents writing 2 extra uninitialized bytes to the file stream.
  6171. 2016-10-08 Even Rouault <even.rouault at spatialys.com>
  6172. * tools/tiffcp.c: fix out-of-bounds write on tiled images with odd
  6173. tile width vs image width. Reported as MSVR 35103
  6174. by Axel Souchet and Vishal Chauhan from the MSRC Vulnerabilities &
  6175. Mitigations team.
  6176. 2016-10-08 Even Rouault <even.rouault at spatialys.com>
  6177. * tools/tiff2pdf.c: fix read -largely- outsize of buffer in
  6178. t2p_readwrite_pdf_image_tile(), causing crash, when reading a
  6179. JPEG compressed image with TIFFTAG_JPEGTABLES length being one.
  6180. Reported as MSVR 35101 by Axel Souchet and Vishal Chauhan from
  6181. the MSRC Vulnerabilities & Mitigations team. CVE-2016-9453
  6182. 2016-10-08 Even Rouault <even.rouault at spatialys.com>
  6183. * tools/tiffcp.c: fix read of undefined variable in case of missing
  6184. required tags. Found on test case of MSVR 35100.
  6185. * tools/tiffcrop.c: fix read of undefined buffer in
  6186. readContigStripsIntoBuffer() due to uint16 overflow. Probably not a
  6187. security issue but I can be wrong. Reported as MSVR 35100 by Axel
  6188. Souchet from the MSRC Vulnerabilities & Mitigations team.
  6189. 2016-09-25 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  6190. * html: Change as many remotesensing.org broken links to a working
  6191. URL as possible.
  6192. 2016-09-24 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  6193. * libtiff/tif_getimage.c (TIFFRGBAImageOK): Reject attempts to
  6194. read floating point images.
  6195. * libtiff/tif_predict.c (PredictorSetup): Enforce bits-per-sample
  6196. requirements of floating point predictor (3). Fixes CVE-2016-3622
  6197. "Divide By Zero in the tiff2rgba tool."
  6198. 2016-09-23 Even Rouault <even.rouault at spatialys.com>
  6199. * tools/tiffcrop.c: fix various out-of-bounds write vulnerabilities
  6200. in heap or stack allocated buffers. Reported as MSVR 35093,
  6201. MSVR 35096 and MSVR 35097. Discovered by Axel Souchet and Vishal
  6202. Chauhan from the MSRC Vulnerabilities & Mitigations team.
  6203. * tools/tiff2pdf.c: fix out-of-bounds write vulnerabilities in
  6204. heap allocate buffer in t2p_process_jpeg_strip(). Reported as MSVR
  6205. 35098. Discovered by Axel Souchet and Vishal Chauhan from the MSRC
  6206. Vulnerabilities & Mitigations team.
  6207. * libtiff/tif_pixarlog.c: fix out-of-bounds write vulnerabilities
  6208. in heap allocated buffers. Reported as MSVR 35094. Discovered by
  6209. Axel Souchet and Vishal Chauhan from the MSRC Vulnerabilities &
  6210. Mitigations team.
  6211. * libtiff/tif_write.c: fix issue in error code path of TIFFFlushData1()
  6212. that didn't reset the tif_rawcc and tif_rawcp members. I'm not
  6213. completely sure if that could happen in practice outside of the odd
  6214. behaviour of t2p_seekproc() of tiff2pdf). The report points that a
  6215. better fix could be to check the return value of TIFFFlushData1() in
  6216. places where it isn't done currently, but it seems this patch is enough.
  6217. Reported as MSVR 35095. Discovered by Axel Souchet & Vishal Chauhan &
  6218. Suha Can from the MSRC Vulnerabilities & Mitigations team.
  6219. 2016-09-20 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  6220. * html/man/index.html: Comment out links to documentation for
  6221. abandoned utilities.
  6222. 2016-09-17 Even Rouault <even.rouault at spatialys.com>
  6223. * libtiff/tif_lzma.c: typo fix in comment
  6224. 2016-09-04 Even Rouault <even.rouault at spatialys.com>
  6225. * libtiff/*.c: fix warnings raised by clang 3.9 -Wcomma
  6226. 2016-09-03 Even Rouault <even.rouault at spatialys.com>
  6227. * libtiff/tif_dirwrite.c, libtiff/tif_color.c: fix warnings raised
  6228. by GCC 5 / clang -Wfloat-conversion
  6229. 2016-08-16 Even Rouault <even.rouault at spatialys.com>
  6230. * tools/tiffcrop.c: fix C99'ism.
  6231. 2016-08-15 Even Rouault <even.rouault at spatialys.com>
  6232. * tools/tiff2bw.c: fix weight computation that could result of color
  6233. value overflow (no security implication). Fix bugzilla #2550.
  6234. Patch by Frank Freudenberg.
  6235. 2016-08-15 Even Rouault <even.rouault at spatialys.com>
  6236. * tools/rgb2ycbcr.c: validate values of -v and -h parameters to
  6237. avoid potential divide by zero. Fixes CVE-2016-3623 (bugzilla #2569)
  6238. 2016-08-15 Even Rouault <even.rouault at spatialys.com>
  6239. * tools/tiffcrop.c: Fix out-of-bounds write in loadImage().
  6240. From patch libtiff-CVE-2016-3991.patch from
  6241. libtiff-4.0.3-25.el7_2.src.rpm by Nikola Forro (bugzilla #2543)
  6242. 2016-08-15 Even Rouault <even.rouault at spatialys.com>
  6243. * libtiff/tif_pixarlog.c: Fix write buffer overflow in PixarLogEncode
  6244. if more input samples are provided than expected by PixarLogSetupEncode.
  6245. Idea based on libtiff-CVE-2016-3990.patch from
  6246. libtiff-4.0.3-25.el7_2.src.rpm by Nikola Forro, but with different and
  6247. simpler check. (bugzilla #2544)
  6248. 2016-08-15 Even Rouault <even.rouault at spatialys.com>
  6249. * tools/tiff2rgba.c: Fix integer overflow in size of allocated
  6250. buffer, when -b mode is enabled, that could result in out-of-bounds
  6251. write. Based initially on patch tiff-CVE-2016-3945.patch from
  6252. libtiff-4.0.3-25.el7_2.src.rpm by Nikola Forro, with correction for
  6253. invalid tests that rejected valid files. (bugzilla #2545)
  6254. 2016-07-11 Even Rouault <even.rouault at spatialys.com>
  6255. * tools/tiffcrop.c: Avoid access outside of stack allocated array
  6256. on a tiled separate TIFF with more than 8 samples per pixel.
  6257. Reported by Kaixiang Zhang of the Cloud Security Team, Qihoo 360
  6258. (CVE-2016-5321 / CVE-2016-5323 , bugzilla #2558 / #2559)
  6259. 2016-07-10 Even Rouault <even.rouault at spatialys.com>
  6260. * libtiff/tif_read.c: Fix out-of-bounds read on
  6261. memory-mapped files in TIFFReadRawStrip1() and TIFFReadRawTile1()
  6262. when stripoffset is beyond tmsize_t max value (reported by
  6263. Mathias Svensson)
  6264. 2016-07-10 Even Rouault <even.rouault at spatialys.com>
  6265. * tools/tiffdump.c: fix a few misaligned 64-bit reads warned
  6266. by -fsanitize
  6267. 2016-07-03 Even Rouault <even.rouault at spatialys.com>
  6268. * libtiff/tif_read.c: make TIFFReadEncodedStrip() and
  6269. TIFFReadEncodedTile() directly use user provided buffer when
  6270. no compression (and other conditions) to save a memcpy().
  6271. * libtiff/tif_write.c: make TIFFWriteEncodedStrip() and
  6272. TIFFWriteEncodedTile() directly use user provided buffer when
  6273. no compression to save a memcpy().
  6274. 2016-07-01 Even Rouault <even.rouault at spatialys.com>
  6275. * libtiff/tif_luv.c: validate that for COMPRESSION_SGILOG and
  6276. PHOTOMETRIC_LOGL, there is only one sample per pixel. Avoid
  6277. potential invalid memory write on corrupted/unexpected images when
  6278. using the TIFFRGBAImageBegin() interface (reported by
  6279. Clay Wood)
  6280. 2016-06-28 Even Rouault <even.rouault at spatialys.com>
  6281. * libtiff/tif_pixarlog.c: fix potential buffer write overrun in
  6282. PixarLogDecode() on corrupted/unexpected images (reported by Mathias Svensson)
  6283. (CVE-2016-5875)
  6284. 2016-06-15 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  6285. * libtiff/libtiff.def: Added _TIFFMultiply32 and _TIFFMultiply64
  6286. to libtiff.def
  6287. 2016-06-05 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  6288. * tools/Makefile.am: The libtiff tools bmp2tiff, gif2tiff,
  6289. ras2tiff, sgi2tiff, sgisv, and ycbcr are completely removed from
  6290. the distribution. The libtiff tools rgb2ycbcr and thumbnail are
  6291. only built in the build tree for testing. Old files are put in
  6292. new 'archive' subdirectory of the source repository, but not in
  6293. distribution archives. These changes are made in order to lessen
  6294. the maintenance burden.
  6295. 2016-05-10 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  6296. * libtiff/tif_config.vc.h (HAVE_SNPRINTF): Add a '1' to the
  6297. HAVE_SNPRINTF definition.'
  6298. 2016-05-09 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  6299. * libtiff/tif_config.vc.h (HAVE_SNPRINTF): Applied patch by Edward
  6300. Lam to define HAVE_SNPRINTF for Visual Studio 2015.
  6301. 2016-04-27 Even Rouault <even.rouault at spatialys.com>
  6302. * libtiff/tif_dirread.c: when compiled with DEFER_STRILE_LOAD,
  6303. fix regression, introduced on 2014-12-23, when reading a one-strip
  6304. file without a StripByteCounts tag. GDAL #6490
  6305. 2016-04-07 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  6306. * html/bugs.html: Replace Andrey Kiselev with Bob Friesenhahn for
  6307. purposes of security issue reporting.
  6308. 2016-01-23 Even Rouault <even.rouault at spatialys.com>
  6309. * libtiff/*: upstream typo fixes (mostly contributed by Kurt Schwehr)
  6310. coming from GDAL internal libtiff
  6311. 2016-01-09 Even Rouault <even.rouault at spatialys.com>
  6312. * libtiff/tif_fax3.h: make Param member of TIFFFaxTabEnt structure
  6313. a uint16 to reduce size of the binary.
  6314. 2016-01-03 Even Rouault <even.rouault at spatialys.com>
  6315. * libtiff/tif_read.c, tif_dirread.c: fix indentation issues raised
  6316. by GCC 6 -Wmisleading-indentation
  6317. 2015-12-27 Even Rouault <even.rouault at spatialys.com>
  6318. * libtiff/tif_pixarlog.c: avoid zlib error messages to pass a NULL
  6319. string to %s formatter, which is undefined behaviour in sprintf().
  6320. 2015-12-27 Even Rouault <even.rouault at spatialys.com>
  6321. * libtiff/tif_next.c: fix potential out-of-bound write in NeXTDecode()
  6322. triggered by http://lcamtuf.coredump.cx/afl/vulns/libtiff5.tif
  6323. (bugzilla #2508)
  6324. 2015-12-27 Even Rouault <even.rouault at spatialys.com>
  6325. * libtiff/tif_luv.c: fix potential out-of-bound writes in decode
  6326. functions in non debug builds by replacing assert()s by regular if
  6327. checks (bugzilla #2522).
  6328. Fix potential out-of-bound reads in case of short input data.
  6329. 2015-12-26 Even Rouault <even.rouault at spatialys.com>
  6330. * libtiff/tif_getimage.c: fix out-of-bound reads in TIFFRGBAImage
  6331. interface in case of unsupported values of SamplesPerPixel/ExtraSamples
  6332. for LogLUV / CIELab. Add explicit call to TIFFRGBAImageOK() in
  6333. TIFFRGBAImageBegin(). Fix CVE-2015-8665 reported by limingxing and
  6334. CVE-2015-8683 reported by zzf of Alibaba.
  6335. 2015-12-21 Even Rouault <even.rouault at spatialys.com>
  6336. * libtiff/tif_dirread.c: workaround false positive warning of Clang Static
  6337. Analyzer about null pointer dereference in TIFFCheckDirOffset().
  6338. 2015-12-19 Even Rouault <even.rouault at spatialys.com>
  6339. * libtiff/tif_fax3.c: remove dead assignment in Fax3PutEOLgdal(). Found
  6340. by Clang Static Analyzer
  6341. 2015-12-18 Even Rouault <even.rouault at spatialys.com>
  6342. * libtiff/tif_dirwrite.c: fix truncation to 32 bit of file offsets in
  6343. TIFFLinkDirectory() and TIFFWriteDirectorySec() when aligning directory
  6344. offsets on a even offset (affects BigTIFF). This was a regression of the
  6345. changeset of 2015-10-19.
  6346. 2015-12-12 Even Rouault <even.rouault at spatialys.com>
  6347. * libtiff/tif_write.c: TIFFWriteEncodedStrip() and TIFFWriteEncodedTile()
  6348. should return -1 in case of failure of tif_encodestrip() as documented
  6349. * libtiff/tif_dumpmode.c: DumpModeEncode() should return 0 in case of
  6350. failure so that the above mentioned functions detect the error.
  6351. 2015-12-06 Even Rouault <even.rouault at spatialys.com>
  6352. * libtiff/uvcode.h: const'ify uv_code array
  6353. 2015-12-06 Even Rouault <even.rouault at spatialys.com>
  6354. * libtiff/tif_dirinfo.c: const'ify tiffFields, exifFields,
  6355. tiffFieldArray and exifFieldArray arrays
  6356. 2015-12-06 Even Rouault <even.rouault at spatialys.com>
  6357. * libtiff/tif_print.c: constify photoNames and orientNames arrays
  6358. 2015-12-06 Even Rouault <even.rouault at spatialys.com>
  6359. * libtiff/tif_close.c, libtiff/tif_extension.c : rename link
  6360. variable to avoid -Wshadow warnings
  6361. 2015-11-22 Even Rouault <even.rouault at spatialys.com>
  6362. * libtiff/*.c: fix typos in comments (patch by Kurt Schwehr)
  6363. 2015-11-22 Even Rouault <even.rouault at spatialys.com>
  6364. * libtiff/*.c: fix MSVC warnings related to cast shortening and
  6365. assignment within conditional expression
  6366. 2015-11-18 Even Rouault <even.rouault at spatialys.com>
  6367. * libtiff/*.c: fix clang -Wshorten-64-to-32 warnings
  6368. 2015-11-18 Even Rouault <even.rouault at spatialys.com>
  6369. * libtiff/tif_dirread.c: initialize double* data at line 3693 to NULL
  6370. to please MSVC 2013
  6371. 2015-11-17 Even Rouault <even.rouault at spatialys.com>
  6372. * libtiff/tif_dirread.c: prevent reading ColorMap or TransferFunction
  6373. if BitsPerPixel > 24, so as to avoid huge memory allocation and file
  6374. read attempts
  6375. 2015-11-02 Even Rouault <even.rouault at spatialys.com>
  6376. * libtiff/tif_dirread.c: remove duplicated assignment (reported by
  6377. Clang static analyzer)
  6378. 2015-10-28 Even Rouault <even.rouault at spatialys.com>
  6379. * libtiff/tif_dir.c, libtiff/tif_dirinfo.c, libtiff/tif_compress.c,
  6380. libtiff/tif_jpeg_12.c: suppress warnings about 'no previous
  6381. declaration/prototype'
  6382. 2015-10-19 Even Rouault <even.rouault at spatialys.com>
  6383. * libtiff/tiffiop.h, libtiff/tif_dirwrite.c: suffix constants by U to fix
  6384. 'warning: negative integer implicitly converted to unsigned type' warning
  6385. (part of -Wconversion)
  6386. 2015-10-17 Even Rouault <even.rouault at spatialys.com>
  6387. * libtiff/tif_dir.c, libtiff/tif_dirread.c, libtiff/tif_getimage.c,
  6388. libtiff/tif_print.c: fix -Wshadow warnings (only in libtiff/)
  6389. 2015-09-12 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  6390. * libtiff 4.0.6 released.
  6391. * html/v4.0.6.html: Added release notes for 4.0.6.
  6392. 2015-09-06 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  6393. * tools/tiffgt.c: Silence glut API deprecation warnings on MacOS
  6394. X. Patch by Roger Leigh.
  6395. * Makefile.am: Added a 'coverity' rule to assist with Coverity
  6396. submissions.
  6397. * tools/tiff2pdf.c: Fix compiler warning about unused function
  6398. when JPEG is not available.
  6399. * tools/fax2ps.c (main): Detect failure to write to temporary
  6400. file.
  6401. 2015-09-05 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  6402. * libtiff/tif_dirread.c (TIFFReadDirEntryCheckRangeSlongSlong8):
  6403. Change implementation so that it does not sometimes overflow the
  6404. range of a 32-bit int and to avoid a signed vs unsigned compare
  6405. compiler warning.
  6406. (TIFF_INT64_MAX): Avoid use of platform-specific large constants.
  6407. (TIFF_UINT32_MAX): Avoid use of platform-specific large constants.
  6408. 2015-09-01 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  6409. * Makefile.am (distcheck-hook), configure.ac: Applied patches by
  6410. Roger Leigh (via tiff mailing list on 2015-09-01) to fix issue
  6411. with BSD make and to make use of cmake in 'distcheck' target
  6412. conditional on if cmake is available.
  6413. * CMakeLists.txt, Makefile.am, configure.ac: Applied patches by
  6414. Roger Leigh (via tiff mailing list on 2015-09-01).
  6415. CMake build is now included in 'distcheck' target.
  6416. Builds with CMake 2.8.9 and newer.
  6417. Tar is now resquested to use POSIX PAX format.
  6418. 2015-08-31 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  6419. * CMakeLists.txt, libtiff/test/Makefile.am: Applied patches by
  6420. Roger Leigh (via tiff mailing list on 2015-08-31.
  6421. CMake reads all version information directly from configure.ac to
  6422. avoid duplication of values. This basically greps over the file
  6423. for the LIBTIFF_* variables, then translates them to the form
  6424. needed for cmake. This includes the release version and libtool
  6425. shared library version information.
  6426. Make shared/static library building configurable. Currently it
  6427. always builds shared libraries, with static libs having a _static
  6428. suffix (copying zlib, but it means it's got a non-standard name).
  6429. CMake has a -DBUILD_SHARED_LIBS=ON|OFF option to select one or the
  6430. other, which is now used instead. There's now a single "tiff"
  6431. target to build either shared or static as required, and all the
  6432. tests and tools are linked with this. Note: the Windows tests fail
  6433. when linked with a static libtiff (says: libtiff.dll not found).
  6434. Not really a regression since this was not tested up to this
  6435. point, and it's likely the unit tests haven't (ever?) been run on
  6436. Windows with a static libtiff, so there's some additional
  6437. portability issue here to address. Works fine on UNIX systems,
  6438. and fine on Windows with the default to build a DLL.
  6439. Add a missing file which wasn't being distributed, causing unit
  6440. tests to fail. Note that "find . -name '*.cmake'" lists all the
  6441. CMake files which need distributing in addition to all the
  6442. CMakeLists.txt files (which now are distributed).
  6443. 2015-08-31 Even Rouault <even.rouault at spatialys.com>
  6444. * libtiff/tif_predict.c: pedantic change to add explicit masking
  6445. with 0xff before casting to uchar in floating-point horizontal
  6446. differencing and accumulation routines.
  6447. 2015-08-31 Even Rouault <even.rouault at spatialys.com>
  6448. * libtiff/tif_predict.c: fix generation of output with 16 bit
  6449. or 32 bit integer, when byte swapping is needed, in
  6450. horizontal predictor (#2521). Also fixes decoding when there is
  6451. a single pixel to code (unlikely case...) and byte swapping is
  6452. involved.
  6453. 2015-08-30 Even Rouault <even.rouault at spatialys.com>
  6454. * libtiff/tif_lzw.c: make nextdata a unsigned type to avoid
  6455. undefined behaviour with shifts (gcc -fsanitize=shift)
  6456. 2015-08-30 Even Rouault <even.rouault at spatialys.com>
  6457. * libtiff/tif_fax3.c, libtiff/tif_lzw.c, libtiff/tif_predict.c:
  6458. add explicit masking with 0xff before casting
  6459. to unsigned char (make icc -check=conversions happy)
  6460. * libtiff/tif_predict.c: operate on unsigned datatypes when
  6461. computing/applying differences to avoid undefined behaviour of
  6462. signed types (C standard compliance)
  6463. 2015-08-30 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  6464. * configure.ac: libtiff 4.0.5 released.
  6465. 2015-08-29 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  6466. * CMakeLists.txt: Applied patch by Roger Leigh (via tiff mailing
  6467. list on 2015-08-29) to add ld-version-script option to cmake build
  6468. to match autoconf. Note: defaults to 'on' to be ABI-compatible by
  6469. default with common Linux distribution builds. Note that the
  6470. autoconf configure script defaults to 'off'.
  6471. * html/build.html: Applied patch by Roger Leigh (via tiff mailing
  6472. list on 2015-08-29) to describe how to use CMake to build libtiff.
  6473. 2015-08-28 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  6474. * html/v4.0.5.html: Added HTML file describing the changes which
  6475. will appear in the 4.0.5 release.
  6476. 2015-08-23 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  6477. * libtiff/tiffiop.h: For MinGW comiles, make sure that build
  6478. supports necessary __MSVCRT_VERSION__ (at least at least 0x800).
  6479. Otherwise large files can not be supported for POSIX-style I/O.
  6480. * tools/fax2tiff.c (main): Eliminate a compiler warning in 64-bit
  6481. builds about cast to thandle_t.
  6482. * test/rewrite_tag.c (main): Does not require any arguments.
  6483. 2015-08-20 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  6484. * tools/CMakeLists.txt, port/snprintf.c: Patch by Roger Leigh to
  6485. fix build issues when using Cmake due to Windows large file
  6486. changes.
  6487. 2015-08-18 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  6488. * libtiff/tiffiop.h: First cut at supporting large files under
  6489. Microsoft Windows using tif_unix.c and the libtiff tools. This
  6490. only works if the Windows CDK is new enough to support the APIs
  6491. used (Visual C++ 2005 or later). Support for large files is not
  6492. actually tested yet.
  6493. 2015-08-15 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  6494. * libtiff/tif_jpeg.c: Applied patch by Räisä Olli to assure that
  6495. client_data is initialized to a known value, and to report an
  6496. error on two memory allocation failures.
  6497. 2015-08-13 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  6498. * CMakeLists.txt: Applied patch by Roger Leigh to fix libtiffxx
  6499. symbol versioning. Patch was mailed to libtiff list on Thu, 13
  6500. Aug 2015.
  6501. 2015-07-04 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  6502. * cmake: Add d suffix to debug libraries with MSVC. Patch #3 of 3
  6503. by Roger Leigh posted to tiff list on Wed, 1 Jul 2015 15:58:20
  6504. +0100.
  6505. * cmake: Add extra warning flags. Patch #2 of 3 by Roger Leigh
  6506. posted to tiff list on Wed, 1 Jul 2015 15:58:20 +0100.
  6507. * cmake: Correct snprintf fallback for VS2015. Patch #1 of 3 by
  6508. Roger Leigh posted to tiff list on Wed, 1 Jul 2015 15:58:20 +0100.
  6509. 2015-06-24 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  6510. * CMakeLists.txt: Add CMake patchset by Roger Leigh as posted to
  6511. libtiff mailing list on Mon, 22 Jun 2015 21:21:01 +0100. Several
  6512. corrections to ensure that the autotools build still works were
  6513. added by me. I have not yet tested the build using 'cmake' or
  6514. MSVC with 'nmake'.
  6515. 2015-06-21 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  6516. * test/Makefile.am: tiff2rgba-quad-tile.jpg.sh depends on the JPEG
  6517. library so only execute if JPEG is available.
  6518. * libtiff 4.0.4 released.
  6519. * configure.ac: Add a HAVE_FOO Automake conditional for each
  6520. add-on library.
  6521. * test/Makefile.am (JPEG_DEPENDENT_CHECK_PROG): raw_decode
  6522. requires JPEG support to compile. Use Automake conditional to
  6523. only include it when JPEG support is available.
  6524. * html/build.html: Try to improve the nmake-based VC++ build
  6525. description.
  6526. * libtiff/tiffconf.vc.h: Build fixes based on testing.
  6527. * libtiff/tif_config.vc.h: Build fixes based on testing.
  6528. * libtiff/libtiff.def: TIFFRasterScanline does not exist so remove
  6529. export for it.
  6530. 2015-06-20 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  6531. * libtiff/tif_config.vc.h: Make adjustments to match the new
  6532. definitions that configure produces, including for WIN64. Still
  6533. needs to be tested.
  6534. * configure.ac: For 64-bit MinGW, fix SSIZE_FORMAT formatting
  6535. specifier. 64-bit MinGW supports 'long long' but support for
  6536. 'lld' is not assured by the run-time DLLs and so GCC warns.
  6537. Add TIFF_SIZE_T and TIFF_SIZE_FORMAT to provide a type definition
  6538. and printf format specifier to deal with printing values of
  6539. 'size_t' type. In particular, this was necessary for WIN64.
  6540. Added a configure test for if the system headers provide 'optarg'
  6541. (normal case) and block out the many explicit 'extern' statements
  6542. in the utilities. This was found to be necessary under Windows
  6543. when getopt is in a DLL and the symbols are already imported with
  6544. dllimport via standard header files.
  6545. * test/raw_decode.c (XMD_H): Avoid conflicting typedefs for INT32
  6546. and boolean in MinGW build due to including jpeglib.h.
  6547. * test/rewrite_tag.c (main): Fix problem with location of variable
  6548. declaration.
  6549. * libtiff/libtiff.def: Added exports for TIFFGetConfiguredCODECs,
  6550. TIFFReadRGBAImageOriented, TIFFSetCompressionScheme,
  6551. TIFFSwabArrayOfTriples, TIFFVGetFieldDefaulted, _TIFFCheckRealloc,
  6552. TIFFRasterScanline, TIFFSetErrorHandlerExt,
  6553. TIFFSetWarningHandlerExt, TIFFNumberOfDirectories,
  6554. TIFFCreateCustomDirectory, TIFFCreateEXIFDirectory,
  6555. TIFFWriteCustomDirectory, _TIFFRewriteField as recommended by
  6556. Roger Leigh and justified by use in libtiff tests, documentation,
  6557. and changelog notes. Also sorted symbol list and removed
  6558. duplicate entries.
  6559. 2015-06-16 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  6560. * libtiff/tif_getimage.c: Fix four Coverity issues related to
  6561. unintended sign extension.
  6562. 2015-06-16 Even Rouault <even.rouault at spatialys.com>
  6563. * libtiff/tif_unix.c: fix compilation with MSVC (fix by Jeff McKenna)
  6564. 2015-06-14 Lee Howard <faxguy@howardsilvan.com>
  6565. * libtiff/tif_unix.c: contribution from Vadim Zeitlin on
  6566. Bugzilla Bug #2510 fixes several harmless but still annoying
  6567. warnings
  6568. * configure: contribution from Ludolf Holzheid on Bugzilla
  6569. Bug #2498. Adds an option to select the file I/O style on
  6570. Windows hosts.
  6571. * libtiff/tif_getimage.c: contribution from Gary Cramblitt
  6572. on Bugzilla Bug #2409. Correct reading of certain tiled TIFFs.
  6573. * configure, configure.ac: contribution from Marcos H. Woehrmann
  6574. on Bugzilla Bug #2405. Correct shell equality operator.
  6575. * tools/tiffgt.c (raster_draw): contribution from Jay Berkenbilt
  6576. on Bugzilla Bug #2401. Appropriately call glFlush().
  6577. * tools/tiff2pdf.c: change ColorTransform from "0" to "1"
  6578. following Bugzilla Bug #2150.
  6579. 2015-06-13 Lee Howard <faxguy@howardsilvan.com>
  6580. * libtiff/tif_lzw.c: contribution from Andy Cave - decode
  6581. files that contain consecutive CODE_CLEAR codes.
  6582. * tools/tiff2pdf.c: contribution from Antti S. Lankila on
  6583. Bugzilla Bug #2078. Suppress initial output of the header.
  6584. * tools/tiff2pdf.c: contribution from Yuriy M. Kaminskiy -
  6585. Take care in using the return value from snprintf().
  6586. * tools/tiffcrop.c: contribution from Eduardo Robles Elvira -
  6587. correctly copy the compression tag from the source TIFF.
  6588. * tools/tiff2ps.c: contribution from Eduardo Robles Elvira -
  6589. correct sizing and scaling problems with output document.
  6590. 2015-06-10 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  6591. * libtiff/tif_jpeg.c (JPEGDecode): Split JPEGDecode() into two
  6592. clean implementations in order to avoid pre-processor hell. Only
  6593. one of the implementations is used in a given build.
  6594. 2015-06-08 Even Rouault <even.rouault at spatialys.com>
  6595. * libtiff/tif_jpeg.c: Fix compilation in BITS_IN_JSAMPLE == 12
  6596. case
  6597. 2015-06-07 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  6598. * libtiff/tif_write.c (TIFFWriteEncodedStrip): Fix Coverity 715975
  6599. "Division or modulo by zero".
  6600. (TIFFWriteEncodedTile): Fix Coverity 715976 and 715977 "Division
  6601. or modulo by zero".
  6602. (TIFFWriteRawStrip): Fix Coverity 715978 "Division or modulo by
  6603. zero".
  6604. (TIFFWriteScanline): Fix Coverity 715979 "Division or modulo by
  6605. zero".
  6606. * libtiff/tif_read.c (TIFFStartTile): Fix Coverity 715973 and
  6607. 715974 "Division or modulo by zero".
  6608. 2015-05-31 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  6609. * libtiff/tif_dir.c (TIFFNumberOfDirectories): Quiet Coverity
  6610. 1134470 "Logically dead code" by making the roll-over check
  6611. explicit.
  6612. * libtiff/tif_luv.c (LogLuvDecodeTile): Fix Coverity 991227
  6613. "Division or modulo by zero".
  6614. (LogLuvDecodeStrip): Fix Coverity 991239 "Division or modulo by
  6615. zero".
  6616. (LogLuvEncodeStrip): Fix Coverity 991240 "Division or modulo by
  6617. zero".
  6618. (LogLuvEncodeTile): Fix Coverity 991241 "Division or modulo by
  6619. zero".
  6620. * libtiff/tif_dirread.c (TIFFReadDirEntryDoubleArray): Fix
  6621. Coverity 298626 "Logically dead code".
  6622. (TIFFReadDirEntryFloatArray): Fix Coverity 298627 "Logically dead
  6623. code".
  6624. (TIFFReadDirEntryIfd8Array): Fix Coverity 298628 "Logically dead
  6625. code".
  6626. (TIFFReadDirEntrySlong8Array): Fix Coverity 298629 "Logically dead
  6627. code"
  6628. * libtiff/tif_dir.c (TIFFNumberOfDirectories): Don't depend on ++
  6629. operator precedenc in evaluation. Might quench Coverity 1134470
  6630. "Logically dead code".
  6631. * libtiff/tif_jpeg.c (JPEGDecode): Fix Coverity 602597 "Operands
  6632. don't affect result". This change uses ifdefs to include
  6633. applicable code based on properties of libjpeg. Still needs to be
  6634. re-tested with 12-bit "6b" and "MK1".
  6635. 2015-05-30 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  6636. * libtiff/tif_dirwrite.c (_TIFFRewriteField): Fix Coverity 1024310
  6637. "Resource leak".
  6638. * libtiff/tif_ojpeg.c (OJPEGReadHeaderInfoSecStreamDht): Fix
  6639. Coverity 601720 "Resource leak".
  6640. * libtiff/tif_jpeg.c (JPEGCleanup): Fix Coverity 298624
  6641. "Dereference before null check".
  6642. * libtiff/tif_ojpeg.c (OJPEGReadBufferFill): Fix Coverity 603400
  6643. "Missing break in switch".
  6644. * contrib/addtiffo/tif_overview.c (TIFF_DownSample): Check buffer
  6645. size calculation for overflow.
  6646. * contrib/addtiffo/addtiffo.c (main): Possibly address Coverity
  6647. 1024226 "Untrusted value as argument".
  6648. * tools/gif2tiff.c (readgifimage): Fix Coverity 1024222 "Untrusted
  6649. value as argument".
  6650. (checksignature): Fix Coverity 1024894 "Ignoring number of bytes
  6651. read".
  6652. (readextension): Fix Coverity 1024893 "Ignoring number of bytes
  6653. read".
  6654. (readgifimage): Fix Coverity 1024890 "Ignoring number of bytes
  6655. read".
  6656. (readraster): Fix Coverity 1024891 "Ignoring number of bytes
  6657. read".
  6658. (readgifimage): Fix Coverity 1024892 "Ignoring number of bytes
  6659. read".
  6660. * tools/tiff2pdf.c (t2p_readwrite_pdf_image): Fix Coverity 1024181
  6661. "Structurally dead code".
  6662. * tools/raw2tiff.c (main): Fix Coverity 1024887 "Unchecked return
  6663. value from library".
  6664. (guessSize): Fix Coverity 1024888 "Unchecked return value from
  6665. library".
  6666. (guessSize): Fix Coverity 1214162 "Ignoring number of bytes read".
  6667. (guessSize): Fix Coverity 1024889 "Unchecked return value from
  6668. library".
  6669. * tools/tiff2pdf.c (t2p_readwrite_pdf_image): Fix Coverity 298621
  6670. "Resource leak".
  6671. (t2p_readwrite_pdf_image): Fix Coverity 1024181 "Structurally dead
  6672. code".
  6673. (t2p_write_pdf): Fix Coverity 1227690 "Unused value".
  6674. 2015-05-29 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  6675. * contrib/iptcutil/iptcutil.c (formatIPTC): Fix Coverity 1024468
  6676. "Infinite loop".
  6677. (formatIPTC): Fix Coverity 1024727 "Truncated stdio return value".
  6678. (formatIPTC): Fix Coverity 1214240 "Untrusted loop bound".
  6679. 2015-05-28 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  6680. * contrib/addtiffo/tif_ovrcache.c (TIFFCreateOvrCache): Fix
  6681. Coverity 298615 "Resource leak".
  6682. (TIFFGetOvrBlock): Fix Coverity 1024649 "Unintended sign
  6683. extension".
  6684. * tools/bmp2tiff.c (main): Fix Coverity 1024225 "Untrusted value
  6685. as argument".
  6686. (main): Fix Coverity 1024678 "Unchecked return value from
  6687. library".
  6688. (main): Fix Coverity 1024679 "Unchecked return value from
  6689. library".
  6690. (main): Fix Coverity 1214160 "Ignoring number of bytes read".
  6691. * contrib/addtiffo/tif_ovrcache.c (TIFFCreateOvrCache): Fix
  6692. Coverity 298615 "Resource leak".
  6693. * tools/tiffcp.c: Fix Coverity 1024306, 1024307, 1024308, 1024309
  6694. "Resource leak".
  6695. * tools/tiffsplit.c (cpTiles): Fix Coverity 1024304 "Resource
  6696. leak".
  6697. (cpStrips): Fix Coverity 1024305 "Resource leak".
  6698. 2015-05-27 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  6699. * tools/ras2tiff.c: Fix Sun Raster header definition to be safe
  6700. for 64-bit systems. Add some header validations. Should fix many
  6701. Coverity issues.
  6702. (main): Fix Coverity 1301206: "Integer handling issues (BAD_SHIFT)".
  6703. (main): Quiet Coverity 1024223 "Untrusted value as argument".
  6704. * tools/tiffmedian.c (GetInputLine): Fix Coverity 1024795 "Nesting
  6705. level does not match indentation".
  6706. (get_histogram): Quiet Coverity 1024386 "Out-of-bounds read".
  6707. This was a benign mis-diagnosis but added code to enforce against
  6708. buffer overflow.
  6709. * tools/tiffcrop.c (ROTATE_ANY): Fix Coverity 1294542 "Logical
  6710. vs. bitwise operator".
  6711. (readContigStripsIntoBuffer): Fix Coverity 1024545 "Division or
  6712. modulo by zero".
  6713. (readContigTilesIntoBuffer): Fix Coverity 1024586 "Logically dead
  6714. code".
  6715. (writeSingleSection): Fix Coverity 1024796 "Nesting level does not
  6716. match indentation".
  6717. (writeCroppedImage): Fix Coverity 1024797 "Nesting level does not
  6718. match indentation".
  6719. (loadImage): Fix Coverity 1299741 "Dereference before null check".
  6720. (loadImage): Fix Coverity 1299740 "Out-of-bounds write".
  6721. 2015-03-02 Even Rouault <even.rouault@spatialys.com>
  6722. * tools/tiffdither.c: check memory allocations to avoid writing to
  6723. NULL pointer. Also check multiplication overflow. Fixes #2501,
  6724. CVE-2014-8128. Derived from patch by Petr Gajdos.
  6725. 2015-01-26 Even Rouault <even.rouault@spatialys.com>
  6726. * add html/v4.0.4beta.html under version control
  6727. * HOWTO-RELEASE: write that cvs add html/vX.X.html must be used
  6728. 2015-01-26 Even Rouault <even.rouault@spatialys.com>
  6729. * libtiff 4.0.4beta released
  6730. 2015-01-26 Even Rouault <even.rouault@spatialys.com>
  6731. * automake: updated to 1.15
  6732. * libtool: updated to 2.4.5
  6733. 2015-01-22 Even Rouault <even.rouault@spatialys.com>
  6734. * tools/tiff2pdf.c: Fix two crashes (oCERT-2014-013)
  6735. 2015-01-05 Frank Warmerdam <warmerdam@pobox.com>
  6736. * html/bugs.html: remove note about needing to email the tiff mailing
  6737. list administrator about being approved for membership, this appears
  6738. not to be true.
  6739. 2015-01-05 Olivier Paquet <olivier.paquet@gmail.com>
  6740. * tools/tiff2pdf.c: Fixed unsigned integer addition overflow detection.
  6741. 2015-01-03 Even Rouault <even.rouault@spatialys.com>
  6742. * libtiff/tif_dirread.c: in TIFFCheckDirOffset(), avoid uint16 overflow
  6743. when reading more than 65535 directories, and effectively error out when
  6744. reaching that limit.
  6745. 2014-12-29 Even Rouault <even.rouault@spatialys.com>
  6746. * libtiff/tif_jpeg.c: in JPEGFixupTags(), recognize SOF2, SOF9 and SOF10
  6747. markers to avoid emitting a warning (even if, according to the TechNote,
  6748. there are admittedly unusual/not recommended or even forbidden variants, but
  6749. they do work well with libjpeg for SOF2, and with libjpeg-turbo for SOF2,
  6750. SOF9 and SOF10).
  6751. Define in_color_space and input_components to the right values in
  6752. JPEGSetupEncode(), before calling jpeg_set_defaults(), as specified by
  6753. libjpeg API documentation, so as to be compatible with mozjpeg library.
  6754. Note: the default settings of mozjpeg will produce progressive scans, which
  6755. is forbidden by the TechNote.
  6756. 2014-12-29 Even Rouault <even.rouault@spatialys.com>
  6757. * libtiff/tif_getimage.c: move test on vertical value of YCbCr subsampling.
  6758. to avoid buffer leak (fix previous fix, found by Coverity scan)
  6759. 2014-12-29 Even Rouault <even.rouault@spatialys.com>
  6760. * libtiff/tif_next.c: add new tests to check that we don't read outside of
  6761. the compressed input stream buffer.
  6762. * libtiff/tif_getimage.c: in OJPEG case, fix checks on strile width/height
  6763. in the putcontig8bitYCbCr42tile, putcontig8bitYCbCr41tile and
  6764. putcontig8bitYCbCr21tile cases.
  6765. 2014-12-27 Even Rouault <even.rouault@spatialys.com>
  6766. * libtiff/tif_dir.c: in TIFFDefaultDirectory(), reset any already existing
  6767. extended tags installed by user code through the extender mechanism before
  6768. calling the extender callback (GDAL #5054)
  6769. 2014-12-26 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  6770. * tools/tiffcrop.c: Fix warnings about variables set but not used.
  6771. * contrib/iptcutil/iptcutil.c: Fix warnings about variables set
  6772. but not used.
  6773. * tools/tiffgt.c: Fix warnings about unused parameters.
  6774. * libtiff/tif_stream.cxx: Fix warnings about unused parameters.
  6775. 2014-12-25 Even Rouault <even.rouault@spatialys.com>
  6776. * libtiff/tif_getimage.c, libtiff/tif_ojpeg.c, libtiff/tif_zip.c: fix
  6777. various typos found by Debian lintian tool (GDAL #5756)
  6778. 2014-12-24 Even Rouault <even.rouault@spatialys.com>
  6779. * libtiff/tif_getimage.c: avoid divide by zero on invalid YCbCr subsampling.
  6780. http://bugzilla.maptools.org/show_bug.cgi?id=2235
  6781. 2014-12-24 Even Rouault <even.rouault@spatialys.com>
  6782. * tools/tiff2pdf.c: fix buffer overflow on some YCbCr JPEG compressed images.
  6783. http://bugzilla.maptools.org/show_bug.cgi?id=2445
  6784. 2014-12-24 Even Rouault <even.rouault@spatialys.com>
  6785. * tools/tiff2pdf.c: fix buffer overflow on YCbCr JPEG compressed image.
  6786. Derived from patch by Petr Gajdos,
  6787. http://bugzilla.maptools.org/show_bug.cgi?id=2443
  6788. 2014-12-23 Even Rouault <even.rouault@spatialys.com>
  6789. * libtiff/tif_dirread.c: In EstimateStripByteCounts(), check return code
  6790. of _TIFFFillStriles(). This solves crashing bug on corrupted
  6791. images generated by afl.
  6792. 2014-12-23 Even Rouault <even.rouault@spatialys.com>
  6793. * libtiff/tif_read.c: fix several invalid comparisons of a uint64 value with
  6794. <= 0 by casting it to int64 first. This solves crashing bug on corrupted
  6795. images generated by afl.
  6796. 2014-12-21 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  6797. * tools/tiffdump.c: Guard against arithmetic overflow when
  6798. calculating allocation buffer sizes.
  6799. 2014-12-21 Even Rouault <even.rouault@spatialys.com>
  6800. * tools/tiff2bw.c: when Photometric=RGB, the utility only works if
  6801. SamplesPerPixel = 3. Enforce that
  6802. http://bugzilla.maptools.org/show_bug.cgi?id=2485 (CVE-2014-8127)
  6803. 2014-12-21 Even Rouault <even.rouault@spatialys.com>
  6804. * tools/pal2rgb.c, tools/thumbnail.c: fix crash by disabling TIFFTAG_INKNAMES
  6805. copying. The right fix would be to properly copy it, but not worth the burden
  6806. for those esoteric utilities.
  6807. http://bugzilla.maptools.org/show_bug.cgi?id=2484 (CVE-2014-8127)
  6808. 2014-12-21 Even Rouault <even.rouault@spatialys.com>
  6809. * tools/thumbnail.c: fix out-of-buffer write
  6810. http://bugzilla.maptools.org/show_bug.cgi?id=2489 (CVE-2014-8128)
  6811. 2014-12-21 Even Rouault <even.rouault@spatialys.com>
  6812. * tools/thumbnail.c, tools/tiffcmp.c: only read/write TIFFTAG_GROUP3OPTIONS
  6813. or TIFFTAG_GROUP4OPTIONS if compression is COMPRESSION_CCITTFAX3 or
  6814. COMPRESSION_CCITTFAX4
  6815. http://bugzilla.maptools.org/show_bug.cgi?id=2493 (CVE-2014-8128)
  6816. 2014-12-21 Even Rouault <even.rouault@spatialys.com>
  6817. * libtiff/tif_next.c: check that BitsPerSample = 2. Fixes
  6818. http://bugzilla.maptools.org/show_bug.cgi?id=2487 (CVE-2014-8129)
  6819. 2014-12-21 Even Rouault <even.rouault@spatialys.com>
  6820. * tools/tiff2pdf.c: check return code of TIFFGetField() when reading
  6821. TIFFTAG_SAMPLESPERPIXEL
  6822. 2014-12-21 Even Rouault <even.rouault@spatialys.com>
  6823. * tools/tiffcp.c: fix crash when converting YCbCr JPEG-compressed to none.
  6824. Based on patch by Tomasz Buchert (http://bugzilla.maptools.org/show_bug.cgi?id=2480)
  6825. Description: fix for Debian bug #741451
  6826. tiffcp crashes when converting JPEG-encoded TIFF to a different
  6827. encoding (like none or lzw). For example this will probably fail:
  6828. tiffcp -c none jpeg_encoded_file.tif output.tif
  6829. The reason is that when the input file contains JPEG data,
  6830. the tiffcp code forces conversion to RGB space. However,
  6831. the output normally inherits YCbCr subsampling parameters
  6832. from the input, which leads to a smaller working buffer
  6833. than necessary. The buffer is subsequently overrun inside
  6834. cpStripToTile() (called from writeBufferToContigTiles).
  6835. Note that the resulting TIFF file would be scrambled even
  6836. if tiffcp wouldn't crash, since the output file would contain
  6837. RGB data interpreted as subsampled YCbCr values.
  6838. This patch fixes the problem by forcing RGB space on the output
  6839. TIF if the input is JPEG-encoded and output is *not* JPEG-encoded.
  6840. Author: Tomasz Buchert <tomasz.buchert@inria.fr>
  6841. 2014-12-21 Even Rouault <even.rouault@spatialys.com>
  6842. Fix various crash bugs on fuzzed images.
  6843. * libtiff/tif_dir.c: TIFFSetField(): refuse to set negative values for
  6844. TIFFTAG_XRESOLUTION and TIFFTAG_YRESOLUTION that cause asserts when writing
  6845. the directory
  6846. * libtiff/tif_dirread.c: TIFFReadDirectory(): refuse to read ColorMap or
  6847. TransferFunction if BitsPerSample has not yet been read, otherwise reading
  6848. it later will cause user code to crash if BitsPerSample > 1
  6849. * libtiff/tif_getimage.c: TIFFRGBAImageOK(): return FALSE if LOGLUV with
  6850. SamplesPerPixel != 3, or if CIELAB with SamplesPerPixel != 3 or BitsPerSample != 8
  6851. * libtiff/tif_next.c: in the "run mode", use tilewidth for tiled images
  6852. instead of imagewidth to avoid crash
  6853. * tools/bmp2tiff.c: fix crash due to int overflow related to input BMP dimensions
  6854. * tools/tiff2pdf.c: fix crash due to invalid tile count (should likely be checked by
  6855. libtiff too). Detect invalid settings of BitsPerSample/SamplesPerPixel for CIELAB / ITULAB
  6856. * tools/tiffcrop.c: fix crash due to invalid TileWidth/TileHeight
  6857. * tools/tiffdump.c: fix crash due to overflow of entry count.
  6858. 2014-12-15 Even Rouault <even.rouault@spatialys.com>
  6859. * libtiff/tif_jpeg.c: Fix regression introduced on 2010-05-07 that caused
  6860. all tiles/strips to include quantization tables even when the jpegtablesmode
  6861. had the JPEGTABLESMODE_QUANT bit set.
  6862. Also add explicit removal of Huffman tables when jpegtablesmode has the
  6863. JPEGTABLESMODE_HUFF bit set, which avoids Huffman tables to be emitted in the
  6864. first tile/strip (only useful in update scenarios. create-only was
  6865. fine)
  6866. 2014-12-09 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  6867. * tools/tiff2pdf.c: Assure that memory size calculations for
  6868. _TIFFmalloc() do not overflow the range of tmsize_t.
  6869. 2014-12-07 Even Rouault <even.rouault@spatialys.com>
  6870. * tools/thumbnail.c, tools/tiffcrop.c: "fix" heap read over-run found with
  6871. Valgrind and Address Sanitizer on test suite
  6872. 2014-12-07 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  6873. * tools/tiff2pdf.c (t2p_read_tiff_init): TIFFTAG_TRANSFERFUNCTION
  6874. tag can return one channel, with the other two channels set to
  6875. NULL. The tiff2pdf code was expecting that other two channels
  6876. were duplicate pointers in the case where there is only one
  6877. channel. Detect this condition in order to avoid a crash, and
  6878. presumably perform correctly with just one channel.
  6879. 2014-12-06 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  6880. * tools/tiffdump.c: Fix double-free bug.
  6881. 2014-11-27 Even Rouault <even.rouault@spatialys.com>
  6882. * libtiff/tif_config.vc.h: no longer use "#define snprintf _snprintf" with
  6883. Visual Studio 2015 aka VC 14 aka MSVC 1900
  6884. 2014-11-20 Even Rouault <even.rouault@spatialys.com>
  6885. * libtiff/tif_lzw.c: prevent potential null dereference of
  6886. sp->dec_codetab in LZWPreDecode (bug #2459)
  6887. * libtiff/tif_read.c: in TIFFReadBufferSetup(), avoid passing -1 size
  6888. to TIFFmalloc() if passed user buffer size is 0 (bug #2459)
  6889. * libtiff/tif_ojpeg.c: make Coverity happier (not a bug, #2459)
  6890. * libtiff/tif_dir.c: in _TIFFVGetField() and _TIFFVSetField(), make
  6891. Coverity happier (not a bug, #2459)
  6892. * libtiff/tif_dirread.c: in TIFFFetchNormalTag(), make Coverity happier
  6893. (not a bug, #2459)
  6894. * tools/tiff2pdf.c: close PDF file (bug #2479)
  6895. * tools/fax2ps.c: check malloc()/realloc() result (bug #2470)
  6896. * tools/tiffdump.c: detect cycle in TIFF directory chaining (bug #2463)
  6897. and avoid passing a NULL pointer to read() if seek() failed before (bug #2459)
  6898. * tools/tiffcrop.c: fix segfault if bad value passed to -Z option
  6899. (bug #2459) and add missing va_end in dump_info (#2459)
  6900. * tools/gif2tif.c: apply patch for CVE-2013-4243 (#2451)
  6901. 2014-11-20 Even Rouault <even.rouault@spatialys.com>
  6902. * libtiff/tif_jpeg.c: fix segfault in JPEGFixupTagsSubsampling() on
  6903. corrupted image where tif->tif_dir.td_stripoffset == NULL (bug #2471)
  6904. 2014-11-20 Even Rouault <even.rouault@spatialys.com>
  6905. * automake: updated to 1.14.1
  6906. * libtool: updated to 2.4.3
  6907. * HOWTO-RELEASE: small update about autotools building order
  6908. 2014-10-20 Olivier Paquet <olivier.paquet@gmail.com>
  6909. * tools/tiff2pdf.c: Preserve input file directory order when pages
  6910. are tagged with the same page number.
  6911. 2014-08-31 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  6912. * libtiff/tif_dirread.c (TIFFReadDirEntryOutputErr): Incorrect
  6913. count for tag should be a warning rather than an error since
  6914. errors terminate processing.
  6915. 2014-06-07 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  6916. * tools/tiff2rgba.c (]): Fixed tiff2rgba usage message in that zip
  6917. was wrongly described. Fix suggested by Miguel Medalha.
  6918. 2014-05-06 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  6919. * libtiff/tif_dirinfo.c (TIFFField) : Fix data type for
  6920. TIFFTAG_GLOBALPARAMETERSIFD tag. Patch by Steve Underwood.
  6921. Reviewed and forwarded by Lee Howard.
  6922. 2013-11-30 Frank Warmerdam <warmerdam@pobox.com>
  6923. * libtiff/tif_dir.c: fix last fix for TIFFNumberOfDirectories()
  6924. 2013-10-21 Frank Warmerdam <warmerdam@pobox.com>
  6925. * libtiff/tif_dir.c: generate error in case of directory count
  6926. overflow.
  6927. 2013-10-01 Frank Warmerdam <warmerdam@pobox.com>
  6928. * libtiff/tiff.h, libtiff/tif_dirinfo.c: add definitions for
  6929. TIFF/EP CFARepeatPatternDim and CFAPattern tags (bug #2457)
  6930. 2013-09-12 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  6931. * libtiff/tif_dir.c (TIFFAdvanceDirectory): If nextdir is found to
  6932. be defective, then set it to zero before returning error in order
  6933. to terminate processing of truncated TIFF. Issue found and fix
  6934. suggested by Richard Nolde.
  6935. 2013-08-14 Frank Warmerdam <warmerdam@pobox.com>
  6936. * tools/gif2tiff.c: fix possible OOB write (#2452, CVE-2013-4244)
  6937. 2013-08-13 Frank Warmerdam <warmerdam@pobox.com>
  6938. * tools/gif2tiff.c: Be more careful about corrupt or
  6939. hostile input files (#2450, CVE-2013-4231)
  6940. * tools/tiff2pdf.c: terminate after failure of allocating
  6941. ycbcr buffer (bug #2449, CVE-2013-4232)
  6942. 2013-07-09 Frank Warmerdam <warmerdam@google.com>
  6943. * tools/tiffinfo.c: Default various values fetched with
  6944. TIFFGetField() to avoid being uninitialized.
  6945. 2013-05-02 Tom Lane <tgl@sss.pgh.pa.us>
  6946. * tools/tiff2pdf.c: Rewrite JPEG marker parsing in
  6947. t2p_process_jpeg_strip to be at least marginally competent. The
  6948. approach is still fundamentally flawed, but at least now it won't
  6949. stomp all over memory when given bogus input. Fixes CVE-2013-1960.
  6950. 2013-05-02 Tom Lane <tgl@sss.pgh.pa.us>
  6951. * contrib/dbs/xtiff/xtiff.c, libtiff/tif_codec.c,
  6952. libtiff/tif_dirinfo.c, tools/rgb2ycbcr.c, tools/tiff2bw.c,
  6953. tools/tiff2pdf.c, tools/tiff2ps.c, tools/tiffcrop.c,
  6954. tools/tiffdither.c: Enlarge some fixed-size buffers that weren't
  6955. large enough, and eliminate substantially all uses of sprintf(buf,
  6956. ...) in favor of using snprintf(buf, sizeof(buf), ...), so as to
  6957. protect against overflow of fixed-size buffers. This responds in
  6958. particular to CVE-2013-1961 concerning overflow in tiff2pdf.c's
  6959. t2p_write_pdf_page(), but in general it seems like a good idea to
  6960. deprecate use of sprintf().
  6961. 2013-03-29 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  6962. * configure.ac: Applied patch by Brad Smith to improve pkg-config
  6963. static linking by adding -lm to Libs.private when needed.
  6964. 2013-03-05 Tom Lane <tgl@sss.pgh.pa.us>
  6965. * html/man/tiff2ps.1.html, html/man/tiffcp.1.html,
  6966. html/man/tiffdither.1.html, man/tiff2ps.1, man/tiffcp.1,
  6967. man/tiffdither.1, tools/tiff2ps.c, tools/tiffcp.c,
  6968. tools/tiffdither.c: Sync tool usage printouts and man pages with
  6969. reality (quite a few options had escaped being documented in one
  6970. or both places). Per an old report from Miroslav Vadkerti.
  6971. 2013-01-25 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  6972. * tools/tiff2ps.c:Fix bug in auto rotate option code. Once a
  6973. rotation angle was set by the auto rotate check, it was retained
  6974. for all pages that followed instead ofa being retested for each
  6975. page. Patch by Richard Nolde.
  6976. 2013-01-18 Frank Warmerdam <warmerdam@google.com>
  6977. * libtiff/tif_write.c: tmsize_t related casting warning fixed for
  6978. 64bit linux.
  6979. * libtiff/tif_read.c: uint64/tmsize_t change for MSVC warnings.
  6980. http://bugzilla.maptools.org/show_bug.cgi?id=2427
  6981. 2012-12-20 Tom Lane <tgl@sss.pgh.pa.us>
  6982. * test/raw_decode.c: Relax raw_decode's pixel-value checks so that
  6983. it will pass with more versions of libjpeg. (There are at least
  6984. three in active use now, and JPEG_LIB_VERSION doesn't tell us
  6985. enough to uniquely identify expected results.)
  6986. 2012-12-12 Tom Lane <tgl@sss.pgh.pa.us>
  6987. * libtiff/tif_print.c: Fix TIFFPrintDirectory's handling of
  6988. field_passcount fields: it had the TIFF_VARIABLE and
  6989. TIFF_VARIABLE2 cases backwards.
  6990. 2012-12-10 Tom Lane <tgl@sss.pgh.pa.us>
  6991. * tools/ppm2tiff.c: Improve previous patch for CVE-2012-4564:
  6992. check the linebytes calculation too, get the max() calculation
  6993. straight, avoid redundant error messages, check for malloc
  6994. failure.
  6995. 2012-12-10 Tom Lane <tgl@sss.pgh.pa.us>
  6996. * libtiff/tif_pixarlog.c: Improve previous patch for CVE-2012-4447
  6997. (to enlarge tbuf for possible partial stride at end) so that
  6998. overflow in the integer addition is detected. Per gripe from
  6999. Huzaifa Sidhpurwala.
  7000. 2012-12-03 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  7001. * tools/tiffset.c: tiffset now supports a -u option to unset a
  7002. tag. Patch by Zach Baker. See
  7003. http://bugzilla.maptools.org/show_bug.cgi?id=2419
  7004. 2012-11-18 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  7005. * automake: Update Automake to 1.12.5 release.
  7006. * libtiff/tif_{unix,vms,win32}.c (_TIFFmalloc): ANSI C does not
  7007. require malloc() to return NULL pointer if requested allocation
  7008. size is zero. Assure that _TIFFmalloc does.
  7009. 2012-11-01 Frank Warmerdam <warmerdam@pobox.com>
  7010. * tools/ppm2tiff.c: avoid zero size buffer vulnerability.
  7011. CVE-2012-4564 - Thanks to Huzaifa Sidhpurwala of the
  7012. Red Hat Security Response team for the fix.
  7013. 2012-10-18 Frank Warmerdam <warmerdam@google.com>
  7014. * tif_zip.c: Avoid crash on NULL error messages.
  7015. 2012-09-22 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  7016. * libtiff 4.0.3 released.
  7017. 2012-09-20 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  7018. * Makefile.am: Update to Automake 1.12.4
  7019. 2012-08-19 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  7020. * Makefile.in: Update to Automake 1.12.3
  7021. * libtiff{tiff.h, tif_print.c, tif_dirinfo.c, tif_dirread.c}: Add
  7022. some TIFF/FX support in libtiff. Add the tag definitions to
  7023. tiff.h. Add the related TIFF field definitions to tif_dirinfo.c,
  7024. and also fixes an error in a comment. Adds the photometric values
  7025. to tif_print.c, and fixes a bug. These changes are by Steve
  7026. Underwood.
  7027. 2012-08-13 Frank Warmerdam <warmerdam@google.com>
  7028. * libtiff/tif_write.c: Fix bug rewriting image tiles in a
  7029. compressed file: http://trac.osgeo.org/gdal/ticket/4771
  7030. 2012-08-02 Frank Warmerdam <warmerdam@google.com>
  7031. * libtiff/tif_dirread.c: report error in case of mismatch value
  7032. counts for tags (ie. DotRange).
  7033. 2012-07-26 Tom Lane <tgl@sss.pgh.pa.us>
  7034. * libtiff/{tiffio.h, tif_dirinfo.c, libtiff.def}: Add six new
  7035. functions TIFFFieldTag(), TIFFFieldName(), TIFFFieldDataType(),
  7036. TIFFFieldPassCount(), TIFFFieldReadCount(), TIFFFieldWriteCount()
  7037. as external accessors for the opaque type TIFFField.
  7038. * tools/tiffset.c: Make tiffset use the above functions instead of
  7039. relying on library private headers.
  7040. 2012-07-19 Tom Lane <tgl@sss.pgh.pa.us>
  7041. * tools/tiff2pdf.c: Fix two places where t2p_error didn't get set
  7042. after a malloc failure. No crash risk AFAICS, but the program
  7043. might not report exit code 1 as desired. h/t mancha@mac.hush.com
  7044. 2012-07-18 Tom Lane <tgl@sss.pgh.pa.us>
  7045. * tools/tiff2pdf.c: Fail when TIFFSetDirectory() fails. This
  7046. prevents core dumps or perhaps even arbitrary code execution when
  7047. processing a corrupt input file (CVE-2012-3401).
  7048. 2012-07-06 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  7049. * test/raw_decode.c (main): Test fixes to work with IJG JPEG 7+.
  7050. IJG JPEG 7+ uses a different upsampling algorithm which produces
  7051. different numeric results.
  7052. * libtiff/tif_jpeg.c (JPEGPreDecode): Patch from Even Rouault to
  7053. work with IJG JPEG 7+.
  7054. 2012-07-04 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  7055. * test/raw_decode.c: Add changes so that test can run with build
  7056. directory outside of source directory.
  7057. 2012-07-02 Frank Warmerdam <warmerdam@google.com>
  7058. * libtiff/tif_jpeg.c: Fix handling when writing RGBA jpeg compressed
  7059. imagery (http://trac.osgeo.org/gdal/ticket/4732)
  7060. 2012-06-20 Frank Warmerdam <warmerdam@google.com>
  7061. * libtiff/tif_fax3.c: fix memory initialization of runs, only
  7062. partly done.
  7063. * libtiff/tif_pixarlog.c: Make sure tbuf is large enough for one
  7064. full "stride" past the end.
  7065. 2012-06-19 Frank Warmerdam <warmerdam@google.com>
  7066. * libtiff/tif_packbits.c: fix read past end of data buffer.
  7067. 2012-06-15 Frank Warmerdam <warmerdam@google.com>
  7068. * libtiff 4.0.2 released.
  7069. * tools/tif2pdf.c, tools/tifdump.c: avoid uninitialized variable
  7070. warnings with clang.
  7071. 2012-06-15 Tom Lane <tgl@sss.pgh.pa.us>
  7072. * tools/tiff2pdf.c: Defend against integer overflows while
  7073. calculating required buffer sizes (CVE-2012-2113).
  7074. 2012-06-12 Frank Warmerdam <warmerdam@google.com>
  7075. * libtiff/tif_print.c: Be careful about printing corrupt inknames.
  7076. * libtiff/tif_fax3.c: Ensure runs array is initialized to zeros.
  7077. 2012-06-07 Frank Warmerdam <warmerdam@google.com>
  7078. * libtiff/tif_print.c: avoid pretty printing other fields when
  7079. we don't have the proper amount and type of data or if the field
  7080. is actually autodefined.
  7081. 2012-06-05 Frank Warmerdam <warmerdam@google.com>
  7082. * libtiff/tif_tile.c, libtiff/tif_strip.c: Ensure that illegal
  7083. ycbcrsubsampling values result in a runtime error, not just an
  7084. assertion.
  7085. * tests/custom_dir.c: Add testing of EXIF and custom directory
  7086. reading and writing.
  7087. * libtiff/tif_dir.c, libtiff/tiffio.h: Add TIFFCreateCustomDirectory()
  7088. and TIFFCreateEXIFDirectory() functions.
  7089. * libtiff/tif_dir.c, tif_print.c : Remove FIELD_CUSTOM handling for
  7090. PAGENUMBER, HALFTONEHINTS, and YCBCRSUBSAMPLING. Implement DOTRANGE
  7091. differently. This is to avoid using special TIFFGetField/TIFFSetField
  7092. rules for these fields in non-image directories (like EXIF).
  7093. 2012-06-04 Frank Warmerdam <warmerdam@google.com>
  7094. * libtiff/tif_jpeg.c: Remove code for fixing up h_sampling and v_sampling
  7095. in JPEGPreDecode(). If a fixup will be done it needs to be done sooner
  7096. in JPEGFixupTagsSubsampling() or else buffer sized may be wrong.
  7097. 2012-06-01 Frank Warmerdam <warmerdam@google.com>
  7098. * tools/tiffinfo.c: Do not try to read image data in EXIF directories.
  7099. * libtiff/tif_getimage.c: added support for _SEPARATED CMYK images.
  7100. http://bugzilla.maptools.org/show_bug.cgi?id=2379
  7101. * libtiff/tif_unix.c: use strerror() to return a more specific error message
  7102. on failed open.
  7103. http://bugzilla.maptools.org/show_bug.cgi?id=2341
  7104. * libtiff/tif_jpeg.c: Fix JPEGDecodeRaw() bugs.
  7105. http://bugzilla.maptools.org/show_bug.cgi?id=2386
  7106. * tests/decode_raw.c, tests/images/quad-tile.jpg.tiff: add limited support
  7107. for testing jpeg in tiff image decoding including the "raw" decode interface.
  7108. 2012-05-31 Frank Warmerdam <warmerdam@google.com>
  7109. * libtiff/tif_jpeg.c: avoid overrunning the end of the output buffer in
  7110. JPEGDecodeRaw() - mostly likely to occur when there is confusion about
  7111. sampling values.
  7112. * libtiff/tif_read.c: Make sure tif_rawdatasize is cleared when tif_rawdata is freed.
  7113. * libtiff/tif_getimage.c: Add support for greyscale+alpha c/o Jérémie Laval.
  7114. http://bugzilla.maptools.org/show_bug.cgi?id=2398
  7115. 2012-05-29 Frank Warmerdam <warmerdam@google.com>
  7116. * libtiff/tif_dir.c: avoid using specific set/get logic to process fields in custom directories,
  7117. like EXIF directories. This fixes problems like a tag "320" existing in a custom directory getting
  7118. processed as if it were a colormap when it isn't really. Damn the wide variety of argument formulations
  7119. to get/set functions for different tags!
  7120. * libtiff/tif_dir.c: Ensure that we keep track of when tif_rawdata
  7121. is a pointer into an mmap()ed file via TIFF_BUFFERMMAP flag.
  7122. 2012-05-24 Frank Warmerdam <warmerdam@google.com>
  7123. * libtiff/tif_pixarlog.c: Allocate working buffer one word larger since we "forward
  7124. accumulate" and overwrite the end by one word in at least some cases.
  7125. 2012-05-23 Frank Warmerdam <warmerdam@google.com>
  7126. * libtiff/tif_pixarlog.c: avoid accessing out of the lookup arrays for out of range inputs.
  7127. * tools/tiffinfo.c: initialize h=0 to avoid undefined variable for degenerate files.
  7128. * libtiff/tif_ojpeg.c: if OJPEGWriteHeader() fails once do not bother trying again on
  7129. the same image.
  7130. * libtiff/tif_ojpeg.c: make things more resilient in the face of files without
  7131. stripbytecounts or stripoffsets or where loading these fails.
  7132. * libtiff/tif_print.c: be careful about whether min/max values are singular
  7133. or one per sample.
  7134. * libtiff/tif_print.c: Avoid confusion about count size when printing custom fields.
  7135. May affect things like ISOSpeedRatings.
  7136. * libtiff/tif_dir.c: avoid one byte past end of ink names reading
  7137. in some cases.
  7138. 2012-05-19 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  7139. * man/TIFFGetField.3tiff: Correct the 'count' field type in the
  7140. example for how to retrieve the value of unsupported tags.
  7141. 2012-03-30 Frank Warmerdam <warmerdam@google.com>
  7142. * tif_getimage.c: Fix size overflow (zdi-can-1221,CVE-2012-1173)
  7143. care of Tom Lane @ Red Hat.
  7144. 2012-02-18 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  7145. * libtiff 4.0.1 released.
  7146. * Update automake used to 1.11.3.
  7147. * libtiff/tiffio.h: Use double-underbar syntax in GCC printf
  7148. attribute specification to lessen the risk of accidental macro
  7149. substitution. Patch from Vincent Torri.
  7150. 2012-01-31 Frank Warmerdam <warmerdam@pobox.com>
  7151. * libtiff/tif_dir.c, libtiff/tif_dirread.c: Extra caution around
  7152. assumption tag fetching is always successful.
  7153. * libtiff/tif_jpeg.c: Extra caution for case where sp is NULL.
  7154. 2012-01-22 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  7155. * configure.ac: Add support for using library symbol versioning on
  7156. ELF systems with the GNU linker. Support is enabled via
  7157. --enable-ld-version-script. Disabled by default for now until
  7158. there is a decision for how to deploy a libtiff with versioned
  7159. symbols after libtiff 4.0.0 was already released.
  7160. 2011-12-22 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  7161. * libtiff/tif_win32.c: Eliminate some minor 64-bit warnings in
  7162. tif_win32.c. Patch by Edward Lam.
  7163. * configure.ac: Add libtiff private dependency on -llzma for
  7164. pkg-config. Patch by Mark Brand.
  7165. Updated Automake to 1.11.2.
  7166. 2011-12-21 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  7167. * libtiff 4.0.0 released.
  7168. 2011-12-08 Frank Warmerdam <warmerdam@pobox.com>
  7169. * libtiff/tif_dirread.c, libtiff/tif_read.c: more cautious checking
  7170. of _TIFFFillStriles() results (#gdal 4372)
  7171. 2011-12-07 Frank Warmerdam <warmerdam@pobox.com>
  7172. * libtiff/tif_dirread.c: fixes to deal with invalid files where
  7173. _TIFFFillStriles() fails, and we try to chop up strips (gdal #4372)
  7174. * libtiff/tif_dirread.c: fix error reporting when there is no
  7175. tag information struct and name (gdal #4373)
  7176. 2011-10-22 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  7177. * Update GNU libtool to 2.4.2.
  7178. * tools/tiffsplit.c (tiffcp): TIFFGetField count field should be
  7179. uint32 type for TIFFTAG_JPEGTABLES. Patch by Christophe
  7180. Deroulers.
  7181. 2011-06-21 Frank Warmerdam <warmerdam@pobox.com>
  7182. * libtiff/libtiff.def: Restore TIFFMergeFieldInfo.
  7183. 2011-05-31 Jim Meyering <meyering@redhat.com>
  7184. * libtiff/tif_dirread.c (TIFFFetchStripThing): Free "data" also
  7185. upon failure to allocate "resizeddata".
  7186. * tools/tiff2ps.c (PSDataBW): Zero buffer *after* checking for
  7187. allocation failure, not before.
  7188. * libtiff/tif_ojpeg.c: plug leaks on OJPEG read failure path
  7189. * tools/rgb2ycbcr.c (cvtRaster): unchecked malloc
  7190. * libtiff/tif_jpeg.c, tools/tiff2pdf.c, tools/tiff2ps.c: mark
  7191. NULL-deref and possible overflow
  7192. * tools/tiff2pdf.c: remove decl+set of set-but-not-used local, "written"
  7193. * libtiff/tif_jpeg.c (JPEGInitializeLibJPEG): Remove declaration
  7194. and set of otherwise unused local, data_is_empty.
  7195. * libtiff/tif_jpeg.c (JPEGDecodeRaw) [JPEG_LIB_MK1_OR_12BIT]:
  7196. Diagnose out-of-memory failure and return 0 rather than
  7197. dereferencing NULL.
  7198. 2011-05-24 Frank Warmerdam <warmerdam@pobox.com>
  7199. * libtiff/tif_dirread.c: produce special error message for zero tag
  7200. directories instead of error out on the malloc(0) failure.
  7201. 2011-05-16 Frank Warmerdam <warmerdam@pobox.com>
  7202. * libtiff/tif_dirinfo.c: Restore TIFFMergeFieldInfo() and
  7203. related declarations as they are in active use by libraries
  7204. such as libgeotiff, and work just fine. (#2315)
  7205. 2011-04-20 Frank Warmerdam <warmerdam@pobox.com>
  7206. * libtiff/tif_dirinfo.c,tiffio.h: Remove the obsolete
  7207. TIFFMergeFieldInfo/TIFFFindFieldInfo/TIFFFindFieldInfoByName API.
  7208. http://bugzilla.maptools.org/show_bug.cgi?id=2315
  7209. * libtiff/libtiff.def: add some missing (64bit) APIs.
  7210. http://bugzilla.maptools.org/show_bug.cgi?id=2316
  7211. 2011-04-09 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  7212. * libtiff 4.0.0beta7 released.
  7213. 2011-04-09 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  7214. * configure.ac: Should use AC_CANONICAL_HOST since host specifies
  7215. the run-time target whereas target is used to specify the final
  7216. output target if the package is a build tool (like a compiler),
  7217. which libtiff is not. Resolves libtiff bug 2307 "Use
  7218. AC_CANONICAL_HOST macro".
  7219. 2011-04-02 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  7220. * configure.ac: Support configuring TIFF_INT64_FORMAT and
  7221. TIFF_UINT64_FORMAT appropriately for MinGW32.
  7222. * tools/tiffdump.c (ReadDirectory): MinGW32 needs to use WIN32
  7223. printf conventions for 64-bit types because it uses the WIN32 CRT.
  7224. * libtiff/{tif_dumpmode.c,tif_luv.c,tif_lzw.c,tif_print.c,
  7225. tif_read.c,tif_strip.c,tif_thunder.c}: MinGW32 needs to use WIN32
  7226. printf conventions for 64-bit types because it uses the WIN32 CRT.
  7227. * tools/tiff2pdf.c (t2p_write_pdf_string): Fix printf syntax not
  7228. understood by WIN32 CRT.
  7229. * libtiff/tif_ojpeg.c: Fixes to compile with MinGW32 GCC.
  7230. * tools/fax2ps.c (main): Use tmpfile() rather than mkstemp() since
  7231. it is much more portable. Tmpfile is included in ISO/IEC
  7232. 9899:1990 and the WIN32 CRT.
  7233. 2011-03-26 Frank Warmerdam <warmerdam@pobox.com>
  7234. * tools/tiffset.c: add -d and -sd switches to allow operation on
  7235. a particular directory, not just the first (jef).
  7236. 2011-03-21 Frank Warmerdam <warmerdam@pobox.com>
  7237. * libtiff/tif_thunder.c: Correct potential buffer overflow with
  7238. thunder encoded files with wrong bitspersample set. The libtiff
  7239. development team would like to thank Marin Barbella and TippingPoint's
  7240. Zero Day Initiative for reporting this vulnerability (ZDI-CAN-1004,
  7241. CVE-2011-1167).
  7242. http://bugzilla.maptools.org/show_bug.cgi?id=2300
  7243. 2011-03-10 Frank Warmerdam <warmerdam@pobox.com>
  7244. * libtiff/tif_fax3.h: Fix to last change allowing zero length
  7245. runs at the start of a scanline - needed for legal cases.
  7246. 2011-03-02 Frank Warmerdam <warmerdam@pobox.com>
  7247. * libtiff/tif_fax3.h: Protect against a fax VL(n) codeword commanding
  7248. a move left. Without this, a malicious input file can generate an
  7249. indefinitely large series of runs without a0 ever reaching the right
  7250. margin, thus overrunning our buffer of run lengths. Per CVE-2011-0192.
  7251. This is a modified version of a patch proposed by Drew Yao of Apple
  7252. Product Security. It adds an unexpected() report, and disallows the
  7253. equality case, since emitting a run without increasing a0 still allows
  7254. buffer overrun.
  7255. 2011-02-23 Frank Warmerdam <warmerdam@pobox.com>
  7256. * libtiff/tif_jpeg.c: avoid divide by zero in degenerate case (#2296)
  7257. * tools/tiff2rgba.c: close source file on error to make leak
  7258. detection easier.
  7259. * libtiff/tif_getimage.c: avoid leaks if TIFFRGBAImageBegin() fails.
  7260. http://bugzilla.maptools.org/show_bug.cgi?id=2295
  7261. 2011-02-22 Frank Warmerdam <warmerdam@pobox.com>
  7262. * libtiff/tif_lzma.c: Maintain tif_rawcc/tif_rawcp (CHUNKY_STRING_READ
  7263. _SUPPORT)
  7264. 2011-02-18 Frank Warmerdam <warmerdam@pobox.com>
  7265. * configure.ac, configure: Added support for --enable-chunky-strip-read
  7266. configure option to enable the experimental feature from a couple
  7267. months ago for reading big strips in chunks.
  7268. * configure.ac, tif_read.c, tif_readdir.c, tif_dir.h, tiffiop.h,
  7269. tif_write.c, tif_print.c, tif_jpeg.c, tif_dirwrite.c, tif_write.c:
  7270. Implement optional support for deferring the load of strip/tile
  7271. offset and size tags for optimized scanning of directories. Enabled
  7272. with the --enable-defer-strile-load configure option (DEFER_STRILE_LOAD
  7273. #define in tif_config.h).
  7274. 2011-02-11 Frank Warmerdam <warmerdam@pobox.com>
  7275. * libtiff/tif_print.c: remove unused variable.
  7276. 2011-02-09 Frank Warmerdam <warmerdam@pobox.com>
  7277. * libtiff/tif_win32.c: avoid error/warning buffer overrun problem
  7278. with non-console (popup message) builds on win32.
  7279. http://bugzilla.maptools.org/show_bug.cgi?id=2293
  7280. 2011-01-24 Olivier Paquet <olivier.paquet@gmail.com>
  7281. * libtiff/{tif_dir.{h,c}, tif_dirinfo.c, tif_dirread.c, tif_dirwrite.c,
  7282. tif_print.c, tiff.h, tiffiop.h} : Added support for
  7283. TIFFTAG_SMINSAMPLEVALUE and TIFFTAG_SMAXSAMPLEVALUE to have different
  7284. values for each sample. Presents the min/max of all samples by default for
  7285. compatibility. TIFFSetField/TIFFGetField can be made to handle those tags
  7286. as arrays by changing the new TIFFTAG_PERSAMPLE pseudo tag.
  7287. http://www.asmail.be/msg0055458208.html
  7288. 2011-01-06 Frank Warmerdam <warmerdam@pobox.com>
  7289. * libtiff/tif_pixarlog.c: Note that tif_rawcc/tif_rawcp are not
  7290. maintained.
  7291. * libtiff/tif_zip.c: Maintain tif_rawcc/tif_rawcp when decoding
  7292. for CHUNKY_STRIP_READ_SUPPORT.
  7293. * libtiff/tif_jpeg.c: ensure that rawcc and rawcp are maintained
  7294. during JPEGPreDecode and JPEGDecode calls.
  7295. * libtiff/tif_read.c: larger read ahead for CHUNKY_STRIP_READ_SUPPORT,
  7296. as compression formats like JPEG keep 16 lines interleaved in a sense
  7297. and might need to touch quite a bit of data.
  7298. http://trac.osgeo.org/gdal/ticket/3894
  7299. 2011-01-03 Lee Howard <faxguy@howardsilvan.com>
  7300. * libtiff/tif_jpeg.c: Fix regressions with 2 and 3 band images
  7301. caused by commit on 2010-12-14. Submitted by e-mail from
  7302. Even Rouault <even.rouault@mines-paris.org>
  7303. 2010-12-31 Olivier Paquet <olivier.paquet@gmail.com>
  7304. * libtiff/tif_dirwrite.c: Fixed writing of TIFFTAG_REFERENCEBLACKWHITE.
  7305. http://bugzilla.maptools.org/show_bug.cgi?id=2266
  7306. 2010-12-23 Andrey Kiselev <dron@ak4719.spb.edu>
  7307. * tools/tiffcp.c, man/tiffcp.1: Added support for specifying the
  7308. compression level parameter (preset) for Deflate and LZMA encoders,
  7309. e.g "-c lzma:p1" or "-c zip:p9".
  7310. * libtiff/tif_lzma.c: Properly set the LZMA2 compression level
  7311. (preset) in LZMAVSetField().
  7312. 2010-12-18 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  7313. * libtiff/Makefile.am (libtiff_la_SOURCES): Added tif_lzma.c to
  7314. Makefile.
  7315. 2010-12-14 Andrey Kiselev <dron@ak4719.spb.edu>
  7316. * configure.ac, libtiff/{tif_codec.c, tif_config.h.in, tiff.h,
  7317. tiffiop.h, tif_lzma.c}, tools/tiffcp.c, man/tiffcp.1: Implement a new
  7318. TIFF compression scheme LZMA reserving a new value 34925 for
  7319. Compression tag. As per
  7320. bug http://bugzilla.maptools.org/show_bug.cgi?id=2221
  7321. 2010-12-14 Lee Howard <faxguy@howardsilvan.com>
  7322. * libtiff/tif_dirread.c: tolerate some cases where
  7323. FIELD_COLORMAP is missing
  7324. http://bugzilla.maptools.org/show_bug.cgi?id=2189
  7325. 2010-12-14 Lee Howard <faxguy@howardsilvan.com>
  7326. * libtiff/tif_read.c: change read_ahead to tmsize_t
  7327. http://bugzilla.maptools.org/show_bug.cgi?id=2222
  7328. 2010-12-14 Lee Howard <faxguy@howardsilvan.com>
  7329. * configure.ac, libtiff/Makefile.am: Build tif_win32.c on
  7330. Windows except on Cygwin
  7331. http://bugzilla.maptools.org/show_bug.cgi?id=2224
  7332. 2010-12-14 Lee Howard <faxguy@howardsilvan.com>
  7333. * tools/gif2tiff.c: fix buffer overrun
  7334. http://bugzilla.maptools.org/show_bug.cgi?id=2270
  7335. 2010-12-14 Lee Howard <faxguy@howardsilvan.com>
  7336. * libtiff/tif_jpeg.c: reduce usage of JCS_UNKNOWN in order
  7337. to improve compatibility with various viewers
  7338. submitted by e-mail from Dwight Kelly <dkelly@apago.com>
  7339. 2010-12-13 Lee Howard <faxguy@howardsilvan.com>
  7340. * tools/fax2ps.c: be consistent with page-numbering
  7341. http://bugzilla.maptools.org/show_bug.cgi?id=2225
  7342. 2010-12-13 Lee Howard <faxguy@howardsilvan.com>
  7343. * libtiff/tif_color.c: prevent crash in handling bad TIFFs
  7344. resolves CVE-2010-2595
  7345. http://bugzilla.maptools.org/show_bug.cgi?id=2208
  7346. 2010-12-13 Lee Howard <faxguy@howardsilvan.com>
  7347. * tools/tiffcrop.c: new release by Richard Nolde
  7348. http://bugzilla.maptools.org/show_bug.cgi?id=2004
  7349. 2010-12-12 Lee Howard <faxguy@howardsilvan.com>
  7350. * tools/tiff2pdf.c: fix colors for images with RGBA
  7351. interleaved data
  7352. http://bugzilla.maptools.org/show_bug.cgi?id=2250
  7353. 2010-12-12 Lee Howard <faxguy@howardsilvan.com>
  7354. * libtiff/tif_dirread.c: fix for Zeiss LSM and Canon CR2 files
  7355. http://bugzilla.maptools.org/show_bug.cgi?id=2164
  7356. 2010-12-11 Lee Howard <faxguy@howardsilvan.com>
  7357. * tools/tiff2pdf.c: remove invalid duplication for Lab
  7358. http://bugzilla.maptools.org/show_bug.cgi?id=2162
  7359. 2010-12-11 Lee Howard <faxguy@howardsilvan.com>
  7360. * libtiff/tif_jpeg.c: fix use of clumplines calculation
  7361. http://bugzilla.maptools.org/show_bug.cgi?id=2149
  7362. 2010-12-11 Lee Howard <faxguy@howardsilvan.com>
  7363. * tools/fax2ps.c: replace unsafe tmpfile() with mkstemp()
  7364. http://bugzilla.maptools.org/show_bug.cgi?id=2118
  7365. 2010-12-11 Lee Howard <faxguy@howardsilvan.com>
  7366. * libtiff/tif_ojpeg.c, libtiff/tif_pixarlog.c,
  7367. libtiff/tif_zip.c: fix build errors for VC6
  7368. http://bugzilla.maptools.org/show_bug.cgi?id=2105
  7369. 2010-12-11 Lee Howard <faxguy@howardsilvan.com>
  7370. * libtiff/tif_stream.cxx: warnings cleanup
  7371. http://bugzilla.maptools.org/show_bug.cgi?id=2091
  7372. * libtiff/tif_dirread.c: warnings cleanup
  7373. http://bugzilla.maptools.org/show_bug.cgi?id=2092
  7374. 2010-12-11 Lee Howard <faxguy@howardsilvan.com>
  7375. * tools/tiff2pdf.c: add fill-page option
  7376. http://bugzilla.maptools.org/show_bug.cgi?id=2051
  7377. 2010-12-11 Lee Howard <faxguy@howardsilvan.com>
  7378. * libtiff/tif_dirread.c: modify warnings
  7379. http://bugzilla.maptools.org/show_bug.cgi?id=2016
  7380. 2010-12-11 Lee Howard <faxguy@howardsilvan.com>
  7381. * libtiff/tif_ojpeg.c: fix buffer overflow on problem data
  7382. http://bugzilla.maptools.org/show_bug.cgi?id=1999
  7383. 2010-12-11 Lee Howard <faxguy@howardsilvan.com>
  7384. * tools/tiffinfoce.c: strip byte counts are uint64* now
  7385. 2010-12-11 Lee Howard <faxguy@howardsilvan.com>
  7386. * libtiff/tif_ojpeg.c: fix crash when reading a TIFF with a zero
  7387. or missing byte-count tag
  7388. * tools/tiffsplit.c: abort when reading a TIFF without a byte-count
  7389. per http://bugzilla.maptools.org/show_bug.cgi?id=1996
  7390. 2010-12-08 Lee Howard <faxguy@howardsilvan.com>
  7391. * libtiff/tif_dirread.c: fix crash when reading a badly-constructed
  7392. TIFF per http://bugzilla.maptools.org/show_bug.cgi?id=1994
  7393. 2010-12-06 Lee Howard <faxguy@howardsilvan.com>
  7394. * libtiff/tif_open.c: Fix mode check before opening a file.
  7395. http://bugzilla.maptools.org/show_bug.cgi?id=1906
  7396. 2010-11-27 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  7397. * libtiff-4.pc.in: Added libtiff pkg-config .pc file support.
  7398. Patch by Vincent Torri.
  7399. 2010-10-21 Frank Warmerdam <warmerdam@pobox.com>
  7400. * tools/tiffinfo.c: avoid direct reference to _TIFFerrorHandler.
  7401. * libtiff/tif_config.vc.h: define snprintf to _snprintf for tiff2pdf.
  7402. * libtiff/libtiff.def: export _TIFFCheckMalloc for tools.
  7403. 2010-09-25 Lee Howard <faxguy@howardsilvan.com>
  7404. * tools/tiff2ps.c: improvements and enhancements from Richard Nolde
  7405. with additional command line options for Document Title,
  7406. Document Creator, and Page Orientation
  7407. 2010-07-13 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  7408. * tools/tiffcrop.c: Patch from Richard Nolde to avoid a
  7409. potentially unterminated buffer due to using an exceptionally long
  7410. file name.
  7411. 2010-07-08 Andrey Kiselev <dron@ak4719.spb.edu>
  7412. * tools/tiff2pdf.c: Fixed ID buffer filling in
  7413. t2p_write_pdf_trailer(), thanks to Dmitry V. Levin.
  7414. 2010-07-07 Andrey Kiselev <dron@ak4719.spb.edu>
  7415. * libtiff/tif_dirread.c: Really reset the tag count in CheckDirCount()
  7416. to expected value as the warning message suggests. As per bug
  7417. http://bugzilla.maptools.org/show_bug.cgi?id=1963
  7418. 2010-07-06 Andrey Kiselev <dron@ak4719.spb.edu>
  7419. * tools/tiffset.c: Properly handle TIFFTAG_PAGENUMBER,
  7420. TIFFTAG_HALFTONEHINTS, TIFFTAG_YCBCRSUBSAMPLING, TIFFTAG_DOTRANGE
  7421. which should be set by value.
  7422. * libtiff/tif_dirinfo.c: Don't use assertions in _TIFFFieldWithTag()
  7423. and _TIFFFieldWithName() if the tag is not found in the tag table.
  7424. This should be normal situation and returned NULL value should be
  7425. properly handled by the caller.
  7426. 2010-07-02 Andrey Kiselev <dron@ak4719.spb.edu>
  7427. * libtiff/tif_getimage.c: Avoid wrong math du to the signed/unsigned
  7428. integer type conversions. As per bug
  7429. http://bugzilla.maptools.org/show_bug.cgi?id=2207
  7430. * tools/{tiff2bw.c, thumbnail.c, pal2rgb.c}: Fix the count for
  7431. WhitePoint tag as per bug
  7432. http://bugzilla.maptools.org/show_bug.cgi?id=2042
  7433. * libtiff/tif_getimage.c: Check the number of samples per pixel when
  7434. working with YCbCr image in PickContigCase(). As per bug
  7435. http://bugzilla.maptools.org/show_bug.cgi?id=2216
  7436. * libtiff/tif_dir.c: Set the bogus post-decoding hook when processing
  7437. TIFFTAG_BITSPERSAMPLE in _TIFFVSetField() for the case of 8 bit when
  7438. we don't need any post-processing. That helps to reset the hook if we
  7439. previously set this field to some other value and the hook was
  7440. initialized accordingly. As per bug
  7441. http://bugzilla.maptools.org/show_bug.cgi?id=2035
  7442. 2010-07-01 Andrey Kiselev <dron@ak4719.spb.edu>
  7443. * tools/tiffgt.c: Properly check the raster buffer allocations for
  7444. integer overflows. As per bug
  7445. http://bugzilla.maptools.org/show_bug.cgi?id=2108
  7446. * m4/acinclude.m4: Update GL/GLU/GLUt/Pthread macros from the
  7447. upstream.
  7448. * libtiff/{tif_aux.c, tif_strip.c, tif_tile.c, tiffiop.h}: Move
  7449. multiply_32() and multiply_64() functions into tif_aux.c file and
  7450. rename them into _TIFFMultiply32() and _TIFFMultiply64() respectively.
  7451. 2010-06-30 Andrey Kiselev <dron@ak4719.spb.edu>
  7452. * tools/tiff2pdf.c: Better generation of ID field in
  7453. t2p_write_pdf_trailer(). Get rid of GCC aliasing warnings.
  7454. * tools/tiff2pdf.c: Fixed computation of the tile buffer size when
  7455. converting JPEG encoded tiles.
  7456. * tools/tiff2pdf.c: Better handling of string fields, use static
  7457. string buffers instead of dynamically allocated, use strncpy() instead
  7458. of strcpy(), control the string lengths.
  7459. 2010-06-25 Andrey Kiselev <dron@ak4719.spb.edu>
  7460. * tools/tiffcp.c: Initialize buffer arrays with zero to avoid
  7461. referencing to uninitialized memory in some cases (e.g. when tile size
  7462. set bigger than the image size).
  7463. 2010-06-15 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  7464. * tools/tiffcrop.c: Patch from Richard Nolde. Reject YCbCr
  7465. subsampled data since tiffcrop currently doesn't support it. Fix
  7466. JPEG support.
  7467. 2010-06-13 Frank Warmerdam <warmerdam@pobox.com>
  7468. * libtiff/tif_dirinfo.c: Fix invocation of tag compare function (#2201)
  7469. * tools/tiff2pdf.c: Fix assorted bugs in tiff2pdf: missing "return"
  7470. in t2p_read_tiff_size() causes t2p->tiff_datasize to be set entirely
  7471. wrong for COMPRESSION_JPEG case, resulting in memory stomp if actual
  7472. size is larger. Also, there are a bunch of places that try to
  7473. memset() a malloc'd buffer before checking for malloc failure, which
  7474. would result in core dump if there actually were a failure. (#2211)
  7475. 2010-06-11 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  7476. * libtiff/tiffiop.h (TIFFSafeMultiply): Need more castings to
  7477. avoid compiler warnings if parameter types are not sign
  7478. consistent.
  7479. * libtiff 4.0.0alpha6 released.
  7480. * tools/tiffcrop.c: Applied patch from Richard Nolde: Corrected
  7481. European page size dimensions. Added an option to allow the user
  7482. to specify a custom page size on the command line. Fix the case
  7483. where a page size specified with a fractional part was being
  7484. coerced to an integer by retyping the variables that define the
  7485. paper size.
  7486. * html/index.html: Update for the 3.9.3 release.
  7487. * tools/tiffcp.c (tiffcp): Applied Tom Lane's patch to reject
  7488. YCbCr subsampled data since tiffcp currently doesn't support it.
  7489. http://bugzilla.maptools.org/show_bug.cgi?id=2097
  7490. * Update libtool to version 2.2.10.
  7491. 2010-06-10 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  7492. * libtiff/tiffiop.h (TIFFSafeMultiply): Work properly if
  7493. multiplier is zero.
  7494. 2010-06-09 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  7495. * libtiff/tif_fax3.c (Fax3SetupState): Yesterday's fix for
  7496. CVE-2010-1411 was not complete.
  7497. * libtiff/tiffiop.h (TIFFSafeMultiply): New macro to safely
  7498. multiply two integers. Returns zero if there is an integer
  7499. overflow.
  7500. * tools/tiffcp.c (main): tiffcp should not leak memory if an error
  7501. is reported when reading the input file.
  7502. 2010-06-08 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  7503. * Update libtool to version 2.2.8.
  7504. * libtiff/tif_fax3.c (Fax3SetupState): Avoid under-allocation of
  7505. buffer due to integer overflow in TIFFroundup() and several other
  7506. potential overflows. In conjunction with the fix to TIFFhowmany(),
  7507. fixes CVE-2010-1411.
  7508. * libtiff/tiffiop.h (TIFFhowmany): Return zero if parameters would
  7509. result in an integer overflow. This causes TIFFroundup() to also
  7510. return zero if there would be an integer overflow.
  7511. * contrib: Add an emacs formatting mode footer to all source files
  7512. so that emacs can be effectively used.
  7513. 2010-06-03 Oliver Chen Feng <scip8183@gmail.com>
  7514. * libtiff/tools/tiffcp.c: add a new option -x to force merged tiff
  7515. file PAGENUMBER value in sequence for users who care the page
  7516. sequence, this will also prevent tiff2pdf from creating pdf file from
  7517. the merged tiff file with wrong page sequence.
  7518. 2010-05-08 Olivier Paquet <olivier.paquet@gmail.com>
  7519. * libtiff/tif_dirread.c: Restored TIFFReadDirEntryFloat function in order
  7520. to add missing TIFF_SETGET_FLOAT case to TIFFFetchNormalTag.
  7521. * libtiff/tif_dirinfo.c: Use correct set_field_type for
  7522. TIFFTAG_PIXAR_FOVCOT so it is readable again (regression from 3.9.2).
  7523. http://bugzilla.maptools.org/show_bug.cgi?id=2192
  7524. 2010-05-07 Frank Warmerdam <warmerdam@pobox.com>
  7525. * libtiff/tif_jpeg.c: Ensure that quality is always set in
  7526. JPEGPreEncode(), not just when we want to output local tables.
  7527. Otherwise the quality used during compression may not be right and
  7528. might not match the tables in the tables tag. This bug only occurs
  7529. when seeking between directories in the midst of writing blocks.
  7530. http://trac.osgeo.org/gdal/ticket/3539
  7531. 2010-05-06 Andrey Kiselev <dron@ak4719.spb.edu>
  7532. * html/man/TIFFGetField.3tiff.html, html/man/TIFFSetField.3tiff.html:
  7533. Regenerated from the source.
  7534. 2010-05-05 Olivier Paquet <olivier.paquet@gmail.com>
  7535. * libtiff/tif_print.c: Fixed printing of TIFFTAG_REFERENCEBLACKWHITE which
  7536. had stopped working. Also made it always print 6 floats instead of
  7537. 2*SamplesPerPixel.
  7538. http://bugzilla.maptools.org/show_bug.cgi?id=2191
  7539. http://bugzilla.maptools.org/show_bug.cgi?id=2186
  7540. * man/TIFFGetField.3tiff, man/TIFFSetField.3tiff: Fixed doc to reflect the
  7541. fact that libtiff considers TIFFTAG_REFERENCEBLACKWHITE to be 6 floats.
  7542. 2010-05-05 Frank Warmerdam <warmerdam@pobox.com>
  7543. * libtiff/tif_jpeg.c: Fix to use memcmp(), not memcpy() when checking
  7544. if the jpeg table was written. This is a fix for the last fix on 04-21.
  7545. 2010-04-21 Frank Warmerdam <warmerdam@pobox.com>
  7546. * libtiff/tif_jpeg.c: avoid preparing jpeg tables every time
  7547. JPEGSetupEncode() is called if the tables already seem to be
  7548. established. This prevents spurious updates and rewriting of
  7549. directories with jpegtables when doing updates to existing images.
  7550. http://trac.osgeo.org/gdal/ticket/3539
  7551. 2010-04-20 Olivier Paquet <olivier.paquet@gmail.com>
  7552. * libtiff/tif_dirinfo.c: Use correct set_field_type for
  7553. TIFFTAG_PIXAR_IMAGEFULLWIDTH, TIFFTAG_PIXAR_IMAGEFULLLENGTH,
  7554. TIFFTAG_PIXAR_MATRIX_WORLDTOSCREEN and TIFFTAG_PIXAR_MATRIX_WORLDTOCAMERA.
  7555. They were unreadable with TIFF_SETGET_UNDEFINED, a regression from 3.9.2.
  7556. http://bugzilla.maptools.org/show_bug.cgi?id=2139
  7557. 2010-04-10 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  7558. * libtiff/tif_dir.c (_TIFFVSetField): Add a special error case for
  7559. when the tag count value is zero. Error handling is still a
  7560. regression since in 3.9.2, empty tags are skipped (with a warning)
  7561. rather than returning a hard error and refusing to read the file.
  7562. * tools/ppm2tiff.c (main): While case for parsing comment line
  7563. requires extra parenthesis to work as expected. Reported by
  7564. Thomas Sinclair.
  7565. 2010-04-02 Frank Warmerdam <warmerdam@pobox.com>
  7566. * libtiff/tif_read.c (primarily): Add support for
  7567. CHUNKY_STRIP_READ_SUPPORT where large strips are
  7568. read in chunks for applications using TIFFReadScanline().
  7569. This is intended to make it more practical work with very
  7570. large compressed one-strip files. Feature is off by default.
  7571. Enable by defining CHUNK_STRIP_READ_SUPPORT as a macro.
  7572. http://trac.osgeo.org/gdal/ticket/3514
  7573. 2010-03-31 Frank Warmerdam <warmerdam@pobox.com>
  7574. * libtiff/tif_flush.c: Use TIFFRewriteDirectory() when flushing
  7575. directories so previously placed directories will be migrated to
  7576. the end of file if needed.
  7577. 2010-03-30 Frank Warmerdam <warmerdam@pobox.com>
  7578. * libtiff/tif_lzw.c: change type of dec_bitsleft field to uint64
  7579. to support operating on strips/tiles of more than 256MB.
  7580. http://trac.osgeo.org/gdal/ticket/3512
  7581. 2010-03-10 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  7582. * libtiff/tif_aux.c (_TIFFCheckRealloc): Improve error message so
  7583. that it is clearly a memory allocation error message, and also
  7584. includes the size of the allocation request.
  7585. 2010-02-22 Lee Howard <faxguy@howardsilvan.com>
  7586. * libtiff/tif_jpeg.c: Do not generate a JPEGTables tag when creating
  7587. the JPEG TIFF as is is not required in order to prevent it from
  7588. being unused and filled with invalid data. (Leave it to be
  7589. generated by later activity.)
  7590. http://bugzilla.maptools.org/show_bug.cgi?id=2135
  7591. * tools/tiff2pdf.c: Write the JPEG SOI headers into the TIFF strip
  7592. data rather than skipping them. This fixes the ability to view in
  7593. Acrobat Reader, Evince, and Ghostscript.
  7594. http://bugzilla.maptools.org/show_bug.cgi?id=2135
  7595. * libtiff/tif_fax3.c: Don't return error on badly-terminated MMR
  7596. strips.
  7597. http://bugzilla.maptools.org/show_bug.cgi?id=2029
  7598. 2009-12-03 Frank Warmerdam <warmerdam@pobox.com>
  7599. * libtiff/tif_jpeg.c: Made JPEGDecodeRaw() check for buffer overruns.
  7600. Made so that when working with downsampled images a stub function
  7601. reporting an error is used for tif_decoderow. We cannot meaningfully
  7602. support reading scanlines in this situation. (#1936)
  7603. * libtiff/tif_jpeg.c: Ensure that tif_scanlinesize is computed after
  7604. resetting of the upsampling values (gdal:#3259).
  7605. http://bugzilla.maptools.org/show_bug.cgi?id=1936
  7606. 2009-11-30 Frank Warmerdam <warmerdam@pobox.com>
  7607. * contrib/dbs/tiff-grayscale.c, contrib/tif-palette.c,
  7608. tools/ras2tiff.c: Fix resource leaks on error.
  7609. http://bugzilla.maptools.org/show_bug.cgi?id=2121
  7610. * libtiff/tif_{aux.c,dir.c,dir.h,dirinfo.c}: Return to handling
  7611. TIFFTAG_REFERENCEBLACKWHITE as a field in the TIFF directory instead
  7612. of as a custom(generic) field to avoid a potential reentrancy problem.
  7613. http://bugzilla.maptools.org/show_bug.cgi?id=2125
  7614. * libtiff/tif_color.c, libtiff/tif_getimage.c, libtiff/tiffio.h,
  7615. man/TIFFcolor.3tiff: Make TIFFDisplay argument in TIFFCIELabToRGBInit
  7616. const, and display_sRGB static and const.
  7617. http://bugzilla.maptools.org/show_bug.cgi?id=2124
  7618. 2009-11-04 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  7619. * libtiff 4.0.0alpha5 released.
  7620. 2009-11-03 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  7621. * tools/tiffcrop.c: Updated tiffcrop from Richard Nolde. This
  7622. version has undergone substantial testing with arbitrary sample
  7623. bit depths. Also eliminates GCC compilation warnings.
  7624. 2009-11-02 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  7625. * port/libport.h: Add extern declarations for getopt standard
  7626. globals.
  7627. 2009-10-31 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  7628. * libtiff/tif_lzw.c (LZWDecode, LZWDecodeCompat): Fix warnings
  7629. noticed in 64-bit build of libtiff with Visual Studio 2005.
  7630. Resolves "Bug 2067 - Visual Studio 2005 64-bit warnings in
  7631. tif_lzw.c", http://bugzilla.maptools.org/show_bug.cgi?id=2067
  7632. * libtiff/tif_pixarlog.c (PixarLogEncode): Fix non-important
  7633. warning noticed in Visual Studio 2005 build. Resolves "Bug 2068 -
  7634. Visual Studio 2005 64-bit warning in tif_pixarlog.c",
  7635. http://bugzilla.maptools.org/show_bug.cgi?id=2068
  7636. 2009-10-29 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  7637. * libtiff/tif_dirread.c: Eliminate GCC "dereferencing type-punned
  7638. pointer" warnings.
  7639. 2009-10-28 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  7640. * html/tools.html: Add manual page links, and a summary
  7641. description of tiffcrop.
  7642. 2009-10-07 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  7643. * configure.ac: x86_64 should use the same fill order as i386.
  7644. 2009-09-24 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  7645. * tools/tiffcrop.c, man/tiffcrop.1: New tiffcrop from Richard
  7646. Nolde. Major updates to add significant functionality for reading
  7647. and writing tile based images with bit depths not a multiple of 8
  7648. which cannot be handled by tiffcp.
  7649. 2009-09-03 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  7650. * libtiff/tif_ojpeg.c (OJPEGWriteHeaderInfo): IJG JPEG 7 needs
  7651. do_fancy_upsampling=FALSE in order to read raw data. Resolves
  7652. "Bug 2090 - OJPEG crash with libjpeg v7".
  7653. http://bugzilla.maptools.org/show_bug.cgi?id=2090
  7654. 2009-09-03 Frank Warmerdam <warmerdam@pobox.com>
  7655. * libtiff/tif_getimage.c: Fixed error recognition handling in RGBA
  7656. interface when stoponerror is set.
  7657. http://bugzilla.maptools.org/show_bug.cgi?id=2071
  7658. 2009-08-30 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  7659. * tools/{tiffcrop.c,tiffgt.c}: Applied patch from Oden Eriksson to
  7660. fix build with gcc when using the "-Wformat
  7661. -Werror=format-security" flags.
  7662. 2009-08-29 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  7663. * test/{bmp2tiff_palette.sh, bmp2tiff_rgb.sh, gif2tiff.sh,
  7664. ppm2tiff_pbm.sh, ppm2tiff_pgm.sh, ppm2tiff_ppm.sh}: Additional
  7665. utilities tests.
  7666. 2009-08-28 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  7667. * tools/tiffinfo.c: tiffinfo should return error status to the
  7668. caller. Register a private error callback to accomplish that.
  7669. * test/Makefile.am (TIFFIMAGES): Add test images in BMP, GIF, and
  7670. PNM formats so that we will be able to test more of the tools.
  7671. While adding these test images I notice that bmp2tiff and gif2tiff
  7672. only support ancient versions of their respective formats.
  7673. 2009-08-27 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  7674. * libtiff 4.0.0alpha4 released.
  7675. * HOWTO-RELEASE: Improved release instructions.
  7676. 2009-08-24 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  7677. * man/{TIFFClose.3tiff,raw2tiff.1,tiffcmp.1,tiffsplit.1}: Applied
  7678. fixes for "Bug 2023 - nroff errors in manual pages".
  7679. http://bugzilla.maptools.org/show_bug.cgi?id=2023
  7680. * tools/{rgb2ycbcr.c, tiff2rgba.c}: Applied fixes for "Bug 2079 -
  7681. CVE-2009-2347 libtiff: integer overflows in various inter-color
  7682. space conversion tools".
  7683. http://bugzilla.maptools.org/show_bug.cgi?id=2079
  7684. * libtiff/tif_print.c (TIFFPrintDirectory): Apply fix from Jay
  7685. Berkenbilt for "Bug 2024 - possible null pointer dereference with
  7686. one-line fix".
  7687. http://bugzilla.maptools.org/show_bug.cgi?id=2024
  7688. * libtiff/tif_dirread.c (TIFFReadCustomDirectory): Apply patch
  7689. from Jay Berkenbilt for "Bug 1895 - logic error in tif_dirread.c:
  7690. segfault after setting tdir_tag = IGNORE".
  7691. http://bugzilla.maptools.org/show_bug.cgi?id=1895
  7692. 2009-08-23 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  7693. * test/Makefile.am, test/tiffcrop*.sh: Split previously existing
  7694. tiffcrop.sh into a collection of many specific tests. Re-wrote
  7695. all of the existing tests to be based on some simple shell
  7696. functions. Make distcheck works again.
  7697. Export certain variables (MAKE, MAKEFLAGS, MEMCHECK) to tests and
  7698. added 'memcheck' and 'ptrcheck' targets to make it easy to run the
  7699. tests under valgrind.
  7700. 2009-08-21 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  7701. * test/tiffcp-logluv.sh: Fix test so that it works with a VPATH
  7702. build.
  7703. * test/Makefile.am (AUTOMAKE_OPTIONS): Colorized tests was not
  7704. actually activated since it needed to be enabled in this
  7705. Makefile.am. Also activated parallel-tests mode since it offers
  7706. useful features such as per-test .log files and a summary test
  7707. report .log file.
  7708. 2009-08-20 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  7709. * configure.ac: Updated autotools. Autoconf 2.64, Automake 1.11,
  7710. libtool 2.2.6. Enabled support for silent build rules
  7711. (--enable-silent-rules or 'make V=0') and colorized tests.
  7712. * html/{index.html, v3.9.0.html}: Update for 3.9.0 release.
  7713. 2009-06-30 Frank Warmerdam <warmerdam@pobox.com>
  7714. * tests/tiffcp-logluv.sh: minimal testing of sgilog compression.
  7715. * tools/tiffcp.c: add -c sgilog support.
  7716. * libtiff/tif_luv.c: correct return codes from encoderow to be
  7717. 1 on success instead of zero.
  7718. http://bugzilla.maptools.org/show_bug.cgi?id=2069
  7719. * libtiff/tif_lzw.c: back out patch from #2065 and apply patch from
  7720. #1085 for a better underflow fix that errors properly.
  7721. http://bugzilla.maptools.org/show_bug.cgi?id=2065
  7722. http://bugzilla.maptools.org/show_bug.cgi?id=1985
  7723. 2009-06-26 Frank Warmerdam <warmerdam@pobox.com>
  7724. * libtiff/tif_strip.c: Remove an inappropriate assertion that often
  7725. fails on oddly sized 12bit jpeg compressed ycbcr images.
  7726. 2009-06-22 Frank Warmerdam <warmerdam@pobox.com>
  7727. * libtiff/tif_lzw.c: Fix buffer underflow bug.
  7728. http://bugzilla.maptools.org/show_bug.cgi?id=2065
  7729. 2009-06-21 Frank Warmerdam <warmerdam@pobox.com>
  7730. * configure.ac, libtiff/tif_jpeg.c, libtiff/tif_jpeg_12.c: add support
  7731. for dual mode 8/12 bit jpeg support.
  7732. 2009-06-03 Frank Warmerdam <warmerdam@pobox.com>
  7733. * libtiff/tif_write.c: do not override the planar configuration to be
  7734. contig for one sample files if planar configuration is already set.
  7735. http://bugzilla.maptools.org/show_bug.cgi?id=2057
  7736. 2009-06-02 Frank Warmerdam <warmerdam@pobox.com>
  7737. * libtiff/libtiff.def: Add TIFFUnsetField.
  7738. 2009-05-03 Frank Warmerdam <warmerdam@pobox.com>
  7739. * libtiff/{tif_jpeg.c,tif_ojpeg.c,tif_getimage.c}: Fixed various
  7740. error reports to use "%s" as format string.
  7741. http://trac.osgeo.org/gdal/ticket/2976
  7742. 2009-03-12 Frank Warmerdam <warmerdam@pobox.com>
  7743. * libtiff/{tif_fax3.c,tif_jpeg.c,tif_ojpeg.c}: Fix printdir chaining
  7744. for some codecs (#2020).
  7745. 2009-02-12 Frank Warmerdam <warmerdam@pobox.com>
  7746. * libtiff/tif_luv.c: Fix handling of tiled logluv images.
  7747. http://bugzilla.maptools.org/show_bug.cgi?id=2005
  7748. 2009-02-09 Frank Warmerdam <warmerdam@pobox.com>
  7749. * libtiff/tif_dirread.c: Improve allocation safety when allocated
  7750. buffer for large tags. (#1998) Related to (#1993)
  7751. 2009-02-06 Frank Warmerdam <warmerdam@pobox.com>
  7752. * tools/tiffcrop.c: Don't default image->res_unit to INCH. Now the
  7753. test suite should pass.
  7754. 2009-02-05 Frank Warmerdam <warmerdam@pobox.com>
  7755. * libtiff/tif_dirread.c: Re-incorporated a sanity check on tag size,
  7756. but at the 2GB boundary to avoid overflow on 32bit systems.
  7757. http://bugzilla.maptools.org/show_bug.cgi?id=1993
  7758. * libtiff/tif_dirread.c: Remove some assertions that blow due to
  7759. corrupt files rather than in response to library internal
  7760. inconsistencies.
  7761. http://bugzilla.maptools.org/show_bug.cgi?id=1995
  7762. http://bugzilla.maptools.org/show_bug.cgi?id=1991
  7763. * libtiff/tif_dirread.c: Fixed testing for failed result from
  7764. TIFFReadDirectoryFindFieldInfo().
  7765. http://bugzilla.maptools.org/show_bug.cgi?id=1992
  7766. 2009-01-23 Frank Warmerdam <warmerdam@pobox.com>
  7767. * libtiff/tif_predict.c: Add support for 32bit integer horz. predictors.
  7768. http://bugzilla.maptools.org/show_bug.cgi?id=1911
  7769. * libtiff/tif_dirwrite.c: Fix byte swapping of next directory offset.
  7770. http://bugzilla.maptools.org/show_bug.cgi?id=1924
  7771. * tools/tiffcrop.c: initialize xres/yres values.
  7772. * test/*.sh - default ${srcdir} to local directory.
  7773. * test/common.sh - start verbose mode after common settings.
  7774. * libtiff/tif_dirinfo.c: Replace lfind() with local equivalent to
  7775. avoid type mismatches on different platforms.
  7776. http://bugzilla.maptools.org/show_bug.cgi?id=1889
  7777. 2009-01-22 Frank Warmerdam <warmerdam@pobox.com>
  7778. * tools/{fax2tiff.c,thumbnail.c,tiff2pdf.c,tiff2ps.c,tiffdump.c,
  7779. tiffsplit.c}: avoid warnings, mostly 32bit/64bit casting issues.
  7780. * port,tools: Introduce libport.h, and include in tools if NEED_LIBPORT
  7781. defined, primarily to reduce prototype warnings on windows.
  7782. * libtiff/tif_dirinfo.c,tif_dirread.c: Avoid warnings
  7783. about unused parameters, and uninitialized variables.
  7784. 2009-01-21 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  7785. * test/common.sh: Execute tests like 'make VERBOSE=TRUE check' in
  7786. order to trace full execution detail while executing the test suite.
  7787. 2009-01-20 Frank Warmerdam <warmerdam@pobox.com>
  7788. * tools/tiffsplit.c: fix sampleformat to be shortv instead of longv.
  7789. 2009-01-20 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  7790. * test/Makefile.am (CLEANFILES): Make sure that test output files
  7791. are removed by 'make clean'
  7792. * Update autotools for 4.0.0 beta3
  7793. * 4.0.0 beta3 produced.
  7794. 2009-01-12 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  7795. * test/tiffcrop.sh: New test script for tiffcrop from Richard
  7796. Nolde.
  7797. * tools/tiff2ps.c: Remove spurious message to stderr.
  7798. 2009-01-11 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  7799. * tools/tiff2ps.c: Incorporated significant functionality update
  7800. from Richard Nolde. In particular, support for rotating the image
  7801. by 90, 180, 270, and 'auto' has been added.
  7802. * man/tiffcrop.1: Incorporated documentation updates from Richard
  7803. Nolde.
  7804. * tools/tiffcrop.c: Incorporated significant functionality update
  7805. from Richard Nolde.
  7806. 2008-12-31 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  7807. * libtiff/tiffio.h: GCC will now validate format specifications
  7808. for TIFFError(), TIFFErrorExt(), TIFFWarning(), and
  7809. TIFFWarningExt() in order to reveal bugs.
  7810. * Many fixes throughout to work better as a 64-bit build.
  7811. 2008-12-30 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  7812. * tools/{tiff2pdf.c, tiff2ps.c, tiffinfo.c}: Offset and length
  7813. tags now require 64-bit parameter rather than 32-bit.
  7814. * libtiff/tif_dirread.c: Fixed issues with unaligned access to
  7815. 64-bit values.
  7816. * tools/thumbnail.c: Eliminate crash noticed while running test
  7817. suite.
  7818. 2008-12-29 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  7819. * libtiff/tif_ojpeg.c (OJPEGLibjpegJpegSourceMgrFillInputBuffer):
  7820. Initialize stack variables to avoid compiler warning.
  7821. * tools/tiffinfoce.c (main): Use toff_t for offset type when
  7822. retrieving offset of EXIF IFD.
  7823. * libtiff/tiffio.h: Undeprecate toff_t and restore its use in the
  7824. TIFFClientOpen() callback and other external function definitions.
  7825. * tools/tiffinfo.c (main): Offset to EXIF IFD requires a 64-bit
  7826. type now. Fixes crash when dumping files containing an EXIF IFD.
  7827. * m4/libtool.m4: Update to libtool 2.2.6.
  7828. 2008-12-21 Frank Warmerdam <warmerdam@pobox.com>
  7829. * libtiff/tif_dir.c, tiffio.h: Introduce TIFFUnsetField() function.
  7830. * libtiff/tif_jpeg.c: Avoid errors if the application writes a full
  7831. strip for the last partial strip in a jpeg compressed file.
  7832. http://bugzilla.maptools.org/show_bug.cgi?id=1981
  7833. 2008-10-29 Frank Warmerdam <warmerdam@pobox.com>
  7834. * libtiff/tif_flush.c: Make sure that BEENWRITING is cleared when
  7835. we take the shortcut to only update the strip/tile offsets in place.
  7836. http://trac.osgeo.org/gdal/ticket/2621
  7837. 2008-10-21 Andrey Kiselev <dron@ak4719.spb.edu>
  7838. * libtiff/tif_jbig.c: Support the JBIG-KIT 2.0 (compatibility with
  7839. the older versions retained).
  7840. 2008-10-09 Frank Warmerdam <warmerdam@pobox.com>
  7841. * libtiff/tif_jpeg.c: Add #ifdefs for changes needed if using
  7842. IPP enabled version of libjpeg from Intel.
  7843. http://bugzilla.maptools.org/show_bug.cgi?id=1951
  7844. 2008-09-05 Andrey Kiselev <dron@ak4719.spb.edu>
  7845. * tools/tiffsplit.c: Use byte counts of proper size (uint64).
  7846. Required for libtiff 4.0.
  7847. * tools/tiffsplit.c: Use dynamically allocated array instead of static
  7848. when constructing output file names.
  7849. 2008-09-03 Andrey Kiselev <dron@ak4719.spb.edu>
  7850. * tools/tiffsplit.c: Get rid of unsafe strcpy()/strcat() calls when
  7851. doing the filename/path construction.
  7852. * tools/tiff2pdf.c: More appropriate format string in
  7853. t2p_write_pdf_string(); avoid signed/unsigned mismatch.
  7854. * libtiff/tif_lzw.c: Properly zero out the codetable. As per bug
  7855. http://bugzilla.maptools.org/show_bug.cgi?id=1929
  7856. * libtiff/tif_lzw.c: Properly zero out the string table. Fixes
  7857. CVE-2008-2327 security issue.
  7858. 2008-09-01 Frank Warmerdam <warmerdam@pobox.com>
  7859. * libtiff/tif_dirread.c: Avoid unused TIFFReadDirEntryFloat() function.
  7860. * libtiff/tif_dirwrite.c: modified to write IFDs as either IFD8 or IFD
  7861. depending on whether the file is bigtiff or classic tiff.
  7862. http://bugzilla.maptools.org/show_bug.cgi?id=1917
  7863. 2008-08-12 Edward Lam <edward@sidefx.com>
  7864. * tools/tiffdump.c: When compiling for Microsoft Windows, apply
  7865. consistent (__int64) casting when testing if _lseeki64 has
  7866. successfully sought as requested. This is necessary for large
  7867. file support to work since off_t is only 32-bit.
  7868. 2008-07-29 Frank Warmerdam <warmerdam@pobox.com>
  7869. * tif_strip.c: Replace assertions related to samplesperpixel != 3 or
  7870. the subsampling values not being 1, 2 or 4 (for jpeg compressed images)
  7871. with control logic to return runtime errors (c/o Even Rouault) (#1927).
  7872. 2008-06-17 Frank Warmerdam <warmerdam@pobox.com>
  7873. * tools/tiffcrop.c: Fix some portability problems.
  7874. * libtiff/tif_ojpeg.c: Use same jpeg/win32 boolean/FAR hacks as are
  7875. used in tif_jpeg.c.
  7876. * libtiff/tif_win32.c: Ensure TIFFOpenW() uses same FILE_SHARE flags
  7877. as TIFFOpen().
  7878. 2008-06-01 Frank Warmerdam <warmerdam@pobox.com>
  7879. * libtiff/tif_dirwrite.c: Fix alignment problems affecting architectures
  7880. like Sparc/Solaris.
  7881. http://bugzilla.maptools.org/show_bug.cgi?id=1892
  7882. 2008-05-27 Frank Warmerdam <warmerdam@pobox.com>
  7883. * libtiff.def: Add TIFFFindField
  7884. http://bugzilla.maptools.org/show_bug.cgi?id=1891
  7885. 2008-05-26 Frank Warmerdam <warmerdam@pobox.com>
  7886. * tif_config.*.h, tiffconf.*.h: Remove SIZEOF_LONG definition, unused.
  7887. * li2008-04-15 Andrey Kiselev <dron@ak4719.spb.edu>
  7888. btiff/tif_win32.c: Replace custom Win32 memory api with generic
  7889. POSIX one. No apparent value to use of GlobalAlloc() in the modern
  7890. age. http://bugzilla.maptools.org/show_bug.cgi?id=1885
  7891. * libtiff/tiffconf.vc.h: Added JBIG_SUPPORT and MDI_SUPPORT items
  7892. in windows version (care of Edward Lam).
  7893. 2008-05-24 Frank Warmerdam <warmerdam@pobox.com>
  7894. * tif_codec.c: Avoid NULL pointer dereferencing for exotic
  7895. compression codec codes.
  7896. * tif_dirwrite.c: fix potential memory leak.
  7897. * tif_dirread.c: Fix unchecked malloc result.
  7898. 2008-05-24 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  7899. * test {tiff2pdf.sh tiff2ps-EPS1.sh tiff2ps-PS1.sh tiff2ps-PS2.sh
  7900. tiff2ps-PS3.sh tiffcp-g3-1d-fill.sh tiffcp-g3-1d.sh
  7901. tiffcp-g3-2d-fill.sh tiffcp-g3-2d.sh tiffcp-g3.sh tiffcp-g4.sh
  7902. tiffcp-split-join.sh tiffcp-split.sh tiffcp-thumbnail.sh
  7903. tiffdump.sh tiffinfo.sh}: Added more test scripts based on
  7904. suggestions from Lee Howard posted to the tiff list on 13 Sep
  7905. 2007.
  7906. 2008-05-23 Frank Warmerdam <warmerdam@pobox.com>
  7907. * libtiff/tif_fax3.c: Add an assert in an effort to detect a
  7908. possible runtime problem reported by coverity.
  7909. * contrib/iptcutil/iptcutil.c: Fixed memory leak of str.
  7910. * tools/tiffcrop.c, man/tiffcrop.1: Major update from Richard Nolde.
  7911. http://bugzilla.maptools.org/show_bug.cgi?id=1888
  7912. * tools/tiffdither.c: remove dead onestrip code. avoid memory leak.
  7913. * tools/rgb2ycbcr.c: fix memory leak of raster buffer.
  7914. * tools/tiffcp.c: Simplify inknames code to avoid pointless test.
  7915. Cleanup scanline allocation to avoid coverity warning.
  7916. * tools/thumbnail.c: Check for TIFFOpen() failure.
  7917. 2008-05-18 Frank Warmerdam <warmerdam@pobox.com>
  7918. * libtiff/tif_dirinfo.c: Use TIFF_SETGET_ASCII for PIXAR_TEXTUREFORMAT
  7919. and PIXAR_WRAPMODES instead of TIFF_SETGET_UNDEFINED. Not exactly clear
  7920. why this is needed.
  7921. 2008-05-09 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  7922. * Makefile.am (ACLOCAL_AMFLAGS): Libtool 2.2.4 does not like
  7923. "ACLOCAL_AMFLAGS=-I ./m4". It wants "ACLOCAL_AMFLAGS=-I m4".
  7924. 2008-04-15 Andrey Kiselev <dron@ak4719.spb.edu>
  7925. * test/: Test suite updated. Everything is passed now.
  7926. * libtiff/tif_dirinfo.c: Fixed description of the
  7927. TIFFTAG_NUMBEROFINKS tag.
  7928. 2008-04-14 Andrey Kiselev <dron@ak4719.spb.edu>
  7929. * libtiff/{tif_dirread.c, tif_dirwrite.c, tiffiop.h}:
  7930. Get rid of some of "dereferencing type-punned" warnings by converting
  7931. tdir_offset field of TIFFDirEntry structure into union.
  7932. 2008-04-10 Andrey Kiselev <dron@ak4719.spb.edu>
  7933. * libtiff/{tif_flush.c, tif_dirwrite.c, tiffio.h, tiffiop.h}:
  7934. TIFFRewriteField() renamed into _TIFFRewriteField() and moved out
  7935. from the public interface. Type of its 'count' parameter changed
  7936. from uint32 to tmsize_t.
  7937. * /libtiff/tiffiop.h: Make tif_nfields and tif_nfieldscompat fields
  7938. of the tiff structure have the size_t type instead of uint32.
  7939. 2008-04-09 Andrey Kiselev <dron@ak4719.spb.edu>
  7940. * tools/tiffdump.c: Added support for MSVS 6.0.
  7941. * libtiff/tif_dirread.c: Use custom functions _TIFFUInt64ToFloat()
  7942. and _TIFFUInt64ToDouble() to convert 64-bit integers into floating
  7943. point values on MSVS 6.0 platform.
  7944. 2008-03-14 Frank Warmerdam <warmerdam@pobox.com>
  7945. * tif_dirread.c: Removed sanity checks on tags larger than 4MB in
  7946. TIFFReadDirEntryArray() since they are interfering with seemingly
  7947. legitimate files. http://trac.osgeo.org/gdal/ticket/2005
  7948. 2008-02-09 Joris Van Damme <joris.at.lebbeke@skynet.be>
  7949. * tif_dirread.c: Added handling for the case of number of values for
  7950. PageNumber tag different from 2 (previously resulted in an assert
  7951. indicating lack of handling and was forgotten about)
  7952. 2008-02-01 Frank Warmerdam <warmerdam@pobox.com>
  7953. * libtiff/tif_jpeg.c: Do not try to fixup subsampling tags based on
  7954. the actual jpeg data stream if the first strip/tile has zero size.
  7955. This is the case when GDAL creates a new file with zero sizes, closes
  7956. and reopens it.
  7957. 2008-01-07 Frank Warmerdam <warmerdam@pobox.com>
  7958. * tools/tiff2ps.c: fix up 64bit issues (from Edward Lam).
  7959. 2008-01-01 Frank Warmerdam <warmerdam@pobox.com>
  7960. * libtiff/tif_dirwrite.c: #ifdef out lots of unused functions.
  7961. * Makefile.vc, libtiff/Makefile.vc, tools/Makefile.vc: Improve clean
  7962. targets.
  7963. * tools/tiffinfo.c, tools/tiffcmp.c, tools/gif2tiff.c, tools/bmp2tiff.c
  7964. tools/tiff2pdf.c: Fix 64-bit warnings when compiling under MSVC 2005
  7965. (x64).
  7966. * tools/tiffset.c: Changes to reflect the fact that TIFFFieldWithTag()
  7967. and TIFFFieldWithName() now return TIFFField pointers instead of
  7968. TIFFFieldInfo pointers.
  7969. * tools/tiffdump.c: Added ssize_t typedef on Windows since it doesn't
  7970. exist. This makes it compile again on Windows
  7971. * tif_aux.c, tif_getimage.c, tif_next.c, tif_predict.c, tif_win32.c,
  7972. tiffconf.vc.h: Various 64bit fixes from Edward Lam identified on win64.
  7973. * test/rewrite_tag.c: New test for TIFFRewriteField().
  7974. 2007-12-31 Frank Warmerdam <warmerdam@pobox.com>
  7975. * tif_dirwrite.c: Added TIFFRewriteField(). This new function
  7976. rewrites one field "on disk" updating an existing directory
  7977. entry. Lots of limitations still...
  7978. * tiffiop.h, tif_write.c, tif_dirread.c, tif_flush.c: Keep track of
  7979. TIFF_DIRTYSTRIP separately from TIFF_DIRTYDIRECT to indicate that
  7980. the strip offset/size values are dirty but nothing else about the
  7981. directory is dirty. In flush handle "just stripmaps dirty" as a
  7982. special case that just rewrites these values without otherwise
  7983. modifying the directory on disk using TIFFRewriteField().
  7984. We also modify logic so that in update mode the directory is not
  7985. marked dirty on read, but only when something is changed. This
  7986. means we need to keep track of updates to the stripmap stuff in
  7987. TIFFAppendToStrip().
  7988. 2007-12-10 Frank Warmerdam <warmerdam@pobox.com>
  7989. * tif_jpeg.c: Improve ability to switch between encoding and decoding
  7990. in the jpeg code (gdal bug #2033).
  7991. 2007-11-23 Frank Warmerdam <warmerdam@pobox.com>
  7992. * tif_dir.c, tif_dirread.c, tif_dirwrite.c, tif_read.c, tif_write.c,
  7993. tiffiop.h: Added TIFF_BUF4WRITE flag to indicate if contents of the
  7994. rawcp/rawcc buffer are for writing and thus may require flushing.
  7995. Necessary to distinguish whether they need to be written to disk when
  7996. in mixed read/write mode and doing a mixture of writing followed by
  7997. reading. http://trac.osgeo.org/gdal/ticket/1758
  7998. 2007-11-23 Andrey Kiselev <dron@ak4719.spb.edu>
  7999. * configure.com, libtiff/tif_vms.c: Better OpenVMS support. Patches
  8000. from Alexey Chupahin.
  8001. 2007-11-02 Frank Warmerdam <warmerdam@pobox.com>
  8002. * tif_write.c: Rip out the fancy logic in TIFFAppendToStrip() for
  8003. establishing if an existing tile can be rewritten to the same location
  8004. by comparing the current size to all the other blocks in the same
  8005. directory. This is dangerous in many situations and can easily
  8006. corrupt a file. (observed in esoteric GDAL situation that's hard to
  8007. document). This change involves leaving the stripbytecount[] values
  8008. unaltered till TIFFAppendToStrip(). Now we only write a block back
  8009. to the same location it used to be at if the new data is the same
  8010. size or smaller - otherwise we move it to the end of file.
  8011. * tif_dirwrite.c: Try to avoid writing out a full readbuffer of tile
  8012. data when writing the directory just because we have BEENWRITING at
  8013. some point in the past. This was causing odd junk to be written out
  8014. in a tile of data when a single tile had an interleaving of reading
  8015. and writing with reading last. (highlighted by gdal
  8016. autotest/gcore/tif_write.py test 7.
  8017. * tif_predict.c: use working buffer in PredictorEncodeTile to avoid
  8018. modifying callers buffer.
  8019. http://trac.osgeo.org/gdal/ticket/1965
  8020. * tif_predict.c/h: more fixes related to last item, keeping a
  8021. distinct pfunc for encode and decode cases as these were getting
  8022. mixed up sometimes.
  8023. http://trac.osgeo.org/gdal/ticket/1948
  8024. 2007-11-01 Frank Warmerdam <warmerdam@pobox.com>
  8025. * tif_predict.c/h, tif_lzw.c, tif_zip.c: Improvements so that
  8026. predictor based encoding and decoding works in read-write update
  8027. mode properly.
  8028. http://trac.osgeo.org/gdal/ticket/1948
  8029. 2007-10-24 Joris Van Damme <joris.at.lebbeke@skynet.be>
  8030. * tif_dirread.c: Fixed problem with bogus file triggering
  8031. assert(td->td_planarconfig == PLANARCONFIG_CONTIG) in
  8032. ChopUpSingleUncompressedStrip
  8033. 2007-10-22 Joris Van Damme <joris.at.lebbeke@skynet.be>
  8034. * tif_jpeg.c: Resolved buffer incrementation bug that lead to faulty images
  8035. at best, access violation at worst, when subsampled JPEG compressed imagery
  8036. is decoded without the JPEG_COLORMODE feature
  8037. 2007-10-11 Frank Warmerdam <warmerdam@pobox.com>
  8038. * html/index.html: Update "people responsible" section.
  8039. 2007-10-05 Frank Warmerdam <warmerdam@pobox.com>
  8040. * tools/tiff2pdf.c: Fix problem with alpha setting in some cases
  8041. as reported on the mailing list.
  8042. 2007-10-01 Joris Van Damme <joris.at.lebbeke@skynet.be>
  8043. * changed some more incorrect %lud printf flags to %lu
  8044. 2007-09-29 Joris Van Damme <joris.at.lebbeke@skynet.be>
  8045. * tif_dirread.c: Strip chopping interfered badly with uncompressed
  8046. subsampled images because it tried to divide subsampled rowblocks,
  8047. leading to all sorts of errors throughout the library for these
  8048. images. Fixed by making strip chopping divide in row counts that
  8049. are a multiple of vertical subsampling value.
  8050. 2007-09-28 Joris Van Damme <joris.at.lebbeke@skynet.be>
  8051. * tif_dirread.c: Logical cast working around compiler warning
  8052. * tif_read.c: Correction of some error flags and parameter lists
  8053. 2007-09-27 Joris Van Damme <joris.at.lebbeke@skynet.be>
  8054. * tif_dirread.c: Made calculation of td_maxsamplevalue more robust
  8055. when dealing with large bitspersample values, shutting up purification
  8056. tools that warn about truncation, though it remains incorrect and
  8057. indicates a conceptual problem there.
  8058. * tif_open.c: Moved early exit in case of 'h' flag (to disable reading
  8059. of first IFD) to proper place because it badly interfered with memory
  8060. mapping, resulting in mapping flag even with dummy mapping functions
  8061. that returned 0 whilst at the same time the mapping tif_size wasn't
  8062. set, thus resulting in continuous incorrect beyond-eof errors.
  8063. 2007-09-24 Joris Van Damme <joris.at.lebbeke@skynet.be>
  8064. * tif_dirinfo.c: Fixed (MSVC) compiler reports about
  8065. inconsistent use of const in tiffFields and exifFields definition
  8066. 2007-09-20 Frank Warmerdam <warmerdam@pobox.com>
  8067. * tif_dirwrite.c: Always write tile/strip offsets and sizes
  8068. using LONG8 type when output format is BigTIFF. The
  8069. TIFFWriteDirectoryTagLongLong8Array() function was restructured
  8070. accordingly.
  8071. * tif_dirread.c: Improvements to error reporting text in
  8072. TIFFFetchDirectory().
  8073. 2007-09-19 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  8074. * test/images: Added a small collection of test images for use by
  8075. test programs and scripts.
  8076. * test/tiffinfo.sh: A trivial example test script.
  8077. * test/common.sh: Added small script for setting the environment
  8078. used by script-based tests.
  8079. 2007-08-24 Frank Warmerdam <warmerdam@pobox.com>
  8080. * tif_dirwrite.c: Write the tif_nextdiroff value instead of a fixed
  8081. zero when writing directory contents to preserve the ability to
  8082. rewrite directories in place, even in the middle of a directory
  8083. chain.
  8084. * tif_dirinfo.c: _TIFFMergeFields() now only merges in field
  8085. definitions that are missing. Existing definitions are silently
  8086. ignored.
  8087. * tif_dirread.c: Add runtime error for fields for which no definition
  8088. is found (in addition to an assert for developers) in
  8089. TIFFFetchNormalTag(). Not sure if this is needed, but it seems
  8090. prudent.
  8091. 2007-08-10 Joris Van Damme <joris.at.lebbeke@skynet.be>
  8092. * libtiff/tif_getimage.c: removed SubsamplingHor and SubsamplingVer
  8093. from _TIFFRGBAImage structure to revert unwanted ABI change.
  8094. 2007-08-10 Joris Van Damme <joris.at.lebbeke@skynet.be>
  8095. * libtiff/tif_win32.c: use SetFilePointer instead of
  8096. SetFilePointerEx, as per bug
  8097. http://bugzilla.remotesensing.org/show_bug.cgi?id=1580
  8098. 2007-07-19 Andrey Kiselev <dron@ak4719.spb.edu>
  8099. * libtiff/tif_stream.cxx: Put all callback functions declarations
  8100. inside extern "C" block.
  8101. * libtiff/{tif_lzw.c, tif_luv.c, tif_dumpmode.c, tif_print.c,
  8102. tif_read.c, tif_strip.c, tif_thunder.c}: Use "%I64d" printf()
  8103. formatter instead of "%lld" with MSVC compiler.
  8104. * libtiff/{tiffiop.h, tif_aux.c}: Added _TIFFUInt64ToFloat() and
  8105. _TIFFUInt64ToDouble() functions.
  8106. 2007-07-18 Andrey Kiselev <dron@ak4719.spb.edu>
  8107. * libtiff/tif_dirread.c: Handle the case of MSVC 6 when using 64-bit
  8108. integer constants.
  8109. * libtiff/{Makefile.am, Makefile.v}: Do not distribute tiffconf.h,
  8110. remove tif_config.h/tiffconf.h during cleaning. As per bug
  8111. http://bugzilla.remotesensing.org/show_bug.cgi?id=1573
  8112. * libtiff/tif_unix.c: Do not use O_LARGEFILE. As per bug
  8113. http://bugzilla.remotesensing.org/show_bug.cgi?id=1577
  8114. 2007-07-13 Andrey Kiselev <dron@ak4719.spb.edu>
  8115. * libtiff 4.0.0alpha released.
  8116. 2007-07-12 Andrey Kiselev <dron@ak4719.spb.edu>
  8117. * tools/tiff2pdf.c: Added missed extern optind as per bug
  8118. http://bugzilla.remotesensing.org/show_bug.cgi?id=1567
  8119. * libtiff/{tif_close.c, tif_dirinfo.c, tiffiop.c, tif_dirread.c,
  8120. tif_dir.h, tif_dir.c, tiffio.h}: Transition to the new-style tag
  8121. extending scheme completed.
  8122. 2007-07-11 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  8123. * libtiff/tif_stream.cxx: Adapt to use toff_t again. Update to
  8124. use standard C++ library size types and attempt to detect overflow
  8125. cases.
  8126. 2007-07-08 Andrey Kiselev <dron@ak4719.spb.edu>
  8127. * libtiff/{tif_jpeg.c, tif_dir.h, tif_dir.c, tif_dirinfo.c, tiffio.h,
  8128. tif_ojpeg.c, tif_print.c, tif_fax3.c, tif_dirread.c}: More work on new
  8129. tag extending scheme. Use the new scheme everywhere.
  8130. * libtiff/{tif_zip.c, tif_predict.c, tif_pixarlog.c, tif_luv.c,
  8131. tif_fax3.c, tif_dirread.c, tif_dirwrite.c, tif_close.c, tif_ojpeg.c,
  8132. tif_jpeg.c, tif_dirinfo.c, tif_dir.h, tiffio.h, tiffiop.h}:
  8133. TIFFFIeldInfo structure replaced with TIFFField structure.
  8134. TIFFFieldInfo retained for the backward compatibility.
  8135. 2007-07-05 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  8136. * tools/tiff2pdf.c: Fix a compile problem when JPEG_SUPPORT is not
  8137. defined.
  8138. 2007-07-04 Andrey Kiselev <dron@ak4719.spb.edu>
  8139. * libtiff/{tif_dir.c, tiff.h, tiffio.h, libtiff.def}: Unused
  8140. TIFFReassignTagToIgnore() function and TIFFIgnoreSense enumeration
  8141. removed.
  8142. * libtiff/{tif_dirinfo.c, tif_fax3.c, tif_jbig.c, tif_jpeg.c}: Move
  8143. tags TIFFTAG_FAXRECVPARAMS, TIFFTAG_FAXSUBADDRESS,
  8144. TIFFTAG_FAXRECVTIME and TIFFTAG_FAXDCS to the common tag directory.
  8145. These tags are not codec-specific and relate to image content, so
  8146. process them as other normal tags.
  8147. * libtiff/{tiffio.h, tif_dir.h}: TIFFTagValue structure moved from the
  8148. public tiffio.h to private tif_dir.h.
  8149. * contrib/{acorn, mac-cw, mac-mpw}: Removed as unmaintained and
  8150. outdated.
  8151. 2007-07-03 Andrey Kiselev <dron@ak4719.spb.edu>
  8152. * libtiff{tif_acorn.c, tif_apple.c, tif_atari.c, tif_msdos.c,
  8153. tif_win3.c}: Obsoleted portability stuff removed.
  8154. * tools/tiff2ps.c: Added support 16-bit images as per bug
  8155. http://bugzilla.remotesensing.org/show_bug.cgi?id=1566
  8156. Patch from William Bader.
  8157. * tools/tiff2pdf.c: Fix for TIFFTAG_JPEGTABLES tag fetching and
  8158. significant upgrade of the whole utility as per bug
  8159. http://bugzilla.remotesensing.org/show_bug.cgi?id=1560
  8160. Now we don't need tiffiop.h in tiff2pdf anymore and will open output
  8161. PDF file using TIFFClientOpen() machinery as it is implemented
  8162. by Leon Bottou.
  8163. 2007-06-26 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  8164. * configure.ac: Fix typo when substituting value for unsigned 8 bit type.
  8165. Added support for a TIFF_PTRDIFF_T type to use when doing pointer arithmetic.
  8166. Added support for a TIFF_SSIZE_T in order to return memory sizes but still
  8167. allow returning -1 for errors.
  8168. * libtiff/tiffconf.vc.h: Add porting type definitions for WIN32.
  8169. 2007-06-25 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  8170. * port/strtoull.c: New porting function in case strtoull() is not
  8171. available on the target system.
  8172. * configure.ac: Add configure support for determining sized types
  8173. in a portable way and performing necessary substitutions in
  8174. tif_config.h and tiffconf.h. Updated tiff.h to use the new
  8175. definitions.
  8176. 2007-04-27 Andrey Kiselev <dron@ak4719.spb.edu>
  8177. * tools/tiff2pdf.c: Check the tmpfile() return status as per bug
  8178. http://bugzilla.remotesensing.org/show_bug.cgi?id=154
  8179. 2007-04-07 Andrey Kiselev <dron@ak4719.spb.edu>
  8180. * libtiff/{tif_dir.h, tif_dirread.c, tif_dirinfo.c, tif_jpeg.c,
  8181. tif_fax3.c, tif_jbig.c, tif_luv.c, tif_ojpeg.c, tif_pixarlog.c,
  8182. tif_predict.c, tif_zip.c}: Finally fix bug
  8183. http://bugzilla.remotesensing.org/show_bug.cgi?id=1274
  8184. by introducing _TIFFMergeFieldInfo() returning integer error status
  8185. instead of void in case of problems with field merging (e.g., if the
  8186. field with such a tag already registered). TIFFMergeFieldInfo() in
  8187. public API remains void. Use _TIFFMergeFieldInfo() everywhere and
  8188. check returned value.
  8189. 2007-04-07 Frank Warmerdam <warmerdam@pobox.com>
  8190. * contrib/addtiffo/tif_overview.c: Fix problems with odd sized output
  8191. blocks in TIFF_DownSample_Subsampled() (bug 1542).
  8192. 2007-04-06 Frank Warmerdam <warmerdam@pobox.com>
  8193. * libtiff/tif_jpeg.c: Changed JPEGInitializeLibJPEG() so that it
  8194. will convert from decompressor to compressor or compress to decompress
  8195. if required by the force arguments. This works around a problem in
  8196. where the JPEGFixupTestSubsampling() may cause a decompressor to
  8197. be setup on a directory when later a compressor is required with the
  8198. force flag set. Occurs with the addtiffo program for instance.
  8199. 2007-04-06 Andrey Kiselev <dron@ak4719.spb.edu>
  8200. * tools/tiffcrop.c, man/tiffcrop.1: Significant update in
  8201. functionality from Richard Nolde. As per bug
  8202. http://bugzilla.remotesensing.org/show_bug.cgi?id=1525
  8203. 2007-03-28 Frank Warmerdam <warmerdam@pobox.com>
  8204. * libtiff/tif_fax3.c: "inline static" -> "static inline" for IRIC CC.
  8205. 2007-03-17 Joris Van Damme <joris.at.lebbeke@skynet.be>
  8206. * start of BigTIFF upgrade - CVS HEAD unstable until further notice
  8207. 2007-03-07 Joris Van Damme <joris.at.lebbeke@skynet.be>
  8208. * libtiff/tif_getimage.c: workaround for 'Fractional scanline' error reading
  8209. OJPEG images with rowsperstrip that is not a multiple of vertical subsampling
  8210. factor. This bug is mentioned in:
  8211. http://bugzilla.remotesensing.org/show_bug.cgi?id=1390
  8212. http://www.asmail.be/msg0054766825.html
  8213. 2007-03-07 Joris Van Damme <joris.at.lebbeke@skynet.be>
  8214. * libtiff/tif_win32.c: made inclusion of windows.h unconditional
  8215. * libtiff/tif_win32.c: replaced preprocessor indication for consiously
  8216. unused arguments by standard C indication for the same
  8217. 2007-02-27 Andrey Kiselev <dron@ak4719.spb.edu>
  8218. * libtiff/tif_dirread.c: Use uint32 type instead of tsize_t in byte
  8219. counters in TIFFFetchData(). Should finally fix the issue
  8220. http://bugzilla.remotesensing.org/show_bug.cgi?id=890
  8221. 2007-02-24 Andrey Kiselev <dron@ak4719.spb.edu>
  8222. * tools/tiffset.c: Properly handle tags with TIFF_VARIABLE writecount.
  8223. As per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1350
  8224. * libtiff/tif_dirread.c: Added special function to handle
  8225. SubjectDistance EXIF tag as per bug
  8226. http://bugzilla.remotesensing.org/show_bug.cgi?id=1362
  8227. * tools/tiff2pdf.c: Do not assume inches when the resolution units
  8228. do not specified. As per bug
  8229. http://bugzilla.remotesensing.org/show_bug.cgi?id=1366
  8230. * tools/{tiffcp.c, tiffcrop.c}: Do not change RowsPerStrip value if
  8231. it was set as infinite. As per bug
  8232. http://bugzilla.remotesensing.org/show_bug.cgi?id=1368
  8233. * tools/tiffcrop.c, man/tiffcrop.1: New tiffcrop utility contributed
  8234. by Richard Nolde. As per bug
  8235. http://bugzilla.remotesensing.org/show_bug.cgi?id=1383
  8236. 2007-02-22 Andrey Kiselev <dron@ak4719.spb.edu>
  8237. * libtiff/tif_dir.c: Workaround for incorrect TIFFs with
  8238. ExtraSamples == 999 produced by Corel Draw. As per bug
  8239. http://bugzilla.remotesensing.org/show_bug.cgi?id=1490
  8240. * libtiff/{tif_dirread.c, tif_read.c}: Type of the byte counters
  8241. changed from tsize_t to uint32 to be able to work with data arrays
  8242. larger than 2GB. Fixes bug
  8243. http://bugzilla.remotesensing.org/show_bug.cgi?id=890
  8244. Idea submitted by Matt Hancher.
  8245. 2007-01-31 Andrey Kiselev <dron@ak4719.spb.edu>
  8246. * tools/tif2rgba.c: This utility does not work properly on big-endian
  8247. architectures. It was fixed including the bug
  8248. http://bugzilla.remotesensing.org/show_bug.cgi?id=1149
  8249. 2007-01-15 Mateusz Loskot <mateusz@loskot.net>
  8250. * Submitted libtiff port for Windows CE platform
  8251. * libtiff/tif_config.wince.h: Added configuration header for WinCE.
  8252. * libtiff/tiffconf.wince.h: Ported old configuration header for WinCE.
  8253. * libtiff/tif_wince.c: Added WinCE-specific implementation of some
  8254. functions from tif_win32.c.
  8255. * libtiff/tif_win32.c: Disabled some functions already reimplemented in tif_wince.c.
  8256. * libtiff/tiffiop.h, port/lfind.c: Added conditional include of some
  8257. standard header files for Windows CE build.
  8258. * tools/tiffinfoce.c: Ported tiffinfo utility for Windows CE.
  8259. 2006-11-19 Frank Warmerdam <warmerdam@pobox.com>
  8260. * libtiff/tif_write.c: TIFFAppendToStrip() - clear sorted flag if
  8261. we move a strip.
  8262. http://bugzilla.remotesensing.org/show_bug.cgi?id=1359
  8263. 2006-10-13 Andrey Kiselev <dron@ak4719.spb.edu>
  8264. * libtiff/tif_dir.c: More fixes for vulnerabilities, reported
  8265. in Gentoo bug ():
  8266. http://bugs.gentoo.org/show_bug.cgi?id=142383
  8267. * libtiff/contrib/dbs/xtiff/xtiff.c: Make xtiff utility compilable.
  8268. Though it is still far from the state of being working and useful.
  8269. 2006-10-12 Andrey Kiselev <dron@ak4719.spb.edu>
  8270. * libtiff/tif_fax3.c: Save the state of printdir codec dependent
  8271. method.
  8272. * libtiff/tif_jpeg.c: Save the state of printdir codec dependent method
  8273. as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1273
  8274. * libtiff/tif_win32.c: Fixed problem with offset value manipulation
  8275. as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1322
  8276. * libtiff/{tif_read.c, tif_jpeg.c, tif_dir.c}: More fixes for
  8277. vulnerabilities, reported in Gentoo bug ():
  8278. http://bugs.gentoo.org/show_bug.cgi?id=142383
  8279. 2006-09-28 Andrey Kiselev <dron@ak4719.spb.edu>
  8280. * libtiff/{tif_fax3.c, tif_next.c, tif_pixarlog.c}: Fixed multiple
  8281. vulnerabilities, as per Gentoo bug ():
  8282. http://bugs.gentoo.org/show_bug.cgi?id=142383
  8283. 2006-09-27 Frank Warmerdam <warmerdam@pobox.com>
  8284. * libtiff/tif_lzw.c, libtiff/tif_zip.c: Fixed problems with mixing
  8285. encoding and decoding on the same read-write TIFF handle. The LZW
  8286. code can now maintain encode and decode state at the same time. The
  8287. ZIP code will switch back and forth as needed.
  8288. http://bugzilla.remotesensing.org/show_bug.cgi?id=757
  8289. 2006-09-20 Frank Warmerdam <warmerdam@pobox.com>
  8290. * libtiff: Rename config.h.vc and tif_config.h.vc to config.vc.h and
  8291. tif_config.vc.h for easier identification by folks using an IDE.
  8292. 2006-07-25 Frank Warmerdam <warmerdam@pobox.com>
  8293. * tif_msdos.c: Avoid handle leak for failed opens. c/o Thierry Pierron
  8294. 2006-07-19 Frank Warmerdam <warmerdam@pobox.com>
  8295. * tif_dirwrite.c: take care not to flush out buffer of strip/tile
  8296. data in _TIFFWriteDirectory if TIFF_BEENWRITING not set. Relates
  8297. to bug report by Peng Gao with black strip at bottom of images.
  8298. 2006-07-12 Frank Warmerdam <warmerdam@pobox.com>
  8299. * tif_dirwrite.c: make sure to use uint32 for wordcount in
  8300. TIFFWriteNormanTag if writecount is VARIABLE2 for ASCII fields.
  8301. It already seems to have been done for other field types. Needed
  8302. for "tiffset" on files with geotiff ascii text.
  8303. 2006-07-04 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  8304. * {configure.ac, libtiff/tif_config.h.vc, libtiff/tif_jbig.c}
  8305. (JBIGDecode): jbg_newlen is not available in older JBIG-KIT and
  8306. its use does not appear to be required, so use it only when it is
  8307. available.
  8308. 2006-06-24 Andrey Kiselev <dron@ak4719.spb.edu>
  8309. * libtiff/tif_dirinfo.c: Added missed EXIF tag ColorSpace (40961).
  8310. * libtiff/tif_dirread.c: Move IFD fetching code in the separate
  8311. function TIFFFetchDirectory() avoiding code duplication in
  8312. TIFFReadDirectory() and TIFFReadCustomDirectory().
  8313. 2006-06-19 Frank Warmerdam <warmerdam@pobox.com>
  8314. * tools/tiff2pdf.c: Fix handling of -q values.
  8315. http://bugzilla.remotesensing.org/show_bug.cgi?id=587
  8316. 2006-06-17 Frank Warmerdam <warmerdam@pobox.com>
  8317. * tif_readdir.c: Added case in EstimateStripByteCounts() for tiled
  8318. files. Modified TIFFReadDirectory() to not invoke
  8319. EstimateStripByteCounts() for case where entry 0 and 1 are unequal
  8320. but one of them is zero.
  8321. http://bugzilla.remotesensing.org/show_bug.cgi?id=1204
  8322. 2006-06-08 Andrey Kiselev <dron@ak4719.spb.edu>
  8323. * libtiff/{tif_open.c, tif_dirread.c, tiffiop.h}: Move IFD looping
  8324. checking code in the separate function TIFFCheckDirOffset().
  8325. * libtiff/tif_aux.c: Added _TIFFCheckRealloc() function.
  8326. * tools/tiffcmp.c: Fixed floating point comparison logic as per bug
  8327. http://bugzilla.remotesensing.org/show_bug.cgi?id=1191
  8328. * libtiff/tif_fax3.c: Fixed problems in fax decoder as per bug
  8329. http://bugzilla.remotesensing.org/show_bug.cgi?id=1194
  8330. * tools/tiff2pdf.c: Fixed buffer overflow condition in
  8331. t2p_write_pdf_string() as per bug
  8332. http://bugzilla.remotesensing.org/show_bug.cgi?id=1196
  8333. 2006-06-07 Andrey Kiselev <dron@ak4719.spb.edu>
  8334. * {configure, configure.ac, libtiff/tif_jbig.c, tools/tiffcp.c}: Added
  8335. support for JBIG compression scheme (34661 code) contributed by Lee
  8336. Howard. As per bug
  8337. http://bugzilla.remotesensing.org/show_bug.cgi?id=896
  8338. * configure, configure.ac: OJPEG support enabled by default.
  8339. * contrib/ojpeg/: Removed. New OJPEG support does not need this patch.
  8340. 2006-06-03 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  8341. * libtiff/{tif_dirinfo.c, tif_print.c} : Fix crash in
  8342. TIFFPrintDirectory(). Joris Van Damme authored the fix.
  8343. 2006-04-21 Andrey Kiselev <dron@ak4719.spb.edu>
  8344. * tools/tiff2pdf.c: Unified line ending characters (always use '\n')
  8345. as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1163
  8346. * README.vms, Makefile.am, configure.com, libtiff/{Makefile.am,
  8347. tif_config.h-vms, tif_stream.cxx, tif_vms.c, tiffconf.h-vms}:
  8348. Added support for OpenVMS by Alexey Chupahin, elvis_75@mail.ru.
  8349. 2006-04-20 Andrey Kiselev <dron@ak4719.spb.edu>
  8350. * tools/{fax2ps.c, fax2tiff.c, ppm2tiff.c, ras2tiff.c, tiff2pdf.c}:
  8351. Properly set the binary mode for stdin stream as per bug
  8352. http://bugzilla.remotesensing.org/show_bug.cgi?id=1141
  8353. * man/{bmp2tiff.1, fax2ps.1, fax2tiff.1, gif2tiff.1, ras2tiff.1,
  8354. raw2tiff.1, rgb2ycbcr.1, sgi2tiff.1, tiff2bw.1, tiff2pdf.1, tiff2ps.1,
  8355. tiff2rgba.1, tiffcmp.1, tiffcp.1, tiffdither.1, tiffdump.1, tiffgt.1,
  8356. tiffset.1}: Improvements in page formatting as per bug
  8357. http://bugzilla.remotesensing.org/show_bug.cgi?id=1140
  8358. * html/tools.html, html/man/Makefile.am, tools/tiff2pdf.c: Fixed
  8359. typos as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1139
  8360. 2006-04-18 Frank Warmerdam <warmerdam@pobox.com>
  8361. * nmake.opt: use /EHsc for VS2005 compatibility. Also define
  8362. _CRT_SECURE_NO_DEPRECATE to avoid noise on VS2005.
  8363. 2006-04-12 Joris Van Damme <joris.at.lebbeke@skynet.be>
  8364. * libtiff/tif_getimage.c: Added support for planarconfig separate
  8365. non-subsampled YCbCr (i.e. separate YCbCr with subsampling [1,1])
  8366. 2006-04-11 Joris Van Damme <joris.at.lebbeke@skynet.be>
  8367. * libtiff/tif_getimage.c: Revision of all RGB(A) put routines
  8368. - Conversion of unassociated alpha to associated alpha now done with
  8369. more performant LUT, and calculation more correct
  8370. - Conversion of 16bit data to 8bit data now done with
  8371. more performant LUT, and calculation more correct
  8372. - Bugfix of handling of 16bit RGB with unassociated alpha
  8373. 2006-04-11 Joris Van Damme <joris.at.lebbeke@skynet.be>
  8374. * libtiff/tif_getimage.c:
  8375. - When there is no alpha, gtTileSeparate and gtStripSeparate allocated
  8376. buffer for alpha strile and filled it, only to never read it back.
  8377. Removed allocation and fill.
  8378. - Minor rename of vars in gtTileSeparate and gtStripSeparate
  8379. anticipating planned functionality extension
  8380. 2006-04-08 Joris Van Damme <joris.at.lebbeke@skynet.be>
  8381. * libtiff/tif_getimage.c: renamed pickTileContigCase to PickContigCase
  8382. and pickTileSeparateCase to PickSeparateCase as both work on strips as
  8383. well
  8384. * libtiff/tif_getimage.c: moved img->get selection from
  8385. TIFFRGBAImageBegin into PickContigCase and PickSeparateCase to create
  8386. logical hook for planned functionality extension
  8387. 2006-04-08 Joris Van Damme <joris.at.lebbeke@skynet.be>
  8388. * libtiff/tif_ojpeg.c: resolved memory leak that was a consequence
  8389. of inappropriate use of jpeg_abort instead of jpeg_destroy
  8390. 2006-04-07 Joris Van Damme <joris.at.lebbeke@skynet.be>
  8391. * libtiff/tif_getimage.c: replaced usage of TIFFScanlineSize in
  8392. gtStripContig with TIFFNewScanlineSize so as to fix buggy behaviour
  8393. on subsampled images - this ought to get sorted when we feel brave
  8394. enough to replace TIFFScanlineSize altogether
  8395. * libtiff/tif_ojpeg.c: fixed bug in OJPEGReadSkip
  8396. 2006-04-04 Joris Van Damme <joris.at.lebbeke@skynet.be>
  8397. * libtiff/tiffio.h: added new type tstrile_t
  8398. * libtiff/tif_dir.h: changed types of td_stripsperimage and td_nstrips
  8399. to new tstrile_t, types of td_stripoffset and td_stripbytecount to
  8400. toff_t*
  8401. * libtiff/tif_ojpeg.c: totally new implementation
  8402. * libtiff/tif_dirread.c: added several hacks to suit new support of
  8403. OJPEG
  8404. * libtiff/tif_getimage.c: removed TIFFTAG_JPEGCOLORMODE handling
  8405. of OJPEG images in favor of tif_getimage.c native handling of
  8406. YCbCr and desubsampling
  8407. 2006-03-29 Frank Warmerdam <warmerdam@pobox.com>
  8408. * libtiff/tif_jpeg.c: JPEGVSetField() so that altering the photometric
  8409. interpretation causes the "upsampled" flag to be recomputed. Fixes
  8410. peculiar bug where photometric flag had to be set before jpegcolormode
  8411. flag.
  8412. 2006-03-25 Joris Van Damme <joris.at.lebbeke@skynet.be>
  8413. * libtiff/tif_jpeg.c: strip size related bugfix in encode raw
  8414. * libtiff/tif_strip.c: temporarily added two new versions of
  8415. TIFFScanlineSize
  8416. - TIFFNewScanlineSize: proposed new version, after all related
  8417. issues and side-effects are sorted out
  8418. - TIFFOldScanlineSize: old version, from prior to 2006-03-21 change
  8419. This needs further sorting out.
  8420. 2006-03-25 Joris Van Damme <joris.at.lebbeke@skynet.be>
  8421. * contrib/addtiffo/tif_ovrcache.c: bugfix to correctly pass size
  8422. of last truncated strip data to TIFFWriteEncodedStrip
  8423. 2006-03-25 Joris Van Damme <joris.at.lebbeke@skynet.be>
  8424. * libtiff/{tif_jpeg.c, tif_strip.c}: bugfix of tif_jpeg decode raw
  8425. 2006-03-25 Joris Van Damme <joris.at.lebbeke@skynet.be>
  8426. * libtiff/tif_getimage.c: bugfix/rewrite of putcontig8bitYCbCr22tile
  8427. * libtiff/tif_getimage.c: added putcontig8bitYCbCr12tile
  8428. * libtiff/tif_read.c: added support for new TIFF_NOREADRAW flag to
  8429. prepare the path for new tif_ojpeg.c
  8430. 2006-03-23 Andrey Kiselev <dron@ak4719.spb.edu>
  8431. * libtiff 3.8.2 released.
  8432. * tools/Makefile.am: Use runtime paths linker flags when rpath
  8433. option enabled.
  8434. 2006-03-21 Andrey Kiselev <dron@ak4719.spb.edu>
  8435. * libtiff/libtiff.def: Added missed exports as per bug
  8436. http://bugzilla.remotesensing.org/attachment.cgi?id=337
  8437. * contrib/addtiffo/Makefile.vc, libtiff/Makefile.vc, port/Makefile.vc,
  8438. tools/Makefile.vc: Makefiles improvements as per bug
  8439. http://bugzilla.remotesensing.org/show_bug.cgi?id=1128
  8440. * nmake.opt libtiff/{tif_config.h.vc, tif_unix.c, tiffio.h},
  8441. tools/{fax2ps.c, fax2tiff.c, tiff2pdf.c}: Fixed win32 I/O functions
  8442. usage as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1127
  8443. * libtiff/tif_strip.c: Take subsampling in account when calculating
  8444. TIFFScanlineSize().
  8445. * tools/tiffcp.c: Do not set RowsPerStrip bigger than image length.
  8446. 2006-03-17 Andrey Kiselev <dron@ak4719.spb.edu>
  8447. * tools/fax2tiff.c: Fixed wrong TIFFerror() invocations as per bug
  8448. http://bugzilla.remotesensing.org/show_bug.cgi?id=1125
  8449. * tools/fax2ps.c: Fixed reading the input stream from stdin as per bug
  8450. http://bugzilla.remotesensing.org/show_bug.cgi?id=1124
  8451. 2006-03-16 Andrey Kiselev <dron@ak4719.spb.edu>
  8452. * libtiff/tiffiop.h: Added declaration for
  8453. _TIFFSetDefaultCompressionState().
  8454. * libtiff/{tif_jpeg.c, tif_fax3.c, tif_zip.c, tif_pixarlog.c,
  8455. tif_lzw.c, tif_luv.c}: Use _TIFFSetDefaultCompressionState() in all
  8456. codec cleanup methods. As per bug
  8457. http://bugzilla.remotesensing.org/show_bug.cgi?id=1120
  8458. 2006-03-15 Andrey Kiselev <dron@ak4719.spb.edu>
  8459. * libtiff/tif_jpeg.c: Do not cleanup codec state in TIFFInitJPEG(). As
  8460. per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1119
  8461. * tools/raw2tiff.c: Do not set RowsPerStrip larger than ImageLength.
  8462. As per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1110
  8463. * libtiff/tiffiop.h: dblparam_t typedef removed; GLOBALDATA macro
  8464. removed; move here the STRIP_SIZE_DEFAULT macro definition.
  8465. * libtiff/{tif_dirread.c, tif_strip.c}: Removed STRIP_SIZE_DEFAULT
  8466. macro definition.
  8467. * libtiff/tif_dir.c: Use double type instead of dblparam_t.
  8468. 2006-03-14 Andrey Kiselev <dron@ak4719.spb.edu>
  8469. * libtiff/tif_dirread.c: Do not check the PlanarConfig tag presence
  8470. in TIFFReadDirectory, because it is always set at the start of
  8471. function and we allow TIFFs without that tag set.
  8472. 2005-03-13 Andrey Kiselev <dron@ak4719.spb.edu>
  8473. * libtiff 3.8.1 released.
  8474. 2006-03-07 Andrey Kiselev <dron@ak4719.spb.edu>
  8475. * libtiff/tif_dirread.c: Fixed error reporting in TIFFFetchAnyArray()
  8476. function as per bug
  8477. http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
  8478. * libtiff/tif_dirread.c: More wise check for integer overflow
  8479. condition as per bug
  8480. http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
  8481. * libtiff/{tif_jpeg.c, tif_pixarlog.c, tif_fax3.c, tif_zip.c}:
  8482. Properly restore setfield/getfield methods in cleanup functions. As
  8483. per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
  8484. 2006-03-03 Andrey Kiselev <dron@ak4719.spb.edu>
  8485. * libtiff/{tif_predict.c, tif_predict.h}: Added new function
  8486. TIFFPredictorCleanup() to restore parent decode/encode/field methods.
  8487. * libtiff/{tif_lzw.c, tif_pixarlog.c, tif_zip.c}: Use
  8488. TIFFPredictorCleanup() in codec cleanup methods. As per bug
  8489. http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
  8490. * libtiff/tif_dirread.c: Fixed integer overflow condition in
  8491. TIFFFetchData() function. As per bug
  8492. http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
  8493. 2006-03-01 Andrey Kiselev <dron@ak4719.spb.edu>
  8494. * libtiff/tif_ojpeg.c: Set the ReferenceBlackWhite with the
  8495. TIFFSetField() method, not directly. As per bug
  8496. http://bugzilla.remotesensing.org/show_bug.cgi?id=1043
  8497. * tools/ppm2tiff.c: Added support for PBM files as per bug
  8498. http://bugzilla.remotesensing.org/show_bug.cgi?id=1044
  8499. 2006-02-27 Andrey Kiselev <dron@ak4719.spb.edu>
  8500. * libtiff/tif_write.c: Small code rearrangement in TIFFWriteScanline()
  8501. to avoid crash as per bug
  8502. http://bugzilla.remotesensing.org/show_bug.cgi?id=1081.
  8503. 2006-02-26 Andrey Kiselev <dron@ak4719.spb.edu>
  8504. * tools/tiff2pdf.c: Functions t2p_sample_rgbaa_to_rgb() and
  8505. t2p_sample_rgba_to_rgb() was used in place of each other, that was
  8506. resulted in problems with RGBA images with associated alpha.
  8507. As per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1097
  8508. 2006-02-23 Andrey Kiselev <dron@ak4719.spb.edu>
  8509. * libtiff/tif_dirwrite.c: Properly write TIFFTAG_DOTRANGE tag as per
  8510. bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1088.
  8511. * libtiff/tif_print.c: Properly read TIFFTAG_PAGENUMBER,
  8512. TIFFTAG_HALFTONEHINTS, TIFFTAG_YCBCRSUBSAMPLING and TIFFTAG_DOTRANGE
  8513. tags as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1088.
  8514. * tools/tiff2ps.c: Properly scale all the pages when converting
  8515. multipage TIFF with /width/height/center options set. As per bug
  8516. http://bugzilla.remotesensing.org/show_bug.cgi?id=1080
  8517. 2006-02-15 Andrey Kiselev <dron@ak4719.spb.edu>
  8518. * tools/tiff2pdf.c: Do not create output file until all option checks
  8519. will be done. As per bug
  8520. http://bugzilla.remotesensing.org/show_bug.cgi?id=1072
  8521. * tools/bmp2tiff.c: Added ability to create multipage TIFFs from the
  8522. list of input files as per bug:
  8523. http://bugzilla.remotesensing.org/show_bug.cgi?id=1077
  8524. 2006-02-09 Andrey Kiselev <dron@ak4719.spb.edu>
  8525. * libtiff/tif_tile.c: Fix error reporting in TIFFCheckTile() as per
  8526. bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1063.
  8527. * tools/tiffgt.c: Avoid crashing in case of image unsupported by
  8528. TIFFRGBAImage interface.
  8529. * libtiff/tif_color.c: Avoid overflow in case of wrong input as per
  8530. bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1065.
  8531. 2006-02-07 Frank Warmerdam <warmerdam@pobox.com>
  8532. * tools/tiff2pdf.c: Fixed support for non-YCbCr encoded JPEG
  8533. compressed TIFF files, per submission from Dan Cobra.
  8534. 2006-02-07 Andrey Kiselev <dron@ak4719.spb.edu>
  8535. * libtiff/{tif_dirread.c, tif_packbits.c, tif_win32.c}: Properly
  8536. cast values to avoid warnings. As per bug
  8537. http://bugzilla.remotesensing.org/show_bug.cgi?id=1033.
  8538. * libtiff/tif_dirinfo.c: Use TIFF_NOTYPE instead of 0 when
  8539. appropriate. As per bug
  8540. http://bugzilla.remotesensing.org/show_bug.cgi?id=1033.
  8541. * libtiff/tif_aux.c: Fixed type of temporary variable in
  8542. _TIFFCheckMalloc() as per bug
  8543. http://bugzilla.remotesensing.org/show_bug.cgi?id=1033.
  8544. 2006-02-06 Andrey Kiselev <dron@ak4719.spb.edu>
  8545. * libtiff/tif_aux.c: Return static array when fetching default
  8546. YCbCrCoefficients (another problem, reported a the
  8547. http://bugzilla.remotesensing.org/show_bug.cgi?id=1029 entry).
  8548. 2006-02-03 Andrey Kiselev <dron@ak4719.spb.edu>
  8549. * libtiff/tif_dir.c: Special handling for PageNumber, HalftoneHints,
  8550. YCbCrSubsampling and DotRange tags as per bugs
  8551. http://bugzilla.remotesensing.org/show_bug.cgi?id=1029
  8552. http://bugzilla.remotesensing.org/show_bug.cgi?id=1034
  8553. * libtiff/tif_dirread.c: Use _TIFFGetExifFieldInfo() instead of
  8554. _TIFFGetFieldInfo() in TIFFReadEXIFDirectory() call as per bug
  8555. http://bugzilla.remotesensing.org/show_bug.cgi?id=1026.
  8556. 2006-01-23 Andrey Kiselev <dron@ak4719.spb.edu>
  8557. * libtool related stuff updated from the 2.1a branch.
  8558. 2006-01-11 Frank Warmerdam <warmerdam@pobox.com>
  8559. * tools/bmp2tiff,pal2rgb,ppm2tiff,ras2tiff,raw2tiff,sgi2tiff,
  8560. tiff2bw,tiffcp: Fixed jpeg option processing so -c jpeg:r:50 works
  8561. properly as per bug:
  8562. http://bugzilla.remotesensing.org/show_bug.cgi?id=1025
  8563. 2006-01-09 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  8564. * configure.ac: Fix with_default_strip_size comparison as reported
  8565. by Norihiko Murase.
  8566. 2006-01-08 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  8567. * test/Makefile.am (LIBTIFF): Due to linking against libtiff
  8568. incorrectly, tests were not actually testing the uninstalled
  8569. libtiff. Now they are.
  8570. 2006-01-04 Andrey Kiselev <dron@ak4719.spb.edu>
  8571. * libtiff/tif_dirinfo.c: Change definitions for TIFFTAG_ICCPROFILE,
  8572. TIFFTAG_PHOTOSHOP, TIFFTAG_RICHTIFFIPTC, TIFFTAG_XMLPACKET: readcount
  8573. should be uint32 value.
  8574. 2006-01-02 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  8575. * html/man/Makefile.am (htmldoc): Fix htmldoc rule so that it can
  8576. be used if build directory is not the same as source directory.
  8577. * man/{TIFFGetField.3tiff, TIFFSetField.3tiff}: Documented
  8578. TIFFTAG_PHOTOSHOP, TIFFTAG_RICHTIFFIPTC, and TIFFTAG_XMLPACKET,
  8579. and re-sorted tag names in alphabetical order.
  8580. 2005-12-29 Andrey Kiselev <dron@ak4719.spb.edu>
  8581. * libtiff 3.8.0 released.
  8582. 2005-12-28 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  8583. * tools/bmp2tiff.c (main): Fixed warning regarding returning
  8584. inconsistent types from a condition.
  8585. * tools/tiffcmp.c (CheckLongTag): Eliminate warning due to printf
  8586. format.
  8587. * tools/bmp2tiff.c: Reduce compilation warnings on big-endian CPUs.
  8588. 2005-12-28 Joris Van Damme <joris.at.lebbeke@skynet.be>
  8589. * html/{index.html, support.hml, libtiff.html}: Cleaned up HTML
  8590. 2005-12-27 Andrey Kiselev <dron@ak4719.spb.edu>
  8591. * libtiff/tiffio.h: Added VC_EXTRALEAN definition before including
  8592. windows.h, to reduce the compile time.
  8593. 2005-12-26 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  8594. * libtiff/tif_jpeg.c: Improve compilation under MinGW.
  8595. 2005-12-26 Andrey Kiselev <dron@ak4719.spb.edu>
  8596. * libtiff/{tif_dir.c, tif_dir.h, tif_dirread.c, tif_dirinfo.c}:
  8597. tiffFieldInfo and exifFieldInfo arrays definitions moved back to
  8598. tif_dirinfo.c; added _TIFFGetFieldInfo() and _TIFFGetExifFieldInfo()
  8599. private functions to retrieve FieldInfo arrays.
  8600. 2005-12-24 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  8601. * html/build.html: Added some additional instructions for when
  8602. building using MSVC under Windows. Also fixed two HTML syntax
  8603. errors and used HTML Tidy to tidy up the HTML syntax and
  8604. formatting.
  8605. 2005-12-24 Andrey Kiselev <dron@ak4719.spb.edu>
  8606. * libtiff/{tif_aux.c, tif_dir.c, tif_dir.h, tif_dirwrite.c,
  8607. tif_print.c, tif_getimage.c}: Make InkSet, NumberOfInks, DotRange and
  8608. StoNits tags custom.
  8609. 2005-12-23 Andrey Kiselev <dron@ak4719.spb.edu>
  8610. * libtiff/{tif_aux.c, tif_dir.c, tif_dir.h, tif_print.c}: Make
  8611. WhitePoint tag custom.
  8612. * libtiff/{tif_dir.h, tiff.h}: More EXIF tags added.
  8613. 2005-12-23 Joris Van Damme <joris.at.lebbeke@skynet.be>
  8614. * libtiff/tiffio.h: fixed typo that potentially resulted in
  8615. redefininition of USE_WIN32_FILEIO
  8616. * libtiff/*: Added more 'dual-mode' error handling: Done TIFFWarning
  8617. calls in core LibTiff.
  8618. 2005-12-21 Andrey Kiselev <dron@ak4719.spb.edu>
  8619. * libtiff/{tif_dir.c, tif_dir.h, tif_print.c}: Make RichTIFFIPTC,
  8620. Photoshop and ICCProfile tags custom.
  8621. 2005-12-21 Joris Van Damme <joris.at.lebbeke@skynet.be>
  8622. * libtiff/*, contrib/*: Added 'dual-mode' error handling, enabling
  8623. newer code to get context indicator in error handler and still
  8624. remain compatible with older code: Done TIFFError calls everywhere
  8625. except in tools
  8626. 2005-12-20 Andrey Kiselev <dron@ak4719.spb.edu>
  8627. * tools/tiffcp.c: Added many error reporting messages; fixed integer
  8628. overflow as per bug
  8629. http://bugzilla.remotesensing.org/show_bug.cgi?id=789
  8630. 2005-12-16 Frank Warmerdam <warmerdam@pobox.com>
  8631. * contrib/addtiffo/*: Major upgrade by Joris to support subsampled
  8632. YCbCr images in jpeg compressed TIFF files.
  8633. 2005-12-14 Andrey Kiselev <dron@ak4719.spb.edu>
  8634. * tools/tiffcp.c: Return non-zero status when reading fails (again).
  8635. 2005-12-13 Andrey Kiselev <dron@ak4719.spb.edu>
  8636. * tools/tiffcp.c: Return non-zero status when reading fails.
  8637. 2005-12-12 Andrey Kiselev <dron@ak4719.spb.edu>
  8638. * libtiff/{tif_dir.h, tiff.h}: Added more EXIF tags.
  8639. 2005-12-09 Andrey Kiselev <dron@ak4719.spb.edu>
  8640. * libtiff/{tif_dir.c, tif_dir.h, tif_print.c}: Make XMLPacket tag
  8641. custom.
  8642. * tools/tiffinfo.c: Print EXIF directory contents if exist.
  8643. * libtiff/tiff.h: Few EXIF tag numbers added.
  8644. * libtiff/{tif_dirinfo.c, tif_dirread.c, tif_dir.h, tif_dir.c,
  8645. tiffio.h}: Preliminary support to read custom directories. New
  8646. functions: TIFFReadCustomDirectory() and TIFFReadEXIFDirectory().
  8647. 2005-12-07 Andrey Kiselev <dron@ak4719.spb.edu>
  8648. * libtiff/{tif_dirinfo.c, tif_dirread.c, tif_dir.h, tif_dir.c}:
  8649. More work to implement custom directory read support.
  8650. * libtiff/{tif_aux.c, tif_dirinfo.c, tif_dirread.c, tif_dir.h,
  8651. tif_dir.c, tif_print.c}: Make YCbCrCoefficients and ReferenceBlackWhite
  8652. tags custom.
  8653. 2005-12-05 Andrey Kiselev <dron@ak4719.spb.edu>
  8654. * libtiff/tif_dirread.c: One more workaround for broken
  8655. StripByteCounts tag. Handle the case when StripByteCounts array filled
  8656. with completely wrong values.
  8657. 2005-11-30 Andrey Kiselev <dron@ak4719.spb.edu>
  8658. * libtiff/tif_dirinfo.c: Release file descriptor in case of failure
  8659. in the TIFFOpenW() function as per bug
  8660. http://bugzilla.remotesensing.org/show_bug.cgi?id=1003
  8661. * libtiff/tif_dirinfo.c: Correctly use bsearch() and lfind()
  8662. functions as per bug
  8663. http://bugzilla.remotesensing.org/show_bug.cgi?id=1008
  8664. 2005-11-20 Frank Warmerdam <warmerdam@pobox.com>
  8665. * tif_open.c, tiff.h, tiffdump.c: Incorporate preliminary support
  8666. for MS MDI format.
  8667. http://bugzilla.remotesensing.org/show_bug.cgi?id=1002
  8668. * .cvsignore: many files added, and a few update according
  8669. to suggestion of Brad HArds on tiff mailing list.
  8670. 2005-11-03 Frank Warmerdam <warmerdam@pobox.com>
  8671. * libtiff/libtiff.def, tiffiop.h, tiffio.h: Made TIFFFreeDirectory
  8672. public.
  8673. 2005-10-31 Andrey Kiselev <dron@ak4719.spb.edu>
  8674. * tools/fax2tiff.c: Properly calculate sizes of temporary arrays
  8675. as per bug
  8676. http://bugzilla.remotesensing.org/show_bug.cgi?id=943
  8677. * tools/fax2tiff.c: Added option '-r' to set RowsPerStrip parameter
  8678. as per bug
  8679. http://bugzilla.remotesensing.org/show_bug.cgi?id=944
  8680. * tools/tiffdump.c: Fixed typeshift and typemask arrays initialization
  8681. problem as per bug
  8682. http://bugzilla.remotesensing.org/show_bug.cgi?id=946
  8683. * tools/bmp2tiff.c: Fixed possible integer overflow error as per bug
  8684. http://bugzilla.remotesensing.org/show_bug.cgi?id=965
  8685. * libtiff/tif_dirinfo.c: Make XResolution, YResolution and
  8686. ResolutionUnit tags modifiable during write process. As per bug
  8687. http://bugzilla.remotesensing.org/show_bug.cgi?id=977
  8688. * tools/tiffsplit.c: Copy fax related fields over split parts
  8689. as per bug
  8690. http://bugzilla.remotesensing.org/show_bug.cgi?id=983
  8691. 2005-10-21 Frank Warmerdam <warmerdam@pobox.com>
  8692. * tif_dirread.c: Don't try and split single strips into "0" strips
  8693. in ChopUpSingleUncompressedStrip. This happens in some degenerate
  8694. cases (like 1x1 files with stripbytecounts==0 (gtsmall.jp2 embed tiff)
  8695. 2005-10-20 Joris Van Damme <joris.at.lebbeke@skynet.be>
  8696. * tif_fax3.c: changed 'at scanline ...' style warning/errors
  8697. with incorrect use of tif_row, to 'at line ... of
  8698. strip/tile ...' style
  8699. 2005-10-15 Frank Warmerdam <warmerdam@pobox.com>
  8700. * tif_write.c: fixed setting of planarconfig as per bug report
  8701. on the mailing list from Joris.
  8702. 2005-10-07 Andrey Kiselev <dron@ak4719.spb.edu>
  8703. * configure.ac, configure, nmake.opt, libtiff/{tif_config.h,
  8704. tif_dirread.c}: Make the default strip size configurable via the
  8705. --with-default-strip-size and STRIP_SIZE_DEFAULT options.
  8706. 2005-09-30 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  8707. * html/support.html: Fixed link to documentation on Greg Ward's
  8708. LogLuv TIFF format.
  8709. 2005-09-28 Andrey Kiselev <dron@ak4719.spb.edu>
  8710. * tools/tiffdump.c: Fixed crash when reading malformed tags.
  8711. 2005-09-20 Andrey Kiselev <dron@ak4719.spb.edu>
  8712. * tools/tiff2pdf.c: Added missed 'break' statement as per bug
  8713. http://bugzilla.remotesensing.org/show_bug.cgi?id=932
  8714. 2005-09-12 Andrey Kiselev <dron@ak4719.spb.edu>
  8715. * libtiff 3.7.4 released.
  8716. * {configure, configure.ac, Makefile.am, autogen.sh}: Applied patch
  8717. from Patrick Welche (all scripts moved in the 'config' and 'm4'
  8718. directories).
  8719. 2005-09-12 Frank Warmerdam <warmerdam@pobox.com>
  8720. * libtiff/tif_open.c: reintroduce seek to avoid problem on solaris.
  8721. 2005-09-05 Frank Warmerdam <warmerdam@pobox.com>
  8722. * libtiff/tif_dir.c: When prefreeing tv->value in TIFFSetFieldV
  8723. also set it to NULL to avoid double free when re-setting custom
  8724. string fields as per:
  8725. http://bugzilla.remotesensing.org/show_bug.cgi?id=922
  8726. 2005-08-12 Frank Warmerdam <warmerdam@pobox.com>
  8727. * libtiff/tif_print.c: avoid signed/unsigned warning.
  8728. * libtiff/tif_dirread.c: removed unused variable.
  8729. 2005-07-30 Frank Warmerdam <warmerdam@pobox.com>
  8730. * libtiff/tif_dir.c: Fixed up support for swapping "double complex"
  8731. values (128 bits as 2 64 bits doubles). GDAL gcore tests now
  8732. pass on bigendian (macosx) system.
  8733. 2005-07-28 Andrey Kiselev <dron@ak4719.spb.edu>
  8734. * libtiff/{tif_aux.c, tif_dirread.c, tif_fax3.c, tiffiop.h}: Rename
  8735. CheckMalloc() function to _TIFFCheckMalloc() and make it available
  8736. globally as an internal helper routine.
  8737. 2005-07-27 Andrey Kiselev <dron@ak4719.spb.edu>
  8738. * libtiff/tif_dir.c: More improvements in the "pass by value" part of
  8739. the custom tags handling code.
  8740. 2005-07-26 Andrey Kiselev <dron@ak4719.spb.edu>
  8741. * libtiff/{tif_dirread.c, tif_dirinfo.c}: Do not upcast BYTEs to
  8742. SHORTs in the TIFFFetchByteArray(). Remove TIFFFetchExtraSamples()
  8743. function, use TIFFFetchNormalTag() instead as per bug
  8744. http://bugzilla.remotesensing.org/show_bug.cgi?id=831
  8745. Remove TIFFFetchExtraSamples() function, use TIFFFetchNormalTag()
  8746. instead.
  8747. * libtiff/tiffconf.h.in: One more attempt to fix the AIX bug
  8748. http://bugzilla.remotesensing.org/show_bug.cgi?id=39
  8749. 2005-07-25 Andrey Kiselev <dron@ak4719.spb.edu>
  8750. * libtiff/tif_print.c: Fixed printing of the BYTE and SBYTE arrays.
  8751. * tools/tiffdump.c: Added support for TIFF_IFD datatype.
  8752. 2005-07-21 Andrey Kiselev <dron@ak4719.spb.edu>
  8753. * libtiff/tif_write.c: Do not check the PlanarConfiguration field in
  8754. the TIFFWriteCheck() function in case of single band images (as per
  8755. TIFF spec).
  8756. 2005-07-12 Andrey Kiselev <dron@ak4719.spb.edu>
  8757. * SConstruct, libtiff/SConstruct: Added the first very preliminary
  8758. support for SCons software building tool (http://www.scons.org/).
  8759. This is experimental infrastructure and it will exist along with the
  8760. autotools mechanics.
  8761. 2005-07-07 Andrey Kiselev <dron@ak4719.spb.edu>
  8762. * port/{getopt.c, strcasecmp.c, strtoul.c}: Update modules from
  8763. the NetBSD source tree (the old 4-clause BSD license changed to
  8764. the new 3-clause one).
  8765. * configure.ac, port/lfind.c, libtiff/tiffiop.h: Added lfind()
  8766. replacement module.
  8767. * port/dummy.c: Make the dummy function static.
  8768. 2005-07-06 Andrey Kiselev <dron@ak4719.spb.edu>
  8769. * tools/tiffcp.c: Fixed WhitePoint tag copying.
  8770. * libtiff/{tif_dir.c, tif_dir.h, tif_dirinfo.c, tif_print.c}:
  8771. Make FieldOfViewCotangent, MatrixWorldToScreen, MatrixWorldToCamera,
  8772. ImageFullWidth, ImageFullLength and PrimaryChromaticities tags custom.
  8773. 2005-07-04 Andrey Kiselev <dron@ak4719.spb.edu>
  8774. * libtiff 3.7.3 released.
  8775. * configure, configure.ac: Do not use empty -R option when linking
  8776. with --enable-rpath.
  8777. 2005-07-01 Andrey Kiselev <dron@ak4719.spb.edu>
  8778. * libtiff/{tiffiop.h, tif_open.c}: Added open option 'h' to avoid
  8779. reading the first IFD when needed. As per bug
  8780. http://bugzilla.remotesensing.org/show_bug.cgi?id=875
  8781. * libtiff/tif_color.c: Better use of TIFFmin() macro to avoid side
  8782. effects.
  8783. 2005-06-23 Andrey Kiselev <dron@ak4719.spb.edu>
  8784. * tools/tiff2pdf.c: Print two characters per loop in the
  8785. t2p_write_pdf_trailer(). As per bug
  8786. http://bugzilla.remotesensing.org/show_bug.cgi?id=594
  8787. * tools/tiffgt.c: Use MacOS X OpenGL framework when appropriate. As
  8788. per bug
  8789. http://bugzilla.remotesensing.org/show_bug.cgi?id=844
  8790. * acinclude.m4: Updated to latest OpenGL test macros versions.
  8791. * libtiff/tiff.h: Use correct int size on Sparc 64bit/Sun compiler
  8792. platform. As per bug
  8793. http://bugzilla.remotesensing.org/show_bug.cgi?id=855
  8794. 2005-06-14 Andrey Kiselev <dron@ak4719.spb.edu>
  8795. * libtiff/tif_dirinfo.c: Added support for ClipPath, XClipPathUnits
  8796. and YClipPathUnits tags.
  8797. 2005-06-07 Andrey Kiselev <dron@ak4719.spb.edu>
  8798. * contrib/addtiffo/tif_ovrcache.c: Properly extract tile/strip size;
  8799. use pixel sized shift in contiguous case.
  8800. 2005-06-06 Andrey Kiselev <dron@ak4719.spb.edu>
  8801. * contrib/addtiffo/{tif_overview.c, tif_ovrcache.c, tif_ovrcache.h}:
  8802. Make overviews working for contiguous images.
  8803. 2005-06-03 Andrey Kiselev <dron@ak4719.spb.edu>
  8804. * libtiff/tif_open.c: Replace runtime endianness check with the compile
  8805. time one.
  8806. * libtiff/tif_predict.c: Floating point predictor now works on
  8807. big-endian hosts.
  8808. 2005-06-01 Andrey Kiselev <dron@ak4719.spb.edu>
  8809. * libtiff/tif_dir.c: Use _TIFFsetString() function when read custom
  8810. ASCII values.
  8811. * libtiff/{tif_dirinfo.c, tif_dir.h, tif_dir.c, tif_print.c}: Make
  8812. DocumentName, Artist, HostComputer, ImageDescription, Make, Model,
  8813. Copyright, DateTime, PageName, TextureFormat, TextureWrapModes and
  8814. TargetPrinter tags custom.
  8815. * libtiff/tif_jpeg.c: Cleanup the codec state depending on
  8816. TIFF_CODERSETUP flag (to fix memry leaks).
  8817. * libtiff/tif_jpeg.c: Initialize JPEGTables array with zero after
  8818. allocating.
  8819. 2005-05-26 Andrey Kiselev <dron@ak4719.spb.edu>
  8820. * configure.ac, libtiff/Makefile.am: Added workaround for
  8821. OpenBSD/MirOS soname problem as per bug
  8822. http://bugzilla.remotesensing.org/show_bug.cgi?id=838
  8823. * libtiff/tif_dirwrite.c: Use tdir_count when calling
  8824. TIFFCvtNativeToIEEEDouble() in the TIFFWriteDoubleArray() function as
  8825. per bug
  8826. http://bugzilla.remotesensing.org/show_bug.cgi?id=845
  8827. 2005-05-25 Andrey Kiselev <dron@ak4719.spb.edu>
  8828. * tools/ppm2tiff.c: Fixed format string when read PPM file header with
  8829. the fscanf() function. As per bug
  8830. http://bugzilla.remotesensing.org/show_bug.cgi?id=861
  8831. * libtiff/{tif_dirinfo.c, tif_print.c}: TIFFFetchByteArray() returns
  8832. uint16 array when fetching the BYTE and SBYTE filds, so we should
  8833. consider result as pointer to uint16 array and not as array of chars.
  8834. As per bug
  8835. http://bugzilla.remotesensing.org/show_bug.cgi?id=831
  8836. * libtiff/tif_dir.c: More efficient custom tags retrieval as per bug
  8837. http://bugzilla.remotesensing.org/show_bug.cgi?id=830
  8838. * libtiff/tif_win32.c: Use FILE_SHARE_READ | FILE_SHARE_WRITE share
  8839. mode in CreateFile() call as per bug
  8840. http://bugzilla.remotesensing.org/show_bug.cgi?id=829
  8841. * libtiff/Makefile.am: Fixed parallel compilation of the libtiff and
  8842. libtiffxx libraries as per bug
  8843. http://bugzilla.remotesensing.org/show_bug.cgi?id=826
  8844. * contrib/addtiffo/{tif_overview.c, tif_ovrcache.h}: Sinchronized with
  8845. GDAL.
  8846. 2005-05-23 Frank Warmerdam <warmerdam@pobox.com>
  8847. * libtiff/tif_jpeg.c: Substantial fix for addtiffo problems with
  8848. JPEG encoded TIFF files. Pre-allocate lots of space for jpegtables
  8849. in directory.
  8850. 2005-05-22 Frank Warmerdam <warmerdam@pobox.com>
  8851. * libtiff/tif_dirread.c: Changed the code that computes
  8852. stripbytecount[0] if it appears bogus to ignore if stripoffset[0] is
  8853. zero. This is a common case with GDAL indicating a "null" tile/strip.
  8854. 2005-05-17 Andrey Kiselev <dron@ak4719.spb.edu>
  8855. * tools/tiffsplit.c: Check for JPEGTables tag presence before copying.
  8856. 2005-05-06 Frank Warmerdam <warmerdam@pobox.com>
  8857. * libtiff/tif_dirread.c: Applied similar change to
  8858. TIFFFetchPerSampleLongs and TIFFFetchPerSampleAnys.
  8859. http://bugzilla.remotesensing.org/show_bug.cgi?id=843
  8860. * libtiff/tif_jpeg.c: added LIB_JPEG_MK1 support in JPEGDecodeRaw().
  8861. 2005-05-06 Andrey Kiselev <dron@ak4719.spb.edu>
  8862. * tools/tiff2pdfr.c, man/tiff2pdf.1: Calculate the tile width properly;
  8863. added new option '-b' to use interpolation in output PDF files (Bruno
  8864. Ledoux).
  8865. 2005-05-05 Frank Warmerdam <warmerdam@pobox.com>
  8866. * libtiff/tif_dirread.c: Ensure that broken files with too many
  8867. values in PerSampleShorts work ok instead of crashing.
  8868. http://bugzilla.remotesensing.org/show_bug.cgi?id=843
  8869. 2005-04-27 Andrey Kiselev <dron@ak4719.spb.edu>
  8870. * tools/tiffdither.c: Copy the PhotometricInterpretation tag from the
  8871. input file.
  8872. 2005-04-15 Andrey Kiselev <dron@ak4719.spb.edu>
  8873. * libtiff/tif_predict.c: Added ability to encode floating point
  8874. predictor, as per TIFF Technical Note 3.
  8875. 2005-04-14 Andrey Kiselev <dron@ak4719.spb.edu>
  8876. * libtiff/{tif_predict.h, tif_predict.c}: Added ability to decode
  8877. floating point predictor, as per TIFF Technical Note 3.
  8878. 2005-04-13 Andrey Kiselev <dron@ak4719.spb.edu>
  8879. * libtiff/{tiffio.h, tiffiop.h, tif_dir.c, tif_read.c, tif_swab.c}:
  8880. Added _TIFFSwab24BitData() and TIFFSwabArrayOfLong() functions used to
  8881. swap 24-bit floating point values.
  8882. * libtiff/tiff.h: Added predictor constants.
  8883. 2005-04-08 Andrey Kiselev <dron@ak4719.spb.edu>
  8884. * libtiff/{tiffiop.h, tif_dir.c}: Use uint32 type for appropriate
  8885. values in _TIFFVSetField() function. Inspired by the bug
  8886. http://bugzilla.remotesensing.org/show_bug.cgi?id=816
  8887. * man/TIFFSetField.3tiff: Fixed definition of the TIFFTAG_INKNAMES tag
  8888. as per bug
  8889. http://bugzilla.remotesensing.org/show_bug.cgi?id=816
  8890. 2005-03-30 Andrey Kiselev <dron@ak4719.spb.edu>
  8891. * libtiff/tif_open.c: Do not read header in case the output file
  8892. should be truncated (Ron).
  8893. * libtiff/{tif_dirinfo.c, tif_config.h.vc}: Use lfind() instead
  8894. of bsearch() in _TIFFFindFieldInfoByName() function (Ron).
  8895. * libtiff/{tiff.h, tif_dirinfo.c}: Fixes in EXIF tag ordering (Ron).
  8896. 2005-03-22 Andrey Kiselev <dron@ak4719.spb.edu>
  8897. * configure.ac, libtiff/Makefile.am: Use libtool machinery to pass
  8898. rpath option.
  8899. 2005-03-21 Andrey Kiselev <dron@ak4719.spb.edu>
  8900. * libtiff/{tif_dir.c, tif_print.c}: Handle all data types in custom
  8901. tags.
  8902. 2005-03-18 Andrey Kiselev <dron@ak4719.spb.edu>
  8903. * libtiff/dirinfo.c: Added DNG tags.
  8904. * libtiff/{tif_dir.c, tif_print.c}: More improvements in custom tag
  8905. handling code.
  8906. * libtiff/tiff.h: More comments; added missed DNG tag (LensInfo);
  8907. added DNG 1.1.0.0 tags.
  8908. * tools/tif2pdf.c: Fixed problem with alpha channel handling as per
  8909. bug
  8910. http://bugzilla.remotesensing.org/show_bug.cgi?id=794
  8911. * man/TIFFGetField.3tiff: Add a note about autoregistered tags.
  8912. 2005-03-17 Andrey Kiselev <dron@ak4719.spb.edu>
  8913. * nmake.opt: Build with Win32 CRT library by default.
  8914. * tools/tiff2ps.c: Fixed typo in page size handling code.
  8915. * libtiff/{tif_dir.c, tif_print.c}: Support for custom tags, passed
  8916. by value.
  8917. * libtiff/{tiff.h, tif_dirinfo.c, tiffiop.h}: Added EXIF related tags.
  8918. 2005-03-15 Andrey Kiselev <dron@ak4719.spb.edu>
  8919. * libtiff 3.7.2 released.
  8920. 2005-03-09 Andrey Kiselev <dron@ak4719.spb.edu>
  8921. * tools/tiffcmp.c: Added ability to compare the 32-bit integer and
  8922. floating point data; complain on unsupported bit depths.
  8923. 2005-03-05 Andrey Kiselev <dron@ak4719.spb.edu>
  8924. * tif_stream.cxx: Use ios namespace instead of ios_base to support
  8925. GCC 2.95.
  8926. * libtiff/{tiff.h, tif_fax3.tif, tif_jpeg.c}: Applied correct patch from
  8927. Lee Howard for HylaFax DCS tag
  8928. (see http://bugzilla.remotesensing.org/show_bug.cgi?id=771)
  8929. 2005-03-04 Andrey Kiselev <dron@ak4719.spb.edu>
  8930. * configure, configure.ac: Use -rpath option instead of -R as per bug
  8931. http://bugzilla.remotesensing.org/show_bug.cgi?id=732
  8932. * libtiff/{tiff.h, tif_fax3.tif, tif_jpeg.c}: Applied patch from Lee
  8933. Howard to support a new tag TIFFTAG_FAXDCS (34911) used in HylaFax
  8934. software. As per bug
  8935. http://bugzilla.remotesensing.org/show_bug.cgi?id=771
  8936. * nmake.opt, html/build.html: Add more comments, change the config
  8937. file organization a bit as per bug
  8938. http://bugzilla.remotesensing.org/show_bug.cgi?id=764
  8939. * tools/tiffcmp.c: Use properly sized buffer in short arrays comparison
  8940. as per bug
  8941. http://bugzilla.remotesensing.org/show_bug.cgi?id=785
  8942. 2005-03-03 Andrey Kiselev <dron@ak4719.spb.edu>
  8943. * libtiff/tif_dirread.c: More logic to guess missed strip size as per
  8944. bug http://bugzilla.remotesensing.org/show_bug.cgi?id=705
  8945. * tools/fax2ps.c: Replace insecure mktemp() function with the
  8946. tmpfile() as per bug
  8947. http://bugzilla.remotesensing.org/show_bug.cgi?id=786
  8948. 2005-02-04 Andrey Kiselev <dron@ak4719.spb.edu>
  8949. * libtiff/tiff.h: Changed the int8 definition to be always signed char
  8950. as per bug
  8951. http://bugzilla.remotesensing.org/show_bug.cgi?id=727
  8952. * libtiff/tiffio.h: Move TIFFOpenW() function into the extern "C"{}
  8953. block as per bug
  8954. http://bugzilla.remotesensing.org/show_bug.cgi?id=763
  8955. 2005-02-03 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  8956. * tools/tiffgt.c: Fix problem on big-endian CPUs so that images
  8957. display more correctly. Images display brighter than they should
  8958. on a Sun workstation.
  8959. 2005-02-03 Andrey Kiselev <dron@ak4719.spb.edu>
  8960. * libtiff/tif_dirread.c: Estimate strip size in case of wrong or
  8961. suspicious values in the tags. As per bugs
  8962. http://bugzilla.remotesensing.org/show_bug.cgi?id=705
  8963. and
  8964. http://bugzilla.remotesensing.org/show_bug.cgi?id=320
  8965. * tools/tiff2ps.c: Fixed problem with page sizes as per bug
  8966. http://bugzilla.remotesensing.org/show_bug.cgi?id=742
  8967. 2005-01-31 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  8968. * libtiff/tiff.h (TIFFTAG_TILEWIDTH): Corrected description.
  8969. (TIFFTAG_TILELENGTH): Corrected description.
  8970. 2005-01-30 Andrey Kiselev <dron@ak4719.spb.edu>
  8971. * configure.ac: Fixes for --with-docdir option as per bug
  8972. http://bugzilla.remotesensing.org/show_bug.cgi?id=759
  8973. * libtiff/tif_open.c: Remove unnesessary TIFFSeekFile() call as per
  8974. bug
  8975. http://bugzilla.remotesensing.org/show_bug.cgi?id=756
  8976. * libtiff/tif_stream.cxx: Fixes for C++ stream interface from
  8977. Michael Rinne and Edward Lam.
  8978. 2005-01-15 Andrey Kiselev <dron@ak4719.spb.edu>
  8979. * configure.ac: Make the documentation directory location configurable
  8980. via the --with-docdir option (as suggested by Jeremy C. Reed).
  8981. * libtiff/tif_color.c: Use double as the second argument of pow()
  8982. function in TIFFCIELabToRGBInit(). As per bug
  8983. http://bugzilla.remotesensing.org/show_bug.cgi?id=741
  8984. * libtiff/tif_pixarlog.c: Avoid warnings when converting float to
  8985. integer as per bug
  8986. http://bugzilla.remotesensing.org/show_bug.cgi?id=740
  8987. * libtiff/tif_getimage.c: Always fill the error message buffer in
  8988. TIFFRGBAImageBegin() as per bug
  8989. http://bugzilla.remotesensing.org/show_bug.cgi?id=739
  8990. 2005-01-12 Andrey Kiselev <dron@ak4719.spb.edu>
  8991. * libtiff/tif_jpeg.c: Added ability to read/write the fax specific
  8992. TIFFTAG_FAXRECVPARAMS, TIFFTAG_FAXSUBADDRESS and TIFFTAG_FAXRECVTIME
  8993. tags as per bug
  8994. http://bugzilla.remotesensing.org/show_bug.cgi?id=736
  8995. * libtiff/tif_win32.c: Fixed message formatting in functions
  8996. Win32WarningHandler() and Win32ErrorHandler() as per bug
  8997. http://bugzilla.remotesensing.org/show_bug.cgi?id=735
  8998. * tools/tiff2ps.c: Interpret the -w and -h options independently. As
  8999. per bug
  9000. http://bugzilla.remotesensing.org/show_bug.cgi?id=689
  9001. 2005-01-11 Andrey Kiselev <dron@ak4719.spb.edu>
  9002. * libtiff/tiffio.h: Move the color conversion routines in the 'extern
  9003. "C"' section as per bug
  9004. http://bugzilla.remotesensing.org/show_bug.cgi?id=727
  9005. * libtiff/tiff.h: Restore back the workaround for AIX Visual Age C
  9006. compiler to avoid double definition of BSD types as per bug
  9007. http://bugzilla.remotesensing.org/show_bug.cgi?id=39
  9008. * libtiff/Makefile.am: Place the C++ stream API in the separate
  9009. library called libtiffxx to avoid unneeded dependencies. Probably
  9010. there will be more C++ API in the future. As per bugs
  9011. http://bugzilla.remotesensing.org/show_bug.cgi?id=733
  9012. and
  9013. http://bugzilla.remotesensing.org/show_bug.cgi?id=730
  9014. 2005-01-05 Andrey Kiselev <dron@ak4719.spb.edu>
  9015. * tools/tiffdump.c: Fixed problem when read broken TIFFs with the
  9016. wrong tag counts (Dmitry V. Levin, Martin Pitt).
  9017. * configure.ac: Replace --disable-c++ with the --disable-cxx option as
  9018. per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=730
  9019. 2004-12-25 Andrey Kiselev <dron@ak4719.spb.edu>
  9020. * libtiff/tif_getimage.c: More fixes for multiple-alpha-channelled
  9021. RGB-images as per bug
  9022. http://bugzilla.remotesensing.org/show_bug.cgi?id=713
  9023. * tools/tiffset.c: Convert character option to integer value as per
  9024. bug http://bugzilla.remotesensing.org/show_bug.cgi?id=725
  9025. 2004-12-20 Andrey Kiselev <dron@ak4719.spb.edu>
  9026. * libtiff 3.7.1 released.
  9027. * html/tiffset.1.html: Add missed manual page as per bug
  9028. http://bugzilla.remotesensing.org/show_bug.cgi?id=678
  9029. * libtiff/tiff.h: Revert back libtiff data type definitions as per
  9030. bug http://bugzilla.remotesensing.org/show_bug.cgi?id=687
  9031. 2004-12-19 Andrey Kiselev <dron@ak4719.spb.edu>
  9032. * libtiff/tif_dirread.c: Do not forget about TIFF_VARIABLE2 when
  9033. checking for tag count in TIFFReadDirectory() function. As per bug
  9034. http://bugzilla.remotesensing.org/show_bug.cgi?id=713
  9035. * libtiff/{tif_dirread.c, tif_fax3.c}: More argument checking in
  9036. CheckMallock() function.
  9037. * libtiff/tif_getimage.c: Support for multiple-alpha-channelled
  9038. RGB-images as per bug
  9039. http://bugzilla.remotesensing.org/show_bug.cgi?id=718
  9040. 2004-12-15 Frank Warmerdam <warmerdam@pobox.com>
  9041. * libtiff/tif_getimage.c: #define A1 bracketing for clean build on
  9042. SunPro compiler.
  9043. 2004-12-11 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  9044. * autogen.sh: aclocal and autoheader should be executed after
  9045. libtoolize. Also add '-I .' to aclocal invocation to check
  9046. current directory for macros.
  9047. 2004-12-10 Andrey Kiselev <dron@ak4719.spb.edu>
  9048. * libtiff/tif_dirwrite.c: Always write TIFFTAG_SUBIFD using LONG type
  9049. as per bugs
  9050. http://bugzilla.remotesensing.org/show_bug.cgi?id=703
  9051. and
  9052. http://bugzilla.remotesensing.org/show_bug.cgi?id=704
  9053. 2004-12-04 Andrey Kiselev <dron@ak4719.spb.edu>
  9054. * nmake.opt: Link with the user32.lib in windowed mode. As per bug
  9055. http://bugzilla.remotesensing.org/show_bug.cgi?id=697
  9056. * libtiff/tif_win32.c: Use char* strings instead of TCHAR in windowed
  9057. mode as per bug
  9058. http://bugzilla.remotesensing.org/show_bug.cgi?id=697
  9059. * libtiff/tif_config.in.vc: Removed unneeded definitions for
  9060. read/open/close/lseek functions to fix the
  9061. http://bugzilla.remotesensing.org/show_bug.cgi?id=680
  9062. 2004-12-03 Andrey Kiselev <dron@ak4719.spb.edu>
  9063. * libtiff/{tif_dir.c, tif_dirread.c}: Remove TIFFReassignTagToIgnore()
  9064. call from the TIFFReadDirectory() function. TIFFReassignTagToIgnore
  9065. must be removed in the future, as it was never used properly. As per
  9066. bug
  9067. http://bugzilla.remotesensing.org/show_bug.cgi?id=692
  9068. 2004-11-30 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  9069. * libtiff/tif_jpeg.c: Added a work-around in order to allow
  9070. compilation with the heavily modified version of libjpeg delivered
  9071. with Cygwin.
  9072. 2004-11-29 Andrey Kiselev <dron@ak4719.spb.edu>
  9073. * libtiff/tif_dir.c: Properly handle tags, which have the uint32
  9074. counts. As per bug
  9075. http://bugzilla.remotesensing.org/show_bug.cgi?id=693
  9076. * tools/fax2ps.c: Be able to extract the first page (#0). As per bug
  9077. http://bugzilla.remotesensing.org/show_bug.cgi?id=690
  9078. 2004-11-28 Andrey Kiselev <dron@ak4719.spb.edu>
  9079. * libtiff/tif_unix.c: Make UNIX module compilable (and usable)
  9080. on Windows.
  9081. * nmake.opt: Add missed DLLNAME variable.
  9082. 2004-11-26 Frank Warmerdam <warmerdam@pobox.com>
  9083. * libtiff/makefile.vc: make it easier to rename the libtiff DLL.
  9084. 2004-11-24 Andrey Kiselev <dron@ak4719.spb.edu>
  9085. * man/libtiff.3tiff: Improvements in the "LIST OF ROUTINES" table as
  9086. per bug
  9087. http://bugzilla.remotesensing.org/show_bug.cgi?id=545
  9088. * man/tiffset.1: Added manual page for tiffset tool written by Jay
  9089. Berkenbilt. As per bug
  9090. http://bugzilla.remotesensing.org/show_bug.cgi?id=678
  9091. 2004-11-23 Frank Warmerdam <warmerdam@pobox.com>
  9092. * libtiff/tif_error.c: fixed TIFFerror call to be TIFFError.
  9093. 2004-11-21 Frank Warmerdam <warmerdam@pobox.com>
  9094. * html/document.html: Updated Adobe web links as per email from Joris.
  9095. 2004-11-21 Andrey Kiselev <dron@ak4719.spb.edu>
  9096. * libtiff/{tiffio.hxx, tiffio.h}: C++ stream interface moved to new
  9097. file tiffio.hxx. We don't have any C++ in tiffio.h, those who want to
  9098. use C++ streams should #include <tiffio.hxx>.
  9099. 2004-11-13 Andrey Kiselev <dron@ak4719.spb.edu>
  9100. * libtiff/tiff.h: Added Adobe DNG tags.
  9101. * libtiff/tif_win32.c: Typo fixed.
  9102. * libtiff/{tif_stream.cxx, tiffio.h}: C++ stream interface updated to
  9103. be compliant with the latest standard. Appropriate additions in
  9104. makefiles now completed.
  9105. 2004-11-11 Andrey Kiselev <dron@ak4719.spb.edu>
  9106. * tools/tiffset.c, libtiff/tif_dirinfo.c: Properly handle the
  9107. different tag types. As per bug
  9108. http://bugzilla.remotesensing.org/show_bug.cgi?id=600
  9109. 2004-11-10 Andrey Kiselev <dron@ak4719.spb.edu>
  9110. * libtiff/tif_aux.c: Set the appropriate ReferenceBlackWhite array for
  9111. YCbCr image which lacks that tag (noted by Hans Petter Selasky).
  9112. 2004-11-09 Andrey Kiselev <dron@ak4719.spb.edu>
  9113. * libtiff/tif_color.c: Division by zero fixed (Hans Petter Selasky).
  9114. 2004-11-07 Andrey Kiselev <dron@ak4719.spb.edu>
  9115. * libtiff/{tif_stream.cxx, tiffio.h}: Added C++ stream interface
  9116. contributed by Edward Lam (see
  9117. http://bugzilla.remotesensing.org/show_bug.cgi?id=654 for details).
  9118. Though no changes in any makefiles yet.
  9119. 2004-11-05 Frank Warmerdam <warmerdam@pobox.com>
  9120. * libtiff/tif_open.c: Removed close() in TIFFClientOpen() if file
  9121. is bad. This is the callers responsibility.
  9122. http://bugzilla.remotesensing.org/show_bug.cgi?id=651
  9123. 2004-11-05 Andrey Kiselev <dron@ak4719.spb.edu>
  9124. * libtiff/{tiffio.h, tif_win32.c, libtiff.def}: Added TIFFOpenW()
  9125. function to work with the double byte strings (used to represent
  9126. filenames in some locales). As per bug
  9127. http://bugzilla.remotesensing.org/show_bug.cgi?id=625
  9128. * libtiff/tif_dirread.c: Fixed problem when fetching BitsPerSample and
  9129. Compression tags of type LONG from broken TIFFS as per bug
  9130. http://bugzilla.remotesensing.org/show_bug.cgi?id=662
  9131. * libtiff/tif_dirinfo.c: Fixed definition for TIFFTAG_RICHTIFFIPTC,
  9132. the writecount should have uint32 type. As per bug
  9133. http://bugzilla.remotesensing.org/show_bug.cgi?id=662
  9134. * libtiff/tif_write.c: Fixed wrong if() statement in
  9135. TIFFAppendToStrip() function as per bug
  9136. http://bugzilla.remotesensing.org/show_bug.cgi?id=660
  9137. 2004-11-04 Andrey Kiselev <dron@ak4719.spb.edu>
  9138. * libtiff/tif_dirinfo.c: Change definition for TIFFTAG_EXTRASAMPLES
  9139. field. The caller should supply a count when setting this field. As
  9140. per bug
  9141. http://bugzilla.remotesensing.org/show_bug.cgi?id=648
  9142. * libtiff/{tif_jpeg.c, tif_ojpeg.c}: TIFFTAG_JPEGTABLES should have
  9143. uint32 count. Use this type everywhere.
  9144. 2004-11-03 Frank Warmerdam <warmerdam@pobox.com>
  9145. * libtiff/tif_next.c: avoid use of u_long and u_char types. Bug 653.
  9146. 2004-11-02 Frank Warmerdam <warmerdam@pobox.com>
  9147. * tools/tiff2rgba.c: removed extra newlines in usage message.
  9148. 2004-10-30 Andrey Kiselev <dron@ak4719.spb.edu>
  9149. * libtiff/tif_dirwrite.c: Improvements in tag writing code.
  9150. * tools/tiff2ps.c: Fixed wrong variable data type when read Position
  9151. tags (Tristan Hill).
  9152. 2004-10-30 Frank Warmerdam <warmerdam@pobox.com>
  9153. * libtiff/tiffiop.h: added fallback definition of assert() if we
  9154. don't have assert.h.
  9155. 2004-10-29 Andrey Kiselev <dron@ak4719.spb.edu>
  9156. * libtiff/tif_fax3.c: Fixed case with the wrong decode routines
  9157. choosing when the incorrect Group4Options tag set. As per bug
  9158. http://bugzilla.remotesensing.org/show_bug.cgi?id=323
  9159. * libtiff/tif_dirwrite.c: Fixed problem with passing count variable of
  9160. wrong type when writing the TIFF_BYTE/TIFF_SBYTE tags in
  9161. TIFFWriteNormalTag().
  9162. 2004-10-28 Andrey Kiselev <dron@ak4719.spb.edu>
  9163. * tools/tiff2ps.c: Fixed wrong variable data type when read Resolution
  9164. tags (Peter Fales).
  9165. * tools/{bmp2tiff.c, raw2tiff.c}: Get rid of stream I/O functions.
  9166. 2004-10-28 Frank Warmerdam <warmerdam@pobox.com>
  9167. * tools/tiff2pdf.c: added casts to avoid warnings.
  9168. * libtiff/libtiff.def: Added several more entry points required
  9169. to link fax2tiff.c against the DLL on windows.
  9170. 2004-10-27 Andrey Kiselev <dron@ak4719.spb.edu>
  9171. * configure, configure.ac: Added --enable-rpath option to embed linker
  9172. paths into library binary.
  9173. 2004-10-26 Andrey Kiselev <dron@ak4719.spb.edu>
  9174. * tools/tiffset.c: Check the malloc return value (Dmitry V. Levin).
  9175. * libtiff/{tif_strip.c, tif_tile.c}: Zero division problem fixed
  9176. (Vladimir Nadvornik, Dmitry V. Levin).
  9177. 2004-10-16 Andrey Kiselev <dron@ak4719.spb.edu>
  9178. * libtiff 3.7.0 released.
  9179. 2004-10-15 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  9180. * libtiff/tif_jpeg.c: There seems to be no need to include stdio.h
  9181. in this file so its inclusion is removed. Including stdio.h
  9182. sometimes incurs an INT32 typedef conflict between MinGW's
  9183. basetsd.h and libjpeg's jmorecfg.h.
  9184. 2004-10-15 Andrey Kiselev <dron@ak4719.spb.edu>
  9185. * man/bmp2tiff.1: Added manual page for bmp2tiff utility.
  9186. 2004-10-13 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  9187. * tools/tiffcmp.c (leof): Renamed from 'eof' in order to avoid
  9188. conflict noticed under MinGW.
  9189. * ltmain.sh: Fix for MinGW compilation.
  9190. 2004-10-13 Frank Warmerdam <warmerdam@pobox.com>
  9191. * man/tiffsplit.1: Fixed to indicate using aaa-zzz, not aa-zz.
  9192. http://bugzilla.remotesensing.org/show_bug.cgi?id=635
  9193. 2004-10-12 Andrey Kiselev <dron@ak4719.spb.edu>
  9194. * libtiff/{tif_dirread.c, tif_jpeg.c, tif_luv.c, tif_ojpeg.c,
  9195. tif_pixarlog.c, tif_write.c}: Handle the zero strip/tile sizes
  9196. properly (Dmitry V. Levin, Marcus Meissner).
  9197. 2004-10-11 Andrey Kiselev <dron@ak4719.spb.edu>
  9198. * libtiff/tif_dirinfo.c: Type of the TIFFTAG_SUBIFD field changed
  9199. to TIFF_IFD.
  9200. 2004-10-10 Andrey Kiselev <dron@ak4719.spb.edu>
  9201. * tools/bmp2tif.c: Check the space allocation results.
  9202. 2004-10-09 Andrey Kiselev <dron@ak4719.spb.edu>
  9203. * libtiff/tif_dir.c: Initialize td_tilewidth and td_tilelength fields
  9204. of the TIFFDirectory structure with the 0 instead of -1 to avoid
  9205. confusing integer overflows in TIFFTileRowSize() for striped images.
  9206. * tools/tiff2pdf.c: Fixed TransferFunction tag handling reported
  9207. by Ross A. Finlayson.
  9208. * libtiff/tif_dir.c: Fixed custom tags handling as per bug
  9209. http://bugzilla.remotesensing.org/show_bug.cgi?id=629
  9210. 2004-10-08 Frank Warmerdam <warmerdam@pobox.com>
  9211. * libtiff/tif_dirinfo.c: Fix bug with tif_foundfield and reallocation
  9212. of tif_fieldinfo.
  9213. http://bugzilla.remotesensing.org/show_bug.cgi?id=630
  9214. 2004-10-04 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  9215. * contrib/iptcutil/README: Added the missing README which goes
  9216. along with iptcutil.
  9217. 2004-10-03 Andrey Kiselev <dron@ak4719.spb.edu>
  9218. * libtiff/tif_compress.c: Improved error reporting in
  9219. TIFFGetConfiguredCODECs() (Dmitry V. Levin).
  9220. 2004-10-02 Andrey Kiselev <dron@ak4719.spb.edu>
  9221. * libtiff 3.7.0beta2 released.
  9222. * libtiff/{tif_aux.c, tif_compress.c, tif_dirinfo.c, tif_dirwrite.c,
  9223. tif_extension.c, tif_fax3.c, tif_luv.c, tif_packbits.c,
  9224. tif_pixarlog.c, tif_write.c}: Added checks for failed memory
  9225. allocations and integer overflows (Dmitry V. Levin).
  9226. * libtiff/tiff.h: Missed TIFF_BIGTIFF_VERSION constant added.
  9227. 2004-10-01 Frank Warmerdam <warmerdam@pobox.com>
  9228. * libtiff/tif_open.c: added a more informative message if a BigTIFF
  9229. file is opened.
  9230. 2004-09-30 Frank Warmerdam <warmerdam@pobox.com>
  9231. * libtiff/tif_dirinfo.c: changed type of XMLPacket (tag 700) to
  9232. TIFFTAG_BYTE instead of TIFFTAG_UNDEFINED to comply with the info
  9233. in the Adobe XMP Specification.
  9234. 2004-09-29 Andrey Kiselev <dron@ak4719.spb.edu>
  9235. * libtiff/{tif_jpeg.c, tif_pixarlog.c}: Use _TIFFmemset() instead of
  9236. memset().
  9237. * libtiff/{tif_dirread.c, tif_strip.c, tif_tile.c}: Applied patches
  9238. from Dmitry V. Levin to fix possible integer overflow problems.
  9239. 2004-09-28 Andrey Kiselev <dron@ak4719.spb.edu>
  9240. * libtiff/tif_getimage.c: Check for allocated buffers before clearing
  9241. (Dmitry V. Levin).
  9242. 2004-09-26 Andrey Kiselev <dron@ak4719.spb.edu>
  9243. * libtiff/{tif_dir.h, tif_dir.c, tif_dirread.c, tif_write.c}:
  9244. Optimize checking for the strip bounds.
  9245. * libtiff/{tif_dirread.c, tif_strip.c}: TIFFScanlineSize() and
  9246. TIFFRasterScanlineSize() functions report zero in the case of integer
  9247. overflow now. Properly handle this case in TIFFReadDirectory()
  9248. (patches from Dmitry V. Levin).
  9249. 2004-09-25 Andrey Kiselev <dron@ak4719.spb.edu>
  9250. * libtiff/{tif_dirinfo.c, tif_strip.c, tif_tile.c}: Use TIFFhowmany8()
  9251. macro where appropriate.
  9252. * tools/tiff2bw.c: Write ImageWidth/Height tags to output file, as
  9253. noted by Gennady Khokhorin.
  9254. * libtiff/tif_dirread.c: Always check the return values, returned
  9255. by the _TIFFmalloc() (Dmitry V. Levin).
  9256. * libtiff/tif_dir.c: Fixed possible integer overflow _TIFFset*Array()
  9257. functions (Dmitry V. Levin).
  9258. * libtiff/{tif_dirread.c, tif_dir.c, tif_write.c}:
  9259. Potential memory leak fixed in TIFFReadDirectory(), _TIFFVSetField(),
  9260. TIFFGrowStrips() (found by Dmitry V. Levin).
  9261. 2004-09-24 Andrey Kiselev <dron@ak4719.spb.edu>
  9262. * libtiff/{tiffio.h, tif_compress.c}: Added TIFFGetConfiguredCODECs()
  9263. to get the list of configured codecs.
  9264. * libtiff/{tiffiop.h, tif_dirread.c}: More overflow fixes from
  9265. Dmitry V. Levin.
  9266. 2004-09-23 Andrey Kiselev <dron@ak4719.spb.edu>
  9267. * libtiff/tif_dirread.c: Applied patch from Dmitry V. Levin to fix
  9268. possible integer overflow in CheckMalloc() function.
  9269. 2004-09-22 Andrey Kiselev <dron@ak4719.spb.edu>
  9270. * libtiff/{tiffiop.h, tif_strip.c}: Use TIFFhowmany8() macro instead
  9271. of plain TIFFhowmany() where appropriate.
  9272. 2004-09-21 Andrey Kiselev <dron@ak4719.spb.edu>
  9273. * libtiff/tif_getimage.c: Initialize arrays after space allocation.
  9274. 2004-09-19 Andrey Kiselev <dron@ak4719.spb.edu>
  9275. * libtiff 3.7.0beta released.
  9276. * libtiff/{tif_luv.c, tif_next.c, tif_thunder.c}: Several buffer
  9277. overruns fixed, as noted by Chris Evans.
  9278. 2004-09-14 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  9279. * commit: Added a script to make it more convenient to commit
  9280. updates. The CVS commit message is extracted from this ChangeLog
  9281. file.
  9282. 2004-09-14 Andrey Kiselev <dron@ak4719.spb.edu>
  9283. * configure.ac, configure, aclocal.m4, libtiff/{mkspans.c, tif_fax3.c,
  9284. tif_getimage.c, tif_luv.c, tif_lzw.c, tif_ojpeg.c, tif_packbits.c,
  9285. tif_predict.c, tif_read.c, tif_swab.c, tif_thunder.c, tif_write.c,
  9286. tif_dir.c, tif_dirread.c, tif_dirwrite.c, tif_jpeg.c, tif_dirinfo.c,
  9287. tif_vms.c, tif_print.c, tif_strip.c, tif_tile.c, tif_dir.h,
  9288. tif_config.h.in, tiffiop.h}:
  9289. Get rid of BSD data types (u_char, u_short, u_int, u_long).
  9290. 2004-09-13 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  9291. * libtiff/tiff.h: Fix column tagging. Reference current Adobe XMP
  9292. specification. Reference libtiff bug tracking system to submit
  9293. private tag additions.
  9294. 2004-09-12 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  9295. * tools/tiffgt.c: Include "tif_config.h".
  9296. * configure.ac: Use AM_PROG_CC_C_O since it is now needed to build
  9297. tiffgt. This results in the 'compile' script being added to the
  9298. project.
  9299. * tools/Makefile.am (tiffgt_CFLAGS): Add extra build options
  9300. required to find OpenGL headers necessary to build tiffgt. Also
  9301. ensure that the libtiff that we built is used rather than some other
  9302. libtiff installed on the system.
  9303. 2004-09-12 Andrey Kiselev <dron@ak4719.spb.edu>
  9304. * configure.ac, acinclude.m4, aclocal.m4: New macros to detect GLUT
  9305. libraries.
  9306. 2004-09-11 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
  9307. * configure.ac: Pass library configuration defines via
  9308. tif_config.h rather than extending CPPFLAGS. Configure a
  9309. libtiff/tiffconf.h in order to satisfy application requirements
  9310. (not used by library build). Do not define _POSIX_C_SOURCE=2 since
  9311. this causes failure to build on systems which properly respect
  9312. this request.
  9313. * libtiff/tiffconf.h.in: New file to act as the template for the
  9314. configured tiffconf.h
  9315. * libtiff/files.lst (HDRS): Install the configured tiffconf.h.
  9316. 2004-09-10 Frank Warmerdam <warmerdam@pobox.com>
  9317. * html/internals.html: Split off a discussion of adding new tags
  9318. into addingtags.html.
  9319. 2004-09-10 Andrey Kiselev <dron@ak4719.spb.edu>
  9320. * test/{ascii_tag.c, long_tag.c}: Preliminary test suite added.
  9321. * tools/tiff2pdf.c: Fixed reading TransferFunction tag as per bug
  9322. http://bugzilla.remotesensing.org/show_bug.cgi?id=590
  9323. * libtiff/tif_print.c: Fixes in InkNames and NumberOfInks reporting.
  9324. * libtiff/tif_dirread.c: Don't reject to read tags of the
  9325. SamplesPerPixel size when the tag count is greater than number of
  9326. samples as per bug
  9327. http://bugzilla.remotesensing.org/show_bug.cgi?id=576
  9328. * libtiff/tiff.h: Use _TIFF_DATA_TYPEDEFS_ guardian to switch off
  9329. defining int8/uint8/... etc. types. As per bug
  9330. http://bugzilla.remotesensing.org/show_bug.cgi?id=607
  9331. 2004-09-09 Frank Warmerdam <warmerdam@pobox.com>
  9332. * tools/tiff2ps.c, tools/tiffmedian.c: fiddle with include files
  9333. to avoid compile warnings about getopt() and a few other things.
  9334. 2004-09-02 Andrey Kiselev <dron@ak4719.spb.edu>
  9335. * libtiff/tif_dirread.c: Use memcpy() function instead of pointer
  9336. assigning magic in TIFFFetchFloat().
  9337. 2004-09-01 Andrey Kiselev <dron@ak4719.spb.edu>
  9338. * libtiff/{tiffio.h, tif_open.c}: Applied patches from Joris Van Damme
  9339. to avoid requirement for tiffiop.h inclusion in some applications. See
  9340. here
  9341. http://www.asmail.be/msg0054799560.html
  9342. for details.
  9343. * tools/fax2tiff.c: Use the new functions in the code.
  9344. 2004-08-25 Andrey Kiselev <dron@ak4719.spb.edu>
  9345. * tools/tiff2pdf.c: Initialize arrays properly.
  9346. * tools/tiff2ps.c: Avoid zero division in setupPageState() function;
  9347. properly initialize array in PSDataBW().
  9348. 2004-08-24 Andrey Kiselev <dron@ak4719.spb.edu>
  9349. * tools/tiff2pdf.c: More fixes for bug
  9350. http://bugzilla.remotesensing.org/show_bug.cgi?id=590
  9351. from Ross Finlayson.
  9352. 2004-08-23 Andrey Kiselev <dron@ak4719.spb.edu>
  9353. * tools/tiff2ps.c: Fixed problem with uninitialized values.
  9354. * libtiff/tif_dir.c: Initialize tif_foundfield data member in the
  9355. TIFFDefaultDirectory() (in addition to 2004-08-19 fix).
  9356. * tools/tiff2pdf.c: Fixed a bunch of problems as per bug
  9357. http://bugzilla.remotesensing.org/show_bug.cgi?id=590
  9358. 2004-08-20 Andrey Kiselev <dron@ak4719.spb.edu>
  9359. * tools/tiff2pdf.c: Applied patch from Ross Finlayson that checks
  9360. that the input file has compression, photometric interpretation,
  9361. etcetra, tags or if not than a more descriptive error is returned.
  9362. * libtiff/tif_dirread.c: Fixed problem in TIFFReadDirectory() in the
  9363. code, responsible for tag data type checking.
  9364. 2004-08-19 Andrey Kiselev <dron@ak4719.spb.edu>
  9365. * libtiff/{tiffiop.h, tif_dirinfo.c}: Fixed problem with the static
  9366. variable as per bug
  9367. http://bugzilla.remotesensing.org/show_bug.cgi?id=593
  9368. 2004-08-16 Andrey Kiselev <dron@ak4719.spb.edu>
  9369. * tools/ras2tiff.c: Fixed issue with missed big-endian checks as per
  9370. bug http://bugzilla.remotesensing.org/show_bug.cgi?id=586
  9371. 2004-08-01 Andrey Kiselev <dron@ak4719.spb.edu>
  9372. * libtiff/{tif_config.h.in, tif_config.h.vc}: config.h.in and
  9373. config.h.vc files renamed in the tif_config.h.in and tif_config.h.vc.
  9374. 2004-07-24 Andrey Kiselev <dron@ak4719.spb.edu>
  9375. * libtiff/tif_lzw.c: LZW compression code is merged back from the
  9376. separate package. All libtiff tools are updated to not advertise an
  9377. abcence of LZW support.
  9378. 2004-07-12 Andrey Kiselev <dron@ak4719.spb.edu>
  9379. * libtiff/tiffio.h: Revert thandle_t back to void* type.
  9380. 2004-07-11 Andrey Kiselev <dron@ak4719.spb.edu>
  9381. * libtiff/{tif_read.c, tif_tile.c, tif_strip.c}: Fixes in error
  9382. messages, as suggested by Bernd Herd.
  9383. 2004-07-03 Andrey Kiselev <dron@ak4719.spb.edu>
  9384. * libtiff/tif_dir.c: Call TIFFError() instead of producing warnings
  9385. when setting custom tags by value. Reported by Eric Fieleke.
  9386. 2004-06-14 Andrey Kiselev <dron@ak4719.spb.edu>
  9387. * tools/bmp2tiff.c: Add missed RawsPerStrip setting.
  9388. 2004-06-08 Andrey Kiselev <dron@ak4719.spb.edu>
  9389. * tools/bmp2tiff.c: Added new utility to convert Windows BMP files
  9390. into TIFFs.
  9391. 2004-06-07 Andrey Kiselev <dron@ak4719.spb.edu>
  9392. * libtiff 3.7.0alpha released.
  9393. 2004-06-06 Andrey Kiselev <dron@ak4719.spb.edu>
  9394. * libtiff/{tiff.h, tif_dirwrite.c, tif_fax3.c, tif_packbits.c,}: Get rid
  9395. of ugly 64-bit hacks, replace them with the clever (autoconf based )
  9396. ones :-).
  9397. * libtiff/tiffio.h: Define thandle_t as int, not void* (may cause
  9398. problems in 64-bit environment).
  9399. 2004-06-05 Andrey Kiselev <dron@ak4719.spb.edu>
  9400. * tools/tiffset.c: tiffset now can set any libtiff supported tags.
  9401. Tags can be supplied by the mnemonic name or number.
  9402. * libtiff/{tiffio.h, tif_dir.h, tif_dirinfo.c,}: Added two new
  9403. functions TIFFFindFieldInfoByName() and TIFFFieldWithName().
  9404. 2004-05-27 Andrey Kiselev <dron@ak4719.spb.edu>
  9405. * libtiff/tif_ojpeg.c: Fixed problem with duplicated SOI and SOF
  9406. markers as per bug
  9407. http://bugzilla.remotesensing.org/show_bug.cgi?id=581
  9408. 2004-05-24 Andrey Kiselev <dron@ak4719.spb.edu>
  9409. * tools/tiffsplit.c: Don't forget to copy Photometric
  9410. Interpretation tag.
  9411. 2004-05-20 Andrey Kiselev <dron@ak4719.spb.edu>
  9412. * libtiff/{tif_open.c, tiffio.h}: New function added:
  9413. TIFFIsBigEndian(). Function returns nonzero if given was file written
  9414. in big-endian order.
  9415. * tools/tiffsplit.c: Fixed problem with unproperly written multibyte
  9416. files. Now output files will be written using the same byte order
  9417. flag as in the input image. See
  9418. http://bugzilla.remotesensing.org/show_bug.cgi?id=574
  9419. for details.
  9420. 2004-05-19 Frank Warmerdam <warmerdam@pobox.com>
  9421. * libtiff/tif_print.c: added (untested) support for printing
  9422. SSHORT, SLONG and SRATIONAL fields.
  9423. * tools/tiffcp.c: close output file on normal exit.
  9424. 2004-05-17 Andrey Kiselev <dron@ak4719.spb.edu>
  9425. * libtiff/tif_fax3.c: Avoid reading CCITT compression options
  9426. if compression type mismatches. See
  9427. http://bugzilla.remotesensing.org/show_bug.cgi?id=565
  9428. 2004-04-30 Andrey Kiselev <dron@ak4719.spb.edu>
  9429. * libtiff/tif_strip.c: Never return 0 from the
  9430. TIFFNumberOfStrips().
  9431. 2004-04-29 Andrey Kiselev <dron@ak4719.spb.edu>
  9432. * libtiff/tif_dirread.c: Workaround for broken TIFF writers which
  9433. store single SampleFormat value for multisampled images. See
  9434. http://bugzilla.remotesensing.org/show_bug.cgi?id=562
  9435. 2004-04-25 Andrey Kiselev <dron@ak4719.spb.edu>
  9436. * configure.ac, libtiff/{tiff.h, config.h.in}: Added tests for int8,
  9437. int16 and int32 types to avoid complains on some compilers. Details at
  9438. http://bugzilla.remotesensing.org/show_bug.cgi?id=39
  9439. 2004-04-20 Andrey Kiselev <dron@ak4719.spb.edu>
  9440. * tools/tiff2pdf.c: Fixed problem with unaligned access as per bug
  9441. http://bugzilla.remotesensing.org/show_bug.cgi?id=555
  9442. 2004-04-14 Andrey Kiselev <dron@ak4719.spb.edu>
  9443. * libtiff/tif_write.c: Allow in-place updating of the compressed
  9444. images (don't work properly with all codecs). For details see GDAL bug
  9445. http://bugzilla.remotesensing.org/show_bug.cgi?id=534
  9446. 2004-04-06 Andrey Kiselev <dron@ak4719.spb.edu>
  9447. * libtiff/tif_jpeg.c: Workaround for wrong sampling factors used
  9448. in the Intergarph JPEG compressed TIFF images as per bug:
  9449. http://bugzilla.remotesensing.org/show_bug.cgi?id=532
  9450. 2004-04-04 Frank Warmerdam <warmerdam@pobox.com>
  9451. * libtiff/tif_open.c: close clientdata if TIFFClientOpen() fails
  9452. via bad2.
  9453. 2004-03-26 Andrey Kiselev <dron@ak4719.spb.edu>
  9454. * tools/tiffcp.c: Properly set Photometric Interpretation in case of
  9455. JPEG compression of grayscale images.
  9456. * tools/tiffcp.c: Don't emit warnings when Orientation tag does not
  9457. present in the input image.
  9458. 2004-03-19 Andrey Kiselev <dron@ak4719.spb.edu>
  9459. * {many}: The first attempt to switch to autotools.
  9460. 2004-03-03 Andrey Kiselev <dron@ak4719.spb.edu>
  9461. * libtiff/tif_open.c: Use dummy mmap/munmap functions in
  9462. TIFFClientOpen() when the appropriate client functions was not
  9463. supplied by user.
  9464. 2004-03-02 Frank Warmerdam <warmerdam@pobox.com>
  9465. * tools/ycbcr.c: fixed main() declaration as per:
  9466. http://bugzilla.remotesensing.org/show_bug.cgi?id=513
  9467. 2004-02-26 Andrey Kiselev <dron@ak4719.spb.edu>
  9468. * tools/tiffsplit.c: Copy JPEGTables tag contents for JPEG compressed
  9469. images. Reported by Artem Mirolubov.
  9470. * libtiff/tif_dirread.c: Fixed problem with handling TIFF_UNDEFINED
  9471. tag type in TIFFFetchNormalTag() as per bug
  9472. http://bugzilla.remotesensing.org/show_bug.cgi?id=508
  9473. 2004-02-17 Frank Warmerdam <warmerdam@pobox.com>
  9474. * libtiff/tif_codec.c: Fixed typo in TIFFInitPackBits name as per:
  9475. http://bugzilla.remotesensing.org/show_bug.cgi?id=494
  9476. 2004-02-05 Andrey Kiselev <dron@ak4719.spb.edu>
  9477. * libtiff/tif_fax3.c: Fixed problem with CCITT encoding modes as per
  9478. bug
  9479. http://bugzilla.remotesensing.org/show_bug.cgi?id=483
  9480. But we need more work on fax codec to support update mode.
  9481. 2004-01-30 Frank Warmerdam <warmerdam@pobox.com>
  9482. * libtiff/libtiff.def: Added TIFFCurrentDirOffset, TIFFWriteCheck,
  9483. TIFFRGBAImageOK, and TIFFNumberOfDirectories as suggested by
  9484. Scott Reynolds.
  9485. 2004-01-29 Andrey Kiselev <dron@ak4719.spb.edu>
  9486. * libtiff/tiff.h: Fixed tag definitions for TIFFTAG_YCLIPPATHUNITS
  9487. and TIFFTAG_INDEXED as per bug
  9488. http://bugzilla.remotesensing.org/show_bug.cgi?id=475
  9489. * libtiff/{tif_win32.c, tif_unix.c}: Check whether the pointer is
  9490. NULL before proceeding further as per bug
  9491. http://bugzilla.remotesensing.org/show_bug.cgi?id=474
  9492. Check results, returned by the TIFFFdOpen() before returning and close
  9493. file if TIFFFdOpen() failed as per bug
  9494. http://bugzilla.remotesensing.org/show_bug.cgi?id=468
  9495. * libtiff/tif_open.c: More fixes for
  9496. http://bugzilla.remotesensing.org/show_bug.cgi?id=468
  9497. 2004-01-28 Andrey Kiselev <dron@ak4719.spb.edu>
  9498. * libtiff/{libtiff.def, tif_close.c, tiffio.h, tif_open.c}: Separate
  9499. TIFFCleanup() from the TIFFClose() in order to fix the bug
  9500. http://bugzilla.remotesensing.org/show_bug.cgi?id=468
  9501. * tools/tiffcp.c: Fixed problem with wrong interpretation of the
  9502. InkNames tag as per bug
  9503. http://bugzilla.remotesensing.org/show_bug.cgi?id=466
  9504. Memory leak fixed.
  9505. 2004-01-21 Frank Warmerdam <warmerdam@pobox.com>
  9506. * libtiff/tif_dirwrite.c: Fixed handling of writable ASCII tags that
  9507. are field_passcount=TRUE properly. Arguably anonymous custom tags
  9508. should be declared as passcount=FALSE, but I don't want to change
  9509. that without a careful review.
  9510. 2004-01-20 Andrey Kiselev <dron@ak4719.spb.edu>
  9511. * libtiff/tif_write.c: Fixed reporting size of the buffer in case of
  9512. stripped image in TIFFWriteBufferSetup(). As per bug
  9513. http://bugzilla.remotesensing.org/show_bug.cgi?id=460
  9514. 2004-01-11 Andrey Kiselev <dron@ak4719.spb.edu>
  9515. * libtiff/tif_dir.c: Incomplete cleanup in TIFFFreeDirectory(),
  9516. patch from Gerben Koopmans.
  9517. * libtiff/tif_dirread.c: Check field_passcount value before setting
  9518. the value of undefined type, patch from Gerben Koopmans.
  9519. 2004-01-02 Andrey Kiselev <dron@ak4719.spb.edu>
  9520. * tools/tiffcp.c: Fixed problem with wrong Photometric setting for
  9521. non-RGB images.
  9522. 2003-12-31 Andrey Kiselev <dron@ak4719.spb.edu>
  9523. * libtiff/tif_win32.c: Fixed problem with _TIFFrealloc() when the NULL
  9524. pointer passed. Patch supplied by Larry Grill.
  9525. * libtiff/{tiff.h, tif_fax3.c}:Fixes for AMD 64 platform as
  9526. suggested by Jeremy C. Reed.
  9527. 2003-12-26 Andrey Kiselev <dron@ak4719.spb.edu>
  9528. * libtiff 3.6.1 released.
  9529. 2003-12-24 Andrey Kiselev <dron@ak4719.spb.edu>
  9530. * config.guess, config.sub: Updated from the recent upstream.
  9531. 2003-12-22 Andrey Kiselev <dron@ak4719.spb.edu>
  9532. * libtiff/{tif_color, tif_getimage.c, tiffio.h}, man/TIFFcolor.3t:
  9533. More cleanups in color conversion interface, added appropriate manual
  9534. page.
  9535. 2003-12-19 Andrey Kiselev <dron@ak4719.spb.edu>
  9536. * libtiff/{tif_extension.c, tif_dirinfo.c, tiff.h}: Warnings fixed as
  9537. per bug
  9538. http://bugzilla.remotesensing.org/show_bug.cgi?id=357
  9539. * tools/tiff2ps.c: Added support for alpha channel. Fixes
  9540. http://bugzilla.remotesensing.org/show_bug.cgi?id=428
  9541. * libtiff/{libtiff.def, tif_color.c, tif_getimage.c, tiffio.h}:
  9542. Interface for Lab->RGB color conversion is finally cleaned up.
  9543. Added support for ReferenceBlackWhite tag handling when converted from
  9544. YCbCr color space. The latter closes
  9545. http://bugzilla.remotesensing.org/show_bug.cgi?id=120
  9546. 2003-12-07 Andrey Kiselev <dron@ak4719.spb.edu>
  9547. * libtiff/{tif_getimage.c, tiffio.h}: Avoid warnings.
  9548. * libtiff/makefile.vc, tools/makefile.vc: Support for IJG JPEG
  9549. library.
  9550. 2003-12-06 Andrey Kiselev <dron@ak4719.spb.edu>
  9551. * libtiff/{tif_getimage.c, tif_aux.c}: Read WhitePoint tag from the
  9552. file and properly use it for CIE Lab->RGB transform.
  9553. 2003-12-04 Andrey Kiselev <dron@ak4719.spb.edu>
  9554. * libtiff/{tif_getimage.c, tif_color.c, tiffio.h}: YCbCr->RGB
  9555. conversion routines now in the tif_color.c module. New function
  9556. TIFFYCbCrtoRGB() available in TIFF API.
  9557. * libtiff/tif_dirwrite.c: Handle TIFF_IFD tag type correctly.
  9558. 2003-12-03 Andrey Kiselev <dron@ak4719.spb.edu>
  9559. * libtiff/{tif_getimage.c, tif_color.c, tiffio.h}: Improvements in
  9560. CIE Lab conversion code. Start moving YCbCr stuff to the tif_color.c
  9561. module.
  9562. * libtiff/{tif_getimage.c, tiffio.h}, man{TIFFReadRGBAImage.3t,
  9563. TIFFReadRGBAStrip.3t, TIFFReadRGBATile.3t, TIFFRGBAImage.3t}:
  9564. Finally resolved problems with orientation handling. TIFFRGBAImage
  9565. interface now properly supports all possible orientations, i.e. images
  9566. will be flipped both in horizontal and vertical directions if
  9567. required. 'Known bugs' section now removed from the appropriate manual
  9568. pages. Closed bug entry:
  9569. http://bugzilla.remotesensing.org/show_bug.cgi?id=322
  9570. 2003-12-02 Andrey Kiselev <dron@ak4719.spb.edu>
  9571. * libtiff/tif_dir.c: Fixed order of the parameters in TIFFError()
  9572. function calls as per bug
  9573. http://bugzilla.remotesensing.org/show_bug.cgi?id=440
  9574. 2003-11-28 Ross Finlayson <libtiff@apexinternetsoftware.com>
  9575. * tools/tiff2pdf.c: Some bugs fixed.
  9576. 2003-11-27 Andrey Kiselev <dron@ak4719.spb.edu>
  9577. * libtiff/tif_luv.c: Fixed bug in 48-bit to 24-bit conversion routine,
  9578. reported by Antonio Scuri.
  9579. * man/tiff2pdf.1: Few improvements in page layout.
  9580. * Makefile.in, /man/Makefile.in, /html/man/tiff2pdf.1.html:
  9581. Added support for tiff2pdf manual page.
  9582. 2003-11-26 Ross Finlayson <libtiff@apexinternetsoftware.com>
  9583. * /man/tiff2pdf.1: File added to repository.
  9584. 2003-11-26 Andrey Kiselev <dron@ak4719.spb.edu>
  9585. * Makefile.in, /tools/{Makefile.in, makefile.vc}:
  9586. Added support for tiff2pdf utility.
  9587. 2003-11-25 Ross Finlayson <libtiff@apexinternetsoftware.com>
  9588. * /tools/tiff2pdf.c: File added to repository.
  9589. 2003-11-22 Andrey Kiselev <dron@ak4719.spb.edu>
  9590. * /tools/raw2tiff.c: sqrtf() replaced with sqrt().
  9591. 2003-11-21 Andrey Kiselev <dron@ak4719.spb.edu>
  9592. * /tools/raw2tiff.c: #include <getopt.h> removed.
  9593. * tools/{Makefile.in, tiffgt.c}: Unmaintained and platform dependent
  9594. sgigt utility removed and replaced with the completely rewritten
  9595. portable tiffgt tool (depend on OpenGL and GLUT). Initial revision,
  9596. there is a lot of things to improve.
  9597. * libtiff/tif_ojpeg.c: TIFFVGetField() function now can properly
  9598. extract the fields from the OJPEG files. Patch supplied by Ross
  9599. Finlayson.
  9600. * libtiff/{tiffio.h, tif_codec.c}, man/{libtiff.3t, TIFFcodec.3t}:
  9601. Added new function TIFFIsCODECConfigured(), suggested by Ross
  9602. Finlayson.
  9603. 2003-11-18 Andrey Kiselev <dron@ak4719.spb.edu>
  9604. * libtiff/tif_dirinfo.c: Implemented binary search in
  9605. _TIFFMergeFieldInfo(). Patch supplied by Ross Finlayson.
  9606. * libtiff/tif_dir.h: _TIFFFindOrRegisterdInfo declaration replaced
  9607. with _TIFFFindOrRegisterFieldInfo as reported by Ross Finlayson.
  9608. 2003-11-17 Frank Warmerdam <warmerdam@pobox.com>
  9609. * tif_dirread.c: do not mark all anonymously defined tags to be
  9610. IGNOREd.
  9611. 2003-11-17 Andrey Kiselev <dron@ak4719.spb.edu>
  9612. * contrib/pds/{tif_pdsdirread.c, tif_pdsdirwrite.c}: Use
  9613. TIFFDataWidth() function instead of tiffDataWidth array.
  9614. 2003-11-16 Andrey Kiselev <dron@ak4719.spb.edu>
  9615. * libtiff/{tiff.h, tif_dirinfo.c}: Added support for IFD (13)
  9616. datatype, introduced in "Adobe PageMaker TIFF Tech. Notes".
  9617. 2003-11-15 Frank Warmerdam <warmerdam@pobox.com>
  9618. * Makefile.in: fixed missing backslash for tif_color.c in list.
  9619. 2003-11-13 Andrey Kiselev <dron@ak4719.spb.edu>
  9620. * libtiff/{tif_color.c, tif_getimage.c, tiffio.h, Makefile.in}:
  9621. New color space conversion code: CIE L*a*b* 1976 images now supported
  9622. by the TIFFRGBAImage interface. All introduced routines go to new
  9623. module tif_color.c. Eventually all color conversion functions should
  9624. be moved there.
  9625. 2003-11-12 Andrey Kiselev <dron@ak4719.spb.edu>
  9626. * tools/{ras2tiff.c, rasterfile.h}: Properly determine SUN Rasterfiles
  9627. with the reverse byte order (it is reported by the magic header
  9628. field). Problem reported by Andreas Wiesmann.
  9629. * tools/raw2tiff.c, man/raw2tiff.1: Few improvements in correlation
  9630. calculation function. Guessing mechanics now documented in manual page.
  9631. 2003-11-11 Andrey Kiselev <dron@ak4719.spb.edu>
  9632. * tools/raw2tiff.c: Implemented image size guessing using
  9633. correlation coefficient calculation between two neighbour lines.
  9634. 2003-11-09 Frank Warmerdam <warmerdam@pobox.com>
  9635. * libtiff/tif_tile.c: remove spurious use of "s" (sample) in the
  9636. planarconfig_contig case in TIFFComputeTile().
  9637. http://bugzilla.remotesensing.org/show_bug.cgi?id=387
  9638. 2003-11-09 Andrey Kiselev <dron@ak4719.spb.edu>
  9639. * libtiff/tiffiop.h: New macros: TIFFmax, TIFFmin and TIFFrint.
  9640. 2003-11-07 Andrey Kiselev <dron@ak4719.spb.edu>
  9641. * libtiff/{tiffio.h, tif_strip.c}, man/{TIFFstrip.3t, libtiff.3t}:
  9642. Added TIFFRawStripSize() function as suggested by Chris Hanson.
  9643. 2003-11-03 Andrey Kiselev <dron@ak4719.spb.edu>
  9644. * libtiff/{tif_lzw.c, tif_fax3.c}: Proper support for update mode as
  9645. per bug
  9646. http://bugzilla.remotesensing.org/show_bug.cgi?id=424
  9647. 2003-10-29 Andrey Kiselev <dron@ak4719.spb.edu>
  9648. * libtiff/libtiff.def: Added TIFFReadRGBAImageOriented.
  9649. * html/build.html: Added note about GNU make requirement.
  9650. 2003-10-25 Andrey Kiselev <dron@ak4719.spb.edu>
  9651. * Makefile.in: Fixes in using MAKEFLAGS as per bug
  9652. http://bugzilla.remotesensing.org/show_bug.cgi?id=418
  9653. * port/install.sh.in: Option -p added to the mkdir command to create
  9654. all directory tree structure before installing.
  9655. 2003-10-18 Andrey Kiselev <dron@ak4719.spb.edu>
  9656. * /tools/tiff2ps.c: #include <strings.h> replaced with the
  9657. #include <string.h>.
  9658. 2003-10-16 Andrey Kiselev <dron@ak4719.spb.edu>
  9659. * Makefile.in: Add an absolute path to the test_pics.sh call.
  9660. 2003-10-12 Andrey Kiselev <dron@ak4719.spb.edu>
  9661. * libtiff/tiffcomp.h: #define _BSDTYPES_DEFINED when defining BSD
  9662. typedefs.
  9663. 2003-10-09 Andrey Kiselev <dron@ak4719.spb.edu>
  9664. * configure, libtiff/{Makefile.in, mkversion.c}:
  9665. Relative buildings fixed.
  9666. * tools/Makefile.in: Added "-I../libtiff" to the tiffset building
  9667. rule.
  9668. 2003-10-07 Andrey Kiselev <dron@ak4719.spb.edu>
  9669. * Makefile.in: Added missed v3.6.0.html.
  9670. * libtiff/tiffio.h: Typo fixed: ORIENTATION_BOTTOMLEFT replaced with
  9671. ORIENTATION_BOTLEFT.
  9672. 2003-10-04 Andrey Kiselev <dron@ak4719.spb.edu>
  9673. * 3.6.0 final release.
  9674. 2003-10-03 Andrey Kiselev <dron@ak4719.spb.edu>
  9675. * libtiff/{tif_getimage.c, tiffio.h}, man/TIFFReadRGBAImage.3t: New
  9676. function TIFFReadRGBAImageOriented() implemented to retrieve raster
  9677. array with user-specified origin position as suggested by Jason Frank.
  9678. See
  9679. http://bugzilla.remotesensing.org/show_bug.cgi?id=322
  9680. for details.
  9681. * tools/tiff2rgba.c: Switched to use TIFFReadRGBAImageOriented()
  9682. instead of TIFFReadRGBAImage().
  9683. * tools/tiff2ps.c: Fixed possible endless loop as per bug
  9684. http://bugzilla.remotesensing.org/show_bug.cgi?id=404
  9685. 2003-09-30 Andrey Kiselev <dron@ak4719.spb.edu>
  9686. * libtiff/tif_dirread.c: Check field counter against number of fields
  9687. in order to fix
  9688. http://bugzilla.remotesensing.org/show_bug.cgi?id=366
  9689. * libtiff/tif_fax3.c: Fix wrong line numbering as per bug
  9690. http://bugzilla.remotesensing.org/show_bug.cgi?id=342
  9691. 2003-09-25 Andrey Kiselev <dron@ak4719.spb.edu>
  9692. * libtiff/{tiffiop.h, tif_dirread.c, tif_dir.c, tif_open.c,
  9693. tif_close.c}: Store a list of opened IFD to prevent looping as per bug
  9694. http://bugzilla.remotesensing.org/show_bug.cgi?id=383
  9695. 2003-09-23 Andrey Kiselev <dron@ak4719.spb.edu>
  9696. * libtiff/tif_dirread.c: More fixes for EstimateStripByteCounts(). See
  9697. http://bugzilla.remotesensing.org/show_bug.cgi?id=358
  9698. 2003-08-21 Andrey Kiselev <dron@ak4719.spb.edu>
  9699. * tools/tiffmedian.c: int declaration replaced with the uint32 to
  9700. support large images as per bug
  9701. http://bugzilla.remotesensing.org/show_bug.cgi?id=382
  9702. 2003-08-12 Andrey Kiselev <dron@ak4719.spb.edu>
  9703. * libtiff/Makefile.in: Fixed problem with building in different
  9704. directory.
  9705. * tools/tiff2ps.c: Added missing #include <strings.h>.
  9706. * libtiff/tif_dirwrite.c: More fixes for custom tags code
  9707. from Ashley Dreier.
  9708. 2003-08-07 Andrey Kiselev <dron@ak4719.spb.edu>
  9709. * tools/tiff2ps.c: Added page size setting when creating PS Level 2.
  9710. Patch submitted by Balatoni Denes (with corrections from Tom
  9711. Kacvinsky).
  9712. * tools/tiff2ps.c: Fixed PS comment emitted when FlateDecode is
  9713. being used. Reported by Tom Kacvinsky.
  9714. * libtiff/tif_dirwrite.c: Fixed problem with custom tags writing,
  9715. reported by Ashley Dreier.
  9716. * libtiff/tif_print.c: Fixed problem with float tags reading, support
  9717. for printing RATIONAL and BYTE tags added.
  9718. 2003-08-05 Andrey Kiselev <dron@ak4719.spb.edu>
  9719. * libtiff/tif_lzw.c: Move LZW codec state block allocation back to
  9720. TIFFInitLZW(), because its initialization in LZWSetupDecode() cause
  9721. problems with predictor initialization. Remove O_RDONLY check during
  9722. state block allocation to be able open LZW compressed files in update
  9723. mode.
  9724. Problem exist for libtiff version of the tif_lzw.c module. One from
  9725. lzw-compression-kit hasn't such troubles.
  9726. 2003-08-04 Frank Warmerdam <warmerdam@pobox.com>
  9727. * libtiff/tif_write.c: modified tif_write.c so that the various
  9728. encoded write functions use tif_postdecode() to apply byte order
  9729. swapping (swab) to the application passed data buffer if the same
  9730. would be done when reading. This allows us to write pixel data with
  9731. more than 8 bits per sample to existing files of a non-native byte
  9732. order. One side effect of this change is the applications buffer
  9733. itself is altered in this case by the act of writing.
  9734. http://bugzilla.remotesensing.org/show_bug.cgi?id=171
  9735. 2003-07-25 Frank Warmerdam <warmerdam@pobox.com>
  9736. * libtiff/tif_open.c: avoid signed/unsigned casting warning
  9737. initializing typemask as per patch from J.A. Strother.
  9738. * tools/tiffcp.c: fixed signed/unsigned casting warning.
  9739. * libtiff/tif_print.c: dos2unix conversion.
  9740. * tools/tiffsplit.c: increased the maximum number of pages that
  9741. can be split. Patch provided by Andrew J. Montalenti.
  9742. 2003-07-11 Andrey Kiselev <dron@ak4719.spb.edu>
  9743. * tools/raw2tiff.c: Added option `-p' to explicitly select color
  9744. space of input image data. Closes
  9745. http://bugzilla.remotesensing.org/show_bug.cgi?id=364
  9746. 2003-07-08 Frank Warmerdam <warmerdam@pobox.com>
  9747. * tif_aux.c, tif_codec.c, tif_dir.c, tif_dirread.c, tif_extension.c,
  9748. tif_fax3.c, tif_getimage.c, tif_luv.c, tif_lzw.c, tif_next.c,
  9749. tif_packbits.c, tif_predict.c, tif_print.c, tif_swab.c, tif_thunder.c:
  9750. avoid casting warning at /W4.
  9751. 2003-07-03 Andrey Kiselev <dron@ak4719.spb.edu>
  9752. * tools/thumbnail.c: Memory leak fixed as reported by Robert S. Kissel.
  9753. 2003-06-30 Andrey Kiselev <dron@ak4719.spb.edu>
  9754. * libtiff/tif_pixarlog.c: Unused variables removed.
  9755. * libtiff/{tif_dirread.c, tif_dir.c}: Fixed problem with
  9756. EstimateStripByteCounts() as per bug
  9757. http://bugzilla.remotesensing.org/show_bug.cgi?id=358
  9758. * libtiff/{tif_dirwrite.c, tif_packbits.c}: Fixed compilation on
  9759. 64-bit architectures as per bug
  9760. http://bugzilla.remotesensing.org/show_bug.cgi?id=357
  9761. * libtiff/tif_dirinfo.c: TIFFDataWidth() returns 0 in case of
  9762. unknown data type.
  9763. 2003-06-19 Frank Warmerdam <warmerdam@pobox.com>
  9764. * libtiff/tif_print.c: fixed some serious bugs when printing
  9765. custom tags ... almost certain to crash.
  9766. * libtiff/tif_dirread.c: Don't ignore custom fields that are
  9767. autodefined. Not sure how this got to be like this.
  9768. 2003-06-18 Andrey Kiselev <dron@ak4719.spb.edu>
  9769. * 3.6.0 Beta2 released.
  9770. * tools/tiffcmp.c, man/tiffcmp.1: Fixed problem with unused data
  9771. comparing as per bug
  9772. http://bugzilla.remotesensing.org/show_bug.cgi?id=349
  9773. `-z' option now can be used to set the number of reported different
  9774. bytes.
  9775. 2003-06-09 Andrey Kiselev <dron@ak4719.spb.edu>
  9776. * tools/tiffcp.c, man/tiffcp.1: Added possibility to specify value -1
  9777. to -r option to get the entire image as one strip. See
  9778. http://bugzilla.remotesensing.org/show_bug.cgi?id=343
  9779. for details.
  9780. 2003-06-04 Andrey Kiselev <dron@ak4719.spb.edu>
  9781. * tools/tiffcp.c: Set the correct RowsPerStrip and PageNumber
  9782. values as per bug
  9783. http://bugzilla.remotesensing.org/show_bug.cgi?id=343
  9784. 2003-05-27 Frank Warmerdam <warmerdam@pobox.com>
  9785. * libtiff/tif_jpeg.c: modified segment_height calculation to always
  9786. be a full height tile for tiled images. Also changed error to just
  9787. be a warning.
  9788. 2003-05-25 Andrey Kiselev <dron@ak4719.spb.edu>
  9789. * tools/fax2tiff.c: Page numbering fixed, as per bug
  9790. http://bugzilla.remotesensing.org/show_bug.cgi?id=341
  9791. 2003-05-20 Andrey Kiselev <dron@ak4719.spb.edu>
  9792. * contrib/ojpeg/{Makefile.in, jdhuff.h, jinclude.h, ojpeg.c, README},
  9793. configure, Makefile.in: Switched back to the old behaviour. Likely
  9794. better solution should be found for OJPEG support.
  9795. 2003-05-11 Andrey Kiselev <dron@ak4719.spb.edu>
  9796. * libtiff/mkversion.c: Fixed problem with wrong string size when
  9797. reading RELEASE-DATE file.
  9798. 2003-05-07 Andrey Kiselev <dron@ak4719.spb.edu>
  9799. * tools/tiff2ps.c: Fixed bug in Ascii85EncodeBlock() function: array
  9800. index was out of range.
  9801. 2003-05-06 Andrey Kiselev <dron@ak4719.spb.edu>
  9802. * contrib/ojpeg/{Makefile.in, jdhuff.h, jinclude.h, ojpeg.c, README},
  9803. configure, Makefile.in: Improved libtiff compilation with OJPEG
  9804. support. Now no need for patching IJG JPEG library, hack required by
  9805. libtiff will be compiled and used in-place. Implemented with
  9806. suggestion and help from Bill Allombert, Debian's libjpeg maintainer.
  9807. * libtiff/tif_aux.c: Properly handle TIFFTAG_PREDICTOR in
  9808. TIFFVGetFieldDefaulted() function.
  9809. 2003-05-05 Andrey Kiselev <dron@ak4719.spb.edu>
  9810. * tools/ppm2tiff.c: PPM header parser improved: now able to skip
  9811. comments.
  9812. * tools/tiffdither.c: Fixed problem with bit fill order tag setting:
  9813. was not copied from source image.
  9814. * libtiff/getimage.c: Workaround for some images without correct
  9815. info about alpha channel as per bug
  9816. http://bugzilla.remotesensing.org/show_bug.cgi?id=331
  9817. 2003-04-29 Andrey Kiselev <dron@ak4719.spb.edu>
  9818. * tools/tiff2ps.c, man/tiff2ps.1: Add ability to generate PS Level 3.
  9819. It basically allows one to use the /flateDecode filter for ZIP
  9820. compressed TIFF images. Patch supplied by Tom Kacvinsky. Fixes
  9821. http://bugzilla.remotesensing.org/show_bug.cgi?id=328
  9822. * tools/tiff2ps.c: Force deadzone printing when EPS output specified
  9823. as per bug
  9824. http://bugzilla.remotesensing.org/show_bug.cgi?id=325
  9825. 2003-04-17 Andrey Kiselev <dron@ak4719.spb.edu>
  9826. * libtiff/tif_dirread.c: Removed additional check for StripByteCounts
  9827. due to problems with multidirectory images. Quality of error messages
  9828. improved.
  9829. 2003-04-16 Andrey Kiselev <dron@ak4719.spb.edu>
  9830. * tools/tiffcp.c: Fixed problem with colorspace conversion for JPEG
  9831. encoded images. See bug entries
  9832. http://bugzilla.remotesensing.org/show_bug.cgi?id=275
  9833. and
  9834. http://bugzilla.remotesensing.org/show_bug.cgi?id=23
  9835. * libtiff/tif_dirread.c: Additional check for StripByteCounts
  9836. correctness. Fixes
  9837. http://bugzilla.remotesensing.org/show_bug.cgi?id=320
  9838. 2003-03-12 Andrey Kiselev <dron@ak4719.spb.edu>
  9839. * tools/{fax2ps.c, fax2tiff.c, gif2tiff.c, pal2rgb.c, ppm2tiff.c,
  9840. ras2tiff.c, raw2tiff.c, rgb2ycbcr.c, thumbnail.c, tiff2bw.c,
  9841. tiff2ps.c, tiff2rgba.c, tiffcp.c, tiffdither.c, tiffinfo.c,
  9842. tiffmedian.c}: Added library version reporting facility to all tools.
  9843. 2003-03-06 Frank Warmerdam <warmerdam@pobox.com>
  9844. * port/install.sh.in: Fixed problems with install producing paths
  9845. like ///usr/local/lib on cygwin.
  9846. 2003-02-27 Andrey Kiselev <dron@ak4719.spb.edu>
  9847. * tools/fax2tiff.c, man/fax2tiff.1: New switch (-X) to set width of
  9848. raw input page. Patch supplied by Julien Gaulmin. See
  9849. http://bugzilla.remotesensing.org/show_bug.cgi?id=293
  9850. for details.
  9851. 2003-02-26 Frank Warmerdam <warmerdam@pobox.com>
  9852. * libtiff/tif_dir.c: fixed up the tif_postdecode settings
  9853. responsible for byte swapping complex image data.
  9854. * libtiff/tif_lzw.c: fixed so that decoder state isn't allocated till
  9855. LZWSetupDecode(). Needed to read LZW files in "r+" mode.
  9856. 2003-02-07 Andrey Kiselev <dron@ak4719.spb.edu>
  9857. * tools/ppm2tiff.c: Fixed problem with too many arguments.
  9858. 2003-02-04 Andrey Kiselev <dron@ak4719.spb.edu>
  9859. * tools/raw2tiff.c: Memory leak fixed.
  9860. 2003-02-03 Andrey Kiselev <dron@ak4719.spb.edu>
  9861. * tools/fax2tiff.c, man/fax2tiff.1: Applied patch from Julien Gaulmin
  9862. (thanks, Julien!). More switches for fax2tiff tool for better control
  9863. of input and output. Details at
  9864. http://bugzilla.remotesensing.org/show_bug.cgi?id=272
  9865. 2003-02-03 Frank Warmerdam <warmerdam@pobox.com>
  9866. * libtiff/tif_jpeg.c: Modified to defer initialization of jpeg
  9867. library so that we can check if there is already any tile/strip data
  9868. before deciding between creating a compressor or a decompressor.
  9869. 2003-01-31 Frank Warmerdam <warmerdam@pobox.com>
  9870. * libtiff/tif_write.c: TIFFWriteCheck() now fails if the image is
  9871. a pre-existing compressed image. That is, image writing to
  9872. pre-existing compressed images is not allowed.
  9873. * libtiff/tif_open.c: Removed error if opening a compressed file
  9874. in update mode.
  9875. http://bugzilla.remotesensing.org/show_bug.cgi?id=198
  9876. 2003-01-31 Andrey Kiselev <dron@ak4719.spb.edu>
  9877. * config.guess, config.sub: Updated to recent upstream versions.
  9878. 2003-01-15 Frank Warmerdam <warmerdam@pobox.com>
  9879. * cut 3.6.0 Beta release.
  9880. 2002-12-20 Andrey Kiselev <dron@ak4719.spb.edu>
  9881. * tools/fax2ps.c, man/fax2ps.1: Page size was determined
  9882. in wrong way as per bug
  9883. http://bugzilla.remotesensing.org/show_bug.cgi?id=239
  9884. 2002-12-17 Frank Warmerdam <warmerdam@pobox.com>
  9885. * libtiff/tif_dirread.c: Allow wrong sized arrays in
  9886. TIFFFetchStripThing().
  9887. http://bugzilla.remotesensing.org/show_bug.cgi?id=49
  9888. 2002-12-02 Frank Warmerdam <warmerdam@pobox.com>
  9889. * libtiff/tif_dir.c: fix problem with test on td_customValueCount.
  9890. Was using realloc even first time. Fix by Igor Venevtsev.
  9891. 2002-11-30 Frank Warmerdam <warmerdam@pobox.com>
  9892. * libtiff/tif_dir.c: fixed bug with resetting an existing custom
  9893. field value.
  9894. * libtiff/tif_dir.c: Fixed potential problem with ascii "custom"
  9895. tags in TIFFVGetField() ... added missing break.
  9896. 2002-10-14 Frank Warmerdam <warmerdam@pobox.com>
  9897. * tools/tiff2ps.c: fixes a problem where "tiff2ps -1e" did not make
  9898. the scanline buffer long enough when writing rgb triplets.
  9899. The scanline needs to be 3 X the number of dots or else it will
  9900. contain an incomplete triplet and programs that try to separate
  9901. the eps by redefining the colorimage operator will get messed up.
  9902. Patch supplied by William Bader.
  9903. * Makefile.in: added tif_extension.c to file list as per
  9904. http://bugzilla.remotesensing.org/show_bug.cgi?id=218.
  9905. 2002-10-11 Andrey Kiselev <dron@ak4719.spb.edu>
  9906. * configure, config.site, libtiff/{tif_unix.c, Makefile.in}: Fix for
  9907. large files (>2GiB) supporting. New option in the config.site:
  9908. LARGEFILE="yes". Should be enough for I/O of the large files.
  9909. 2002-10-10 Frank Warmerdam <warmerdam@pobox.com>
  9910. * libtiff/html/v3.6.0.html: new release notes.
  9911. * libtiff/index.html: removed faq, cvs snapshot cruft. Added email
  9912. link for Andrey. Pointer to v3.6.0.html.
  9913. * libtiff/Makefile.in: added direct rule for tiffvers.h for release.
  9914. 2002-10-07 Andrey Kiselev <dron@ak4719.spb.edu>
  9915. * tools/tiff2ps.c, man/tiff2ps.1: Applied patch form Sebastian Eken
  9916. (thanks, Sebastian!). New switches:
  9917. -b # for a bottom margin of # inches
  9918. -c center image
  9919. -l # for a left margin of # inches
  9920. -r rotate the image by 180 degrees
  9921. New features merged with code for shrinking/overlapping.
  9922. Previously added -c and -n switches (for overriding PS units) renamed
  9923. in -x and -y respectively.
  9924. http://bugzilla.remotesensing.org/show_bug.cgi?id=200
  9925. * html/man/*.html: Updated from actual manual pages.
  9926. 2002-10-06 Frank Warmerdam <warmerdam@pobox.com>
  9927. * libtiff/tif_jpeg.c: fixed problem with boolean defined with wrong
  9928. size on windows. Use #define boolean hack.
  9929. http://bugzilla.remotesensing.org/show_bug.cgi?id=188
  9930. * libtiff/tiff.h: Don't do special type handling in tiff.h unless
  9931. USING_VISUALAGE is defined.
  9932. http://bugzilla.remotesensing.org/show_bug.cgi?id=39
  9933. 2002-10-03 Frank Warmerdam <warmerdam@pobox.com>
  9934. * libtiff/tiff.h: added COMPRESSION_JP2000.
  9935. 2002-10-02 Andrey Kiselev <dron@ak4719.spb.edu>
  9936. * libtiff/tif_dirread.c: Another fix for the fetching SBYTE arrays
  9937. by the TIFFFetchByteArray() function. Should finally resolve
  9938. http://bugzilla.remotesensing.org/show_bug.cgi?id=52
  9939. * configure: Set -DPIXARLOG_SUPPORT option along with -DZIP_SUPPORT
  9940. * html/Makefile.in: New targets added: html and groffhtml for
  9941. producing HTML representations of the manual pages automatically.
  9942. html target uses man2html tool, groffhtml uses groff tool.
  9943. 2002-09-29 Frank Warmerdam <warmerdam@pobox.com>
  9944. * configure, libtiff/Makefile.in: Added SCO OpenServer 5.0.6 support
  9945. from John H. DuBois III.
  9946. 2002-09-15 Andrey Kiselev <dron@ak4719.spb.edu>
  9947. * Makefile.in, /man/{raw2tiff.1, Makefile.in, libtiff.3}: Added
  9948. manual page for raw2tiff(1) tool.
  9949. 2002-09-12 Andrey Kiselev <dron@ak4719.spb.edu>
  9950. * /libtiff/{tiffio.h, tif_dir.h}: TIFFDataWidth() declaration moved to
  9951. the tiffio.h header file.
  9952. * Makefile.in, /man/{TIFFDataWidth.3t, Makefile.in, libtiff.3}: Added
  9953. manual page for TIFFDataWidth() function
  9954. 2002-09-08 Frank Warmerdam <warmerdam@pobox.com>
  9955. * libtiff/tif_dirread.c: Expand v[2] to v[4] in TIFFFetchShortPair()
  9956. as per http://bugzilla.remotesensing.org/show_bug.cgi?id=196.
  9957. * tools/tiff2ps.c: Don't emit BeginData/EndData DSC comments
  9958. since we are unable to properly include the amount to skip.
  9959. http://bugzilla.remotesensing.org/show_bug.cgi?id=80
  9960. 2002-09-02 Andrey Kiselev <dron@ak4719.spb.edu>
  9961. * /libtiff/tif_dirread.c: Fixed problem with SBYTE type data fetching
  9962. in TIFFFetchByteArray(). Problem described at
  9963. http://bugzilla.remotesensing.org/show_bug.cgi?id=52
  9964. 2002-08-22 Andrey Kiselev <dron@ak4719.spb.edu>
  9965. * /libtiff/tif_dirinfo.c: Further additions to free custom fields
  9966. in _TIFFSetupFieldInfo() function.
  9967. See http://bugzilla.remotesensing.org/show_bug.cgi?id=169 for details.
  9968. * /libtiff/tif_lzw.c: Additional consistency checking added in
  9969. LZWDecode() and LZWDecodeCompat().
  9970. Fixes http://bugzilla.remotesensing.org/show_bug.cgi?id=190
  9971. and http://bugzilla.remotesensing.org/show_bug.cgi?id=100
  9972. * /libtiff/tif_lzw.c:
  9973. Added check for valid code lengths in LZWDecode() and
  9974. LZWDecodeCompat(). Fixes
  9975. http://bugzilla.remotesensing.org/show_bug.cgi?id=115
  9976. 2002-08-16 Andrey Kiselev <dron@ak4719.spb.edu>
  9977. * /libtiff/{Makefile.vc, libtiff.def}:
  9978. Missed declarations added.
  9979. 2002-08-15 Frank Warmerdam <warmerdam@pobox.com>
  9980. * tif_getimage.c: Ensure that TIFFRGBAImageBegin() returns the
  9981. return code from the underlying pick function.
  9982. http://bugzilla.remotesensing.org/show_bug.cgi?id=177
  9983. * tif_dir.h: changed FIELD_CODEC to 66 from 64 to avoid overlap
  9984. with FIELD_CUSTOM as mentioned in bug 169.
  9985. * tif_close.c: added logic to free dynamically created anonymous
  9986. field definitions to correct a small memory leak.
  9987. http://bugzilla.remotesensing.org/show_bug.cgi?id=169
  9988. 2002-08-10 Andrey Kiselev <dron@ak4719.spb.edu>
  9989. * /tools/{raw2tiff.c, Makefile.in, Makefile.lcc, Makefile.vc}:
  9990. New tool: raw2tiff --- raw images to TIFF converter. No manual page yet.
  9991. 2002-07-31 Frank Warmerdam <warmerdam@pobox.com>
  9992. * libtiff/tif_jpeg.c: Fixed problem with setting of nrows in
  9993. JPEGDecode() as per bugzilla bug (issue 1):
  9994. http://bugzilla.remotesensing.org/show_bug.cgi?id=129
  9995. * libtiff/{tif_jpeg.c,tif_strip.c,tif_print.c}: Hacked tif_jpeg.c to
  9996. fetch TIFFTAG_YCBCRSUBSAMPLING from the jpeg data stream if it isn't
  9997. present in the tiff tags.
  9998. http://bugzilla.remotesensing.org/show_bug.cgi?id=168
  9999. * libtiff/tif_read.c, libtiff/tif_write.c: TIFFReadScanline() and
  10000. TIFFWriteScanline() now set tif_row explicitly in case the codec has
  10001. fooled with the value.
  10002. http://bugzilla.remotesensing.org/show_bug.cgi?id=129
  10003. 2002-06-22 Andrey Kiselev <dron@ak4719.spb.edu>
  10004. * /tools/tiff2ps.c: Added workaround for some software that may crash
  10005. when last strip of image contains fewer number of scanlines than
  10006. specified by the `/Height' variable. See
  10007. http://bugzilla.remotesensing.org/show_bug.cgi?id=164
  10008. for explanation.
  10009. 2002-06-21 Andrey Kiselev <dron@ak4719.spb.edu>
  10010. * tools/tiff2ps, man/tiff2ps.1: New functionality for tiff2ps utility:
  10011. splitting long images in several pages. See
  10012. http://bugzilla.remotesensing.org/show_bug.cgi?id=142 for explanation.
  10013. Patch granted by John Williams <williams@morinda.com>.
  10014. 2002-06-11 Frank Warmerdam <warmerdam@pobox.com>
  10015. * libtiff/contrib/win95: renamed to contrib/win_dib. Added new
  10016. Tiffile.cpp example of converting TIFF files into a DIB on Win32.
  10017. This one is described in:
  10018. http://bugzilla.remotesensing.org/show_bug.cgi?id=143
  10019. * libtiff/tif_ojpeg.c: Major upgrade from Scott. See details at:
  10020. http://bugzilla.remotesensing.org/show_bug.cgi?id=156
  10021. 2002-05-10 Andrey Kiselev <dron@ak4719.spb.edu>
  10022. * tools/tiff2ps: New commandline switches to override resolution
  10023. units obtained from the input file. Closes
  10024. http://bugzilla.remotesensing.org/show_bug.cgi?id=131
  10025. 2002-04-26 Andrey Kiselev <dron@ak4719.spb.edu>
  10026. * libtiff/libtiff.def: Added missed declaration.
  10027. 2002-04-22 Andrey Kiselev <dron@ak4719.spb.edu>
  10028. * tools/fax2tiff.c: Updated to reflect latest changes in libtiff.
  10029. Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=125
  10030. 2002-04-20 Andrey Kiselev <dron@ak4719.spb.edu>
  10031. * libtiff/tif_open.c: Pointers to custom procedures
  10032. in TIFFClientOpen() are checked to be not NULL-pointers.
  10033. 2002-04-18 Andrey Kiselev <dron@ak4719.spb.edu>
  10034. * libtiff/libtiff.def: Added missed declarations.
  10035. * libtiff/tif_pixarlog.c: Updated for using tif_tagmethods structure.
  10036. 2002-04-16 Andrey Kiselev <dron@ak4719.spb.edu>
  10037. * libtiff/tif_lzw.c: Additional checks for data integrity introduced.
  10038. Should finally close
  10039. http://bugzilla.remotesensing.org/show_bug.cgi?id=100
  10040. 2002-04-10 Andrey Kiselev <dron@ak4719.spb.edu>
  10041. * tools/tiff2ps: Division by zero fixed.
  10042. Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=88
  10043. 2002-04-09 Andrey Kiselev <dron@ak4719.spb.edu>
  10044. * libtiff/: tif_dirwrite.c, tif_write.c, tiffio.h:
  10045. TIFFCheckpointDirectory() routine added.
  10046. Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=124
  10047. * man/: TIFFWriteDirectory.3t, Makefile.in: Added description
  10048. for the new function.
  10049. 2002-04-08 Andrey Kiselev <dron@ak4719.spb.edu>
  10050. * libtiff/: tif_codec.c, tif_compress.c, tiffiop.h: Introduced
  10051. additional members tif->tif_decodestatus and tif->tif_encodestatus
  10052. for correct handling of unconfigured codecs (we should not try to read
  10053. data or to define data size without correct codecs).
  10054. * libtiff/tif_getimage.c: The way of codecs checking in TIFFRGBAImageOK
  10055. changed. Now it has used tif->tif_decodestatus and
  10056. tif->tif_encodestatus.
  10057. Should fix http://bugzilla.remotesensing.org/show_bug.cgi?id=119 (in
  10058. case of __cvs_8.tif test image).
  10059. * libtiff/: tif_dirinfo.c, tif_dirread.c: Somebody makes a bug in
  10060. tif_dirread.c when TIFFCreateAnonFieldInfo was introduced.
  10061. Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=119 in case
  10062. of _cvs_00000-00.tif, _cvs_00000-01.tif and _cvs_00000-02.tif.
  10063. 2002-04-04 Andrey Kiselev <dron@ak4719.spb.edu>
  10064. * libtiff/: tif_lzw.c: Assertions in LZWDecode and LZWDecodeCompat
  10065. replaced by warnings. Now libtiff should read corrupted LZW-compressed
  10066. files by skipping bad strips.
  10067. Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=100
  10068. 2002-04-03 Frank Warmerdam <warmerdam@pobox.com>
  10069. * libtiff/tif_dirwrite.c: Removed some dead code.
  10070. * libtiff/*: Cleanup some warnings.
  10071. * libtiff/tif_dir.c: Fixed bug with count returned by TIFFGetField()
  10072. for variable length FIELD_CUSTOM values. Was int * but should be
  10073. u_short *.
  10074. 2002-04-01 Andrey Kiselev <dron@ak4719.spb.edu>
  10075. * tools/: tifcp.c: Added support for 'Orientation' tag in tiffcp
  10076. utility (at cpStripToTile routine).
  10077. 2002-03-27 Frank Warmerdam <warmerdam@pobox.com>
  10078. * tif_dirread.c: avoid div-by-zero if rowbytes is zero in chop func.
  10079. http://bugzilla.remotesensing.org/show_bug.cgi?id=111
  10080. * tif_print.c: Fixed so that ASCII FIELD_CUSTOM values with
  10081. passcount set FALSE can be printed (such as TIFFTAG_SOFTWARE).
  10082. * libtiff/tif_dir.c,tif_dirinfo.c,tif_dir.h,tif_ojpeg.c: modified so
  10083. that TIFFTAG_SOFTWARE uses FIELD_CUSTOM as an example.
  10084. 2002-03-26 Dwight Kelly <dbmalloc@remotesensing.org>
  10085. * libtiff/: tiff.h, tif_dir.c, tif_dir.h, tif_dirinfo.c, tif_dirread.c,
  10086. tif_dirwrite.c: Added get/put code for new tag XMLPACKET as defined
  10087. in Adobe XMP Technote. Added missing INKSET tag value from TIFF 6.0 spec
  10088. INKSET_MULTIINK (=2). Added missing tags from Adobe TIFF technotes:
  10089. CLIPPATH, XCLIPPATHUNITS, YCLIPPATHUNITS, OPIIMAGEID, OPIPROXY and
  10090. INDEXED. Added PHOTOMETRIC tag value from TIFF technote 4 ICCLAB (=9).
  10091. 2002-03-26 Andrey Kiselev <dron@ak4719.spb.edu>
  10092. * libtiff/: tif_getimage.c: TIFFReadRGBAStrip and TIFFReadRGBATile
  10093. now also uses TIFFRGBAImageOK before reading. This is additional fix
  10094. for http://bugzilla.remotesensing.org/show_bug.cgi?id=110
  10095. 2002-03-25 Andrey Kiselev <dron@ak4719.spb.edu>
  10096. * libtiff/: tif_getimage.c: Additional check for supported
  10097. codecs added in TIFFRGBAImageOK and TIFFReadRGBAImage now uses
  10098. TIFFRGBAImageOK before reading.
  10099. Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=110
  10100. 2002-03-15 Andrey Kiselev <dron@ak4719.spb.edu>
  10101. * libtiff/: tif_dir.c, tif_dir.h, tif_dirinfo.c, tif_dirread.c,
  10102. tif_dirwrite.c: Added routine TIFFDataWidth for detrmining
  10103. TIFFDataType sizes instead of working with tiffDataWidth array
  10104. directly. Should prevent out-of-borders bugs in case of unknown or
  10105. broken data types. EstimateStripByteCounts routine modified, so it
  10106. won't work when tags with unknown sizes founded.
  10107. Closes http://bugzilla.remotesensing.org/show_bug.cgi?id=109
  10108. 2002-03-13 Andrey Kiselev <dron@ak4719.spb.edu>
  10109. * libtiff/tif_getimage.c: Added support for correct handling
  10110. `Orientation' tag in gtTileContig. Should be added in other gt*
  10111. functions as well, but I have not images for testing yet. Partially
  10112. resolves http://bugzilla.remotesensing.org/show_bug.cgi?id=23
  10113. 2002-03-10 Andrey Kiselev <dron@ak4719.spb.edu>
  10114. * libtiff/: tif_dirinfo.c, tif_dirwrite.c: Added possibility to
  10115. read broken TIFFs with LONG type used for TIFFTAG_COMPRESSION,
  10116. TIFFTAG_BITSPERSAMPLE, TIFFTAG_PHOTOMETRIC. Closes
  10117. http://bugzilla.remotesensing.org/show_bug.cgi?id=99
  10118. 2002-03-08 Andrey Kiselev <dron@ak4719.spb.edu>
  10119. * libtiff/Makefile.in, tools/Makefile.in: Shared library will not
  10120. be stripped when installing, utility binaries will do. Closes
  10121. http://bugzilla.remotesensing.org/show_bug.cgi?id=93
  10122. 2002-02-28 Frank Warmerdam <warmerdam@pobox.com>
  10123. * man/TIFFGetField: fixed type of TIFFTAG_COPYRIGHT.
  10124. * man/libtiff.3t: added copyright tag info.
  10125. 2002-02-11 Frank Warmerdam <warmerdam@pobox.com>
  10126. * libtiff/{tiff.h,tif_fax3.c}: Add support for __arch64__.
  10127. http://bugzilla.remotesensing.org/show_bug.cgi?id=94
  10128. * man/Makefile.in: Patch DESTDIR handling
  10129. http://bugzilla.remotesensing.org/show_bug.cgi?id=95
  10130. * configure: OpenBSD changes for Sparc64 and DSO version.
  10131. http://bugzilla.remotesensing.org/show_bug.cgi?id=96
  10132. 2002-02-05 Frank Warmerdam <warmerdam@pobox.com>
  10133. * config.site/configure: added support for OJPEG=yes option to enable
  10134. OJPEG support from config.site.
  10135. 2002-01-27 Frank Warmerdam <warmerdam@pobox.com>
  10136. * html/document.html: fixed links for TIFf 6 docs.
  10137. 2002-01-18 Frank Warmerdam <warmerdam@pobox.com>
  10138. * config.guess, config.sub: Updated from ftp.gnu.org/pub/config.
  10139. * libtiff/tif_read.c: Fixed TIFFReadEncodedStrip() to fail if the
  10140. decodestrip function returns anything not greater than zero as per
  10141. http://bugzilla.remotesensing.org/show_bug.cgi?id=97
  10142. * configure: Modify CheckForBigEndian so it can work in a cross
  10143. compiled situation.
  10144. 2002-01-16 Frank Warmerdam <warmerdam@pobox.com>
  10145. * tools/tiffdump.c: include TIFFTAG_JPEGTABLES in tag list.
  10146. * tools/tiffset.c: fix bug in error reporting.
  10147. * tools/tiffcp.c: fix several warnings that show up with -Wall.
  10148. 2002-01-04 Frank Warmerdam <warmerdam@pobox.com>
  10149. * libtiff/tif_jpeg.c: fixed computation of segment_width for
  10150. tiles files to avoid error about it not matching the
  10151. cinfo.d.image_width values ("JPEGPreDecode: Improper JPEG strip/tile
  10152. size.") for ITIFF files. Apparently the problem was incorporated since
  10153. 3.5.5, presumably during the OJPEG/JPEG work recently.
  10154. 2001-12-15 Frank Warmerdam <warmerdam@pobox.com>
  10155. * configure, libtiff/Makefile.in: Changes for building on MacOS 10.1.
  10156. http://bugzilla.remotesensing.org/show_bug.cgi?id=94
  10157. * libtiff/tif_getimage.c: If DEFAULT_EXTRASAMPLE_AS_ALPHA is 1
  10158. (defined in tiffconf.h - 1 by default) then the RGBA interface
  10159. will assume that a fourth extra sample is ASSOCALPHA if the
  10160. EXTRASAMPLE value isn't set for it. This changes the behaviour of
  10161. the library, but makes it work better with RGBA files produced by
  10162. lots of applications that don't mark the alpha values properly.
  10163. http://bugzilla.remotesensing.org/show_bug.cgi?id=93
  10164. http://bugzilla.remotesensing.org/show_bug.cgi?id=65
  10165. 2001-12-12 Frank Warmerdam <warmerdam@pobox.com>
  10166. * libtiff/tif_jpeg.c: allow jpeg data stream sampling values to
  10167. override those from tiff directory. This makes this work with
  10168. ImageGear generated files.
  10169. 2001-12-07 Frank Warmerdam <warmerdam@pobox.com>
  10170. * html/Makefile.in: added missing images per bug 92.
  10171. * port/Makefile.in: fixed clean target per bug 92.
  10172. 2001-11-28 Frank Warmerdam <warmerdam@pobox.com>
  10173. * Reissue 3.5.7 release.
  10174. * libtiff/mkversion.c: Fix output of TIFF_VERSION to be
  10175. YYYYMMDD so that it is increasing over time.
  10176. * Makefile.in: Ensure that tiffvers.h is regenerated in the
  10177. make release target.
  10178. * Makefile.in: added libtiff/tiffvers.h to the release file list.
  10179. 2001-11-23 Frank Warmerdam <warmerdam@pobox.com>
  10180. * added html/v3.5.7.html, updated html/index.html.
  10181. * Makefile.in: added contrib/addtiffo/tif_ovrcache.{c,h}.
  10182. 2001-11-15 Frank Warmerdam <warmerdam@pobox.com>
  10183. * configure: fixed test for -lm.
  10184. 2001-11-02 Frank Warmerdam <warmerdam@pobox.com>
  10185. * Added PHOTOMETRIC_ITULAB as per bug 90.
  10186. http://bugzilla.remotesensing.org/show_bug.cgi?id=90
  10187. 2001-10-10 Frank Warmerdam <warmerdam@pobox.com>
  10188. * libtiff/tiff.h: I have created COMPRESSION_CCITT_T4,
  10189. COMPRESSION_CCITT_T6, TIFFTAG_T4OPTIONS and TIFFTAG_T6OPTIONS aliases
  10190. in keeping with TIFF 6.0 standard in tiff.h
  10191. http://bugzilla.remotesensing.org/show_bug.cgi?id=83
  10192. 2001-09-26 Frank Warmerdam <warmerdam@pobox.com>
  10193. * libtiff/tif_dirwrite.c: added TIFFRewriteDirectory() function.
  10194. Updated TIFFWriteDirectory man page to include TIFFRewriteDirectory.
  10195. 2001-09-24 Frank Warmerdam <warmerdam@pobox.com>
  10196. * libtiff/tif_lzw.c: Avoid MS VC++ 5.0 optimization bug.
  10197. http://bugzilla.remotesensing.org/show_bug.cgi?id=78
  10198. * libtiff/tif_lzw.c: added dummy LZWSetupEncode() to report an
  10199. error about LZW not being available.
  10200. * libtiff/tif_dir.c: propagate failure to initialize compression
  10201. back from TIFFSetField() as an error status, so applications can
  10202. detect failure.
  10203. * libtiff/tif_dir.c: removed the auto replacement of
  10204. COMPRESSION_LZW with COMPRESSION_NONE in _TIFFVSetField().
  10205. * Removed Makefile, tools/Makefile, port/install.sh, man/Makefile
  10206. from CVS as they are all supposed to be auto-generated by configure.
  10207. 2001-09-22 Frank Warmerdam <warmerdam@pobox.com>
  10208. * libtiff/tif_ojpeg.c: new update from Scott.
  10209. 2001-09-09 Frank Warmerdam <warmerdam@pobox.com>
  10210. * libtif/tif_fax3.c: Removed #ifdef PURIFY logic, and modified to
  10211. always use the "safe" version, even if there is a very slight
  10212. cost in performance.
  10213. http://bugzilla.remotesensing.org/show_bug.cgi?id=54
  10214. * libtiff/Makefile.in: Fixed @DSOSUB_VERSION to be @DSOSUF_VERSION@
  10215. in two places.
  10216. * libtiff/tif_getimage.c: Fixed problem with reading strips or
  10217. tiles that don't start on a tile boundary. Fix contributed by
  10218. Josep Vallverdu (from HP), and further described in bug 47.
  10219. http://bugzilla.remotesensing.org/show_bug.cgi?id=47
  10220. * tools/tiff2ps.c: added OJPEG YCbCr to RGB support.
  10221. * libtiff/tif_ojpeg.c: Applied substantial patch from Scott.
  10222. 2001-09-06 Frank Warmerdam <warmerdam@pobox.com>
  10223. * libtiff/tif_packbits.c: fixed memory overrun error.
  10224. http://bugzilla.remotesensing.org/show_bug.cgi?id=77
  10225. 2001-08-31 Frank Warmerdam <warmerdam@pobox.com>
  10226. * libtiff/tif_getimage.c: relax handling of contig case where
  10227. there are extra samples that are supposed to be ignored. This
  10228. should now work for 8bit greyscale or paletted images.
  10229. http://bugzilla.remotesensing.org/show_bug.cgi?id=75
  10230. 2001-08-28 Frank Warmerdam <warmerdam@pobox.com>
  10231. * libtiff/tif_getimage.c: Don't complain for CMYK (separated)
  10232. images with more than four samples per pixel. See:
  10233. http://bugzilla.remotesensing.org/show_bug.cgi?id=73
  10234. 2001-08-10 Frank Warmerdam <warmerdam@pobox.com>
  10235. * libtiff/tif_getimage.c: Use memmove() instead of TIFFmemcpy()
  10236. in TIFFReadRGBATile() to avoid issues in cases of overlapping
  10237. buffers. See Bug 69 in Bugzilla.
  10238. http://bugzilla.remotesensing.org/show_bug.cgi?id=69
  10239. * tools/tiff2rgba.c: fixed getopt() call so that -b works again.
  10240. 2001-08-09 Frank Warmerdam <warmerdam@pobox.com>
  10241. * libtiff/tiff.h, libtiff/tif_fax3.c: added check for __LP64__
  10242. when checking for 64 bit architectures as per bugzilla bug 67.
  10243. 2001-07-27 Frank Warmerdam <warmerdam@pobox.com>
  10244. * man/Makefile.in: add TIFFClientOpen link as per debian submitted
  10245. bug 66.
  10246. 2001-07-20 Frank Warmerdam <warmerdam@pobox.com>
  10247. * libtiff/tif_jpeg.c: Define HAVE_BOOLEAN on windows if RPCNDR.H
  10248. has been included.
  10249. 2001-07-19 Frank Warmerdam <warmerdam@pobox.com>
  10250. * libtiff/tif_open.c: Seek back to zero after failed read,
  10251. before writing header.
  10252. 2001-07-18 Frank Warmerdam <warmerdam@pobox.com>
  10253. * libtiff/tif_ojpeg.c: updates from Scott. Handles colors
  10254. much better. Now depends on having patched libjpeg as per
  10255. patch in contrib/ojpeg/*.
  10256. 2001-07-17 Frank Warmerdam <warmerdam@pobox.com>
  10257. * */Makefile.in: added DESTDIR support.
  10258. http://bugzilla.remotesensing.org/show_bug.cgi?id=60
  10259. 2001-07-16 Frank Warmerdam <warmerdam@pobox.com>
  10260. * configure, libtiff/Makefile.in: applied OpenBSD patches
  10261. as per:
  10262. http://bugzilla.remotesensing.org/show_bug.cgi?id=61
  10263. 2001-06-28 Frank Warmerdam <warmerdam@pobox.com>
  10264. * libtiff/tif_getimage.c: Fixed so that failure is properly
  10265. reported by gtTileContig, gtStripContig, gtTileSeparate and
  10266. gtStripSeparate.
  10267. See http://bugzilla.remotesensing.org/show_bug.cgi?id=51
  10268. * tiffcmp.c: Fixed multi samples per pixel support for ContigCompare.
  10269. Updated bug section of tiffcmp.1 to note tiled file issues.
  10270. See http://bugzilla.remotesensing.org/show_bug.cgi?id=53
  10271. 2001-06-22 Frank Warmerdam <warmerdam@pobox.com>
  10272. * configure: Changes for DSO generation on AIX provided by
  10273. John Marquart <jomarqua@indiana.edu>.
  10274. * configure, libtiff/Makeifle.in: Modified to build DSOs properly
  10275. on Darwin thanks to Robert Krajewski (rpk@alum.mit.edu) and
  10276. Keisuke Fujii (fujiik@jlcuxf.kek.jp).
  10277. 2001-06-13 Frank Warmerdam <warmerdam@pobox.com>
  10278. * tools/tiff2rgba.c: added -n flag to avoid emitting alpha component.
  10279. * man/tiff2rgba.1: new
  10280. 2001-05-22 Frank Warmerdam <warmerdam@pobox.com>
  10281. * Added tiffset and tif_ojpeg to the dist lists in Makefile.in.
  10282. 2001-05-13 Frank Warmerdam <warmerdam@pobox.com>
  10283. * libtiff/tools/thumbnail.c: changed default output compression
  10284. to packbits from LZW since LZW isn't generally available.
  10285. 2001-05-12 Frank Warmerdam <warmerdam@pobox.com>
  10286. * libtiff/tif_ojpeg.c: New.
  10287. libtiff/tif_jpeg.c, tiffconf.h, tif_getimage.c: changes related
  10288. to OJPEG support.
  10289. Scott Marovich <marovich@hpl.hp.com> supplied OJPEG support.
  10290. 2001-05-11 Frank Warmerdam <warmerdam@pobox.com>
  10291. * tiff.h: removed, it duplicates libtiff/tiff.h.
  10292. 2001-05-08 Frank Warmerdam <warmerdam@pobox.com>
  10293. * libtiff/tif_dirinfo.c: moved pixar and copyright flags to
  10294. ensure everything is in order.
  10295. * libtiff/libtiff.def: added TIFFCreateDirectory and
  10296. TIFFDefaultStripSize as per:
  10297. http://bugzilla.remotesensing.org/show_bug.cgi?id=46
  10298. 2001-05-02 Frank Warmerdam <warmerdam@pobox.com>
  10299. * libtiff/tif_dirinfo.c: Modified the TIFF_BYTE definition for
  10300. TIFFTAG_PHOTOSHOP to use a writecount of TIFF_VARIABLE2 (-3) to
  10301. force use of uint32 counts instead of short counts.
  10302. * libtiff/tif_dirwrite.c: Added support for TIFF_VARIABLE2 in the
  10303. case of writing TIFF_BYTE/TIFF_SBYTE fields.
  10304. http://bugzilla.remotesensing.org/show_bug.cgi?id=43
  10305. 2001-05-01 Frank Warmerdam <warmerdam@pobox.com>
  10306. * libtiff/tif_dirinfo.c: removed duplicate TIFFTAG_PHOTOSHOP as per
  10307. bug report http://bugzilla.remotesensing.org/show_bug.cgi?id=44
  10308. 2001-04-05 Frank Warmerdam <warmerdam@pobox.com>
  10309. * tiffio.h: removed C++ style comment.
  10310. * configure: fixed up SCRIPT_SH/SHELL handling.
  10311. * Makefile.in: Fixed SCRIPT_SH/SHELL handling.
  10312. * config.guess: documented more variables as per bug 40.
  10313. 2001-04-03 Frank Warmerdam <warmerdam@pobox.com>
  10314. * configure, *Makefile.in: Various changes to improve configuration
  10315. for HP/UX specifically, and also in general. They include:
  10316. - Try to handle /usr/bin/sh instead of /bin/sh where necessary.
  10317. - Upgrade to HP/UX 10.x+ compiler, linker and dso options.
  10318. - Fixed mmap() test to avoid MMAP_FIXED ... it isn't available on HP
  10319. - Use -${MAKEFLAGS} in sub makes from makefiles.
  10320. http://bugzilla.remotesensing.org/show_bug.cgi?id=40
  10321. 2001-04-02 Frank Warmerdam <warmerdam@pobox.com>
  10322. * libtiff/tiff.h: Applied hac to try and resolve the problem
  10323. with the inttypes.h include file on AIX.
  10324. See http://bugzilla.remotesensing.org/show_bug.cgi?id=39
  10325. * VERSION: update to 3.5.7 beta in preparation for release.
  10326. * configure/config.site: modified to check if -lm is needed for
  10327. MACHDEPLIBS if not supplied by config.site. Needed for Darwin.
  10328. * config.guess: updated wholesale to an FSF version apparently
  10329. from 1998 (as opposed to 1994). This is mainly inspired by
  10330. providing for MacOS X support.
  10331. 2001-03-29 Frank Warmerdam <warmerdam@pobox.com>
  10332. * configure, Makefile.in, etc: added support for OPTIMIZER being
  10333. set from config.site.
  10334. 2001-03-28 Frank Warmerdam <warmerdam@pobox.com>
  10335. * fax2ps.c: Helge (libtiff at oldach.net) submitted fix:
  10336. Here's a fix for fax2ps that corrects behaviour for non-Letter paper
  10337. sizes. It fixes two problems:
  10338. Without scaling (-S) the fax is now centered on the page size specified
  10339. with -H and/or -W. Before, fax2ps was using an obscure and practically
  10340. useless algorithm to allocate the image relative to Letter sized paper
  10341. which sometime sled to useless whitespace on the paper, while at the
  10342. same time cutting of the faxes printable area at the opposite border.
  10343. Second, scaling now preserves aspect ratio, which makes unusual faxes
  10344. (in particular short ones) print properly.
  10345. See http://bugzilla.remotesensing.org/show_bug.cgi?id=35
  10346. * tiff2ps.c/tiff2ps.1: Substantial changes to tiff2ps by
  10347. Bruce A. Mallett. See check message for detailed information
  10348. on all the changes, including a faster encoder, fixes for level
  10349. 2 PostScript, and support for the imagemask operator.
  10350. 2001-03-27 Frank Warmerdam <warmerdam@pobox.com>
  10351. * libtiff/tiffio.h: Changed "#if LOGLUV_PUBLIC" to
  10352. "#ifdef LOGLUV_PUBLIC" so it will work with VisualAge on AIX.
  10353. http://bugzilla.remotesensing.org/show_bug.cgi?id=39
  10354. 2001-03-16 Frank Warmerdam <warmerdam@pobox.com>
  10355. * tif_dirinfo.c: moved definition of copyright tag in field list.
  10356. Apparently they have to be in sorted order by tag id.
  10357. 2001-03-13 Frank Warmerdam <warmerdam@pobox.com>
  10358. * tif_getimage.c: Added support for 16bit minisblack/miniswhite
  10359. images in RGBA interface.
  10360. 2001-03-02 Frank Warmerdam <warmerdam@pobox.com>
  10361. * Added TIFFTAG_COPYRIGHT support.
  10362. 2001-02-19 Frank Warmerdam <warmerdam@pobox.com>
  10363. * Brent Roman contributed updated tiffcp utility (and tiffcp.1)
  10364. with support for extracting subimages with the ,n syntax, and also
  10365. adding the -b bias removal flag.
  10366. 2001-02-16 Frank Warmerdam <warmerdam@pobox.com>
  10367. * libtiff/libtiff.def: Brent Roman submitted new version adding
  10368. several missing entry points.
  10369. * libtiff/tif_dirinfo.c: don't declare tiffFieldInfo static on VMS.
  10370. Some sort of weird VMS thing.
  10371. http://bugzilla.remotesensing.org/show_bug.cgi?id=31
  10372. * tif_luv.c/tiff.h/tiffio.h:
  10373. New version of TIFF LogLuv (SGILOG) modules contributed by Greg Ward
  10374. (greg@shutterfly.com). He writes:
  10375. 1) I improved the gamut-mapping function in tif_luv.c for imaginary
  10376. colors, because some images were being super-saturated on the input
  10377. side and this resulted in some strange color shifts in the output.
  10378. 2) I added a psuedotag in tiff.h to control random dithering during
  10379. LogLuv encoding. This is turned off by default for 32-bit LogLuv and
  10380. on for 24-bit LogLuv output. Dithering improves the average color
  10381. accuracy over the image.
  10382. 3) I added a #define for LOG_LUV_PUBLIC, which is enabled by default in
  10383. tiffio.h, to expose internal routines for converting between LogLuv and
  10384. XYZ coordinates. This is helpful for writing more efficient,
  10385. specialized conversion routines, especially for reading LogLuv files.
  10386. Changes applied with minor edits.
  10387. 2001-01-23 Frank Warmerdam <warmerdam@pobox.com>
  10388. * tif_fax3.c: keep rw_mode flag internal to fax3 state to remember
  10389. whether we are encoding or decoding. This is to ensure graceful
  10390. recovery if TIFFClientOpen() discovers an attempt to open a compressed
  10391. file for "r+" access, and subsequently close it, as it resets the
  10392. tif_mode flag to O_RDONLY in this case to avoid writes, confusing the
  10393. compressor's concept of whether it is in encode or decode mode.
  10394. 2001-01-08 Mike Welles <mike@bangstate.com>
  10395. * Makefile.in: Now cleaning up after itself after creating the .tar.gz and .zip
  10396. 2001-01-07 Frank Warmerdam <warmerdam@pobox.com>
  10397. * html/libtiff.html: Fixed arguments in example for TIFFRGBAImageGet()
  10398. as per bug report by Patrick Connor.
  10399. 2000-12-28 Frank Warmerdam <warmerdam@pobox.com>
  10400. * Added RELEASE-DATE file to release file list.
  10401. * Fixed libtiff/makefile.vc to make tiffvers.h not version.h.
  10402. 2000-12-22 Mike Welles <mike@bangstate.com>
  10403. * added link to CVS mirror from index.html
  10404. * updated html/internals.html to note that LZW compression is
  10405. not supported by default.
  10406. 2000-12-22 Frank Warmerdam <warmerdam@pobox.com>
  10407. * updated html/libtiff.html to not point at Niles' old JPL web site
  10408. for the man pages, point at www.libtiff.org.
  10409. 2000-12-21 Frank Warmerdam <warmerdam@pobox.com>
  10410. * libtiff/tif_apple.c: Applied "Carbon" support patches supplied by
  10411. Leonard Rosenthol <leonardr@lazerware.com>. May interfere
  10412. with correct building on older systems. If so, please let me know.
  10413. 2000-12-19 Mike Welles <mike@bangsate.com>
  10414. * Took out LZW Encoding from tif_lzw.c
  10415. * Created HOWTO-RELEASE
  10416. * Created html/v3.5.6.html
  10417. * updated index.html
  10418. 2000-12-01 Frank Warmerdam <warmerdam@pobox.com>
  10419. * Added patches for EOFB support in tif_fax3.c and tif_fax3.h.
  10420. Patches supplied by Frank Cringle <fdc@cliwe.ping.de>
  10421. Example file at: ftp://ftp.remotesensing.org/pub/libtiff/eofb_396.tif
  10422. 2000-11-24 Frank Warmerdam <warmerdam@pobox.com>
  10423. * libtiff/Makefile.in: Added an installPrivateHdrs and install-private
  10424. target so that the private headers required by libgeotiff can be
  10425. installed with the others. They are not installed by default.
  10426. * libtiff/Makefile.in: Added @MACHLIBDEPS@ to LINUXdso and GNULDdso
  10427. targets so libtiff.so will be built with an explicit dependency
  10428. on libm.so.
  10429. * libtiff/Makefile.in: Use softlinks to link libtiff.so.3 to
  10430. libtiff.so.3.5.5.
  10431. * libtiff/Makefile.in & configure: Remove all references to the ALPHA
  10432. file, or ALPHA version logic. Added stuff about DIST_POINT in
  10433. place of DIST_TYPE and the alpha release number stuff.
  10434. 2000-11-22 Frank Warmerdam <warmerdam@pobox.com>
  10435. * I have applied a patch from Steffen Moeller <moeller@ebi.ac.uk> to
  10436. the configure script so that it now accepts the --prefix, and
  10437. --exec-prefix directives.
  10438. 2000-11-13 Frank Warmerdam <warmerda@cs46980-c>
  10439. * I have made a variety of modifications in an effort to ensure the
  10440. TIFFLIB_VERSION macro is automatically generated from the RELEASE-DATE
  10441. file which seems to be updated regularly.
  10442. o mkversion.c now reads RELEASE-DATE and emits TIFFLIB_VERSION in
  10443. version include file.
  10444. o renamed version.h to tiffvers.h because we now have to install it
  10445. with the public libtiff include files.
  10446. o include tiffvers.h in tiffio.h.
  10447. o updated tif_version.c to use tiffvers.h.
  10448. o Updated Makefile.in accordingly.
  10449. * As per http://bugzilla.remotesensing.org/show_bug.cgi?id=25
  10450. I have updated the win32 detection rules in tiffcomp.h.
  10451. 2000-10-20 Frank Warmerdam <warmerda@cs46980-c>
  10452. * tif_getimage.c: Fixed RGBA translation for YCbCr images for which
  10453. the strip/tile width and height aren't multiples of the sampling size.
  10454. See http://bugzilla.remotesensing.org/show_bug.cgi?id=20
  10455. Some patches from Rick LaMont of Dot C Software.
  10456. * Modified tif_packbits.c encoder to avoid compressing more
  10457. data than provided if rowsize doesn't factor into provided data
  10458. (such as occurs for YCbCr).
  10459. 2000-10-19 Frank Warmerdam <warmerda@cs46980-c>
  10460. * tools/rgb2ycbcr.c: fixed output strip size to account for vertical
  10461. roundup if rows_per_strip not a multiple of vertical sample size.
  10462. 2000-10-16 Frank Warmerdam <warmerda@cs46980-c>
  10463. * tif_dir.c: Clear TIFF_ISTILED flag in TIFFDefaultDirectory
  10464. as per http://bugzilla.remotesensing.org/show_bug.cgi?id=18
  10465. from vandrove@vc.cvut.cz.
  10466. * Modified tif_packbits.c decoding to avoid overrunning the
  10467. output buffer, and to issue a warning if data needs to be
  10468. discarded. See http://bugzilla.remotesensing.org/show_bug.cgi?id=18
  10469. 2000-10-12 Frank Warmerdam <warmerda@cs46980-c>
  10470. * Modified tiff2bw to ensure portions add to 100%, and that
  10471. white is properly recovered.
  10472. See bug http://bugzilla.remotesensing.org/show_bug.cgi?id=15
  10473. Patch c/o Stanislav Brabec <utx@penguin.cz>
  10474. 2000-09-30 Frank Warmerdam <warmerda@cs46980-c>
  10475. * Modified TIFFClientOpen() to emit an error on an attempt to
  10476. open a comperessed file for update (O_RDWR/r+) access. This is
  10477. because the compressor/decompressor code gets very confused when
  10478. the mode is O_RDWR, assuming this means writing only. See
  10479. bug http://bugzilla.remotesensing.org/show_bug.cgi?id=13
  10480. 2000-09-27 Frank Warmerdam <warmerda@cs46980-c>
  10481. * Added GNULDdso target an`d switched linux and freebsd to use it.
  10482. 2000-09-26 Frank Warmerdam <warmerda@cs46980-c>
  10483. * Applied patch for 0x0000 sequences in tif_fax3.h's definition
  10484. of EXPAND1D() as per bug 11 (from Roman).
  10485. 2000-09-25 Frank Warmerdam <warmerda@cs46980-c>
  10486. * Fixed tiffcomp.h to avoid win32 stuff if unix #defined, to improve
  10487. cygwin compatibility.
  10488. * Applied patch from Roman Shpount to tif_fax3.c. This seems to
  10489. be a proper fix to the buffer sizing problem. See
  10490. http://bugzilla.remotesensing.org/show_bug.cgi?id=11
  10491. * Fixed tif_getimage.c to fix overrun bug with YCbCr images without
  10492. downsampling. http://bugzilla.remotesensing.org/show_bug.cgi?id=10
  10493. Thanks to Nick Lamb <njl98r@ecs.soton.ac.uk> for reporting the
  10494. bug and proving the patch.
  10495. 2000-09-18 Frank Warmerdam <warmerda@cs46980-c>
  10496. * Fixed tif_jpeg.c so avoid destroying the decompressor before
  10497. we are done access data thanks to bug report from:
  10498. Michael Eckstein <eckstein@gepro.cz>.
  10499. * Reverted tif_flush change.
  10500. 2000-09-14 Frank Warmerdam <warmerda@cs46980-c>
  10501. * tif_flush.c: Changed so that TIFFFlushData() doesn't return an
  10502. error when TIFF_BEENWRITING is not set. This ensures that the
  10503. directory contents can still be flushed by TIFFFlush().
  10504. 2000-08-14 Frank Warmerdam <warmerda@rommel.atlsci.com>
  10505. * tif_open.c: Don't set MMAP for O_RDWR files.
  10506. * tif_open.c: Set STRIPCHOP_DEFAULT for O_RDWR as well as O_RDONLY
  10507. so that files opened for update can be strip chopped too.
  10508. * tif_read.c: fixed up bug with files missing rowsperstrip and
  10509. the strips per separation fix done a few weeks ago.
  10510. 2000-07-17 Frank Warmerdam <warmerda@cs46980-c>
  10511. * Tentatively added support for SAMPLEFORMAT_COMPLEXIEEEFP, and
  10512. SAMPLEFORMAT_COMPLEXINT.
  10513. 2000-07-13 Mike Welles <mike@onshore.com>
  10514. * index.html, bugs.html: added bugzilla info.
  10515. 2000-07-12 Frank Warmerdam <warmerda@rommel.atlsci.com>
  10516. * tif_read.c: fix subtle bug with determining the number of
  10517. rows for strips that are the last strip in a separation but
  10518. not the last strip of all in TIFFReadEncodedStrip().
  10519. * Applied 16/32 bit fix to tif_fax3.c. Fix supplied by
  10520. Peter Skarpetis <peters@serendipity-software.com.au>
  10521. 2000-06-15 Frank Warmerdam <warmerda@rommel.atlsci.com>
  10522. * Modified tiffio.h logic with regard to including windows.h. It
  10523. won't include it when building with __CYGWIN__.
  10524. 2000-05-11 Frank Warmerdam <warmerda@cs46980-c>
  10525. * README: update to mention www.libtiff.org, don't list Sam's old
  10526. email address.
  10527. * configure: Fixed DSO test for Linux as per patch from
  10528. Jan Van Buggenhout <chipzz@Ace.ULYSSIS.Student.KULeuven.Ac.Be>.
  10529. 2000-04-21 Frank Warmerdam <warmerda@rommel.atlsci.com>
  10530. * libtiff/tif_dirread.c: Don't use estimate strip byte count for
  10531. one tile/strip images with an offset, and byte count of zero. These
  10532. could be "unpopulated" images.
  10533. 2000-04-18 Frank Warmerdam <warmerda@rommel.atlsci.com>
  10534. * contrib/addtiffo: Added "averaging" resampling option.
  10535. * tools/tiffsplit.c: Copy TIFFTAG_SAMPLEFORMAT.
  10536. Tue Apr 18 16:18:08 2000 Frank Warmerdam <warmerda@esabot.atlsci.com>
  10537. * tools/Makefile.in: Modified to install properly on SGI.
  10538. 2000-04-12 Mike Welles <mike@onshore.com>
  10539. * configure: Fixed stupid mistake in libc6 test on Linux
  10540. 2000-04-04 Mike Welles <mike@onshore.com>
  10541. * tif_win32.c: Applied patch to fix overreads and ovverwrites
  10542. caught by BoundsChecker. From Arvan Pritchard
  10543. <arvan.pritchard@infomatix.co.uk> (untested).
  10544. * tif_getimage.c: Applied patch to silence VC6 warnings. From
  10545. Arvan Pritchard <arvan.pritchard@informatix.co.uk>
  10546. * tif_lzw.c: Applied patch to silence VC6 warnings. From
  10547. Arvan Pritchard <arvan.pritchard@informatix.co.uk>
  10548. 2000-03-28 Frank Warmerdam <warmerda@cs46980-c>
  10549. * Added contrib/stream (stream io) code submitted by Avi Bleiweiss.
  10550. 2000-03-28 Frank Warmerdam <warmerda@cs46980-c> *** 3.5.5 release ***
  10551. * fax2ps: Fixed mixup of width and height in bounding box statement
  10552. as per submission by Nalin Dahyabhai <nalin@redhat.com>.
  10553. 2000-03-27 Mike Welles <mike@onshore.com>
  10554. * fax2ps: Modified printruns to take uint32 instead of uint16.
  10555. Patch courtesy of Bernt Herd <herd@herdsoft.com>
  10556. 2000-03-20 Mike Welles <mike@onshore.com>
  10557. * configure: added test for libc6 for linux targets. Bug reported by
  10558. Stanislav Brabec <utx@k332.feld.cvut.cz>
  10559. * Added 3.5 docs to html/Makefile.in.
  10560. Thanks to Stanislav Brabec <utx@k332.feld.cvut.cz>
  10561. * configure: fixed bugs in sed scripts
  10562. (applied sed script s:/@:s;@:;s:/s;;:;: to configure).
  10563. fix submitted to Stanislav Brabec <utx@k332.feld.cvut.cz>
  10564. * tools/iptcutil was not in files list, and wasn't being
  10565. added to tar archive. Updated Makefile.in.
  10566. 2000-03-17 Frank Warmerdam <warmerda@cs46980-c>
  10567. * tif_fax3.c: Fixed serious bug introduced during the uint16->uint32
  10568. conversion for the run arrays.
  10569. 2000-03-03 Frank Warmerdam <warmerda@cs46980-c.mtnk1.on.wave.home.com>
  10570. * Set td_sampleformat default to SAMPLEFORMAT_UINT instead of
  10571. SAMPLEFORMAT_VOID in TIFFDefaultDirectory() in tif_dir.c.
  10572. 2000-03-02 Frank Warmerdam <warmerda@cs46980-c.mtnk1.on.wave.home.com>
  10573. * Added "GetDefaulted" support for TIFFTAG_SAMPLEFORMAT in tif_aux.c.
  10574. * Patched tif_fax3.c so that dsp->runs is allocated a bit bigger
  10575. to avoid overruns encountered with frle_bug.tif.
  10576. Tue Feb 15 22:01:05 2000 Frank Warmerdam <warmerda@gdal.velocet.ca>
  10577. * Fixed tools/tiffcmp so that stopondiff testing works.
  10578. Patch care of Joseph Orost <joe@sanskrit.lz.att.com>.
  10579. 2000-01-28 <warmerda@CS46980-B>
  10580. * Modified tif_unix.c to support 2-4GB seeks if USE_64BIT_API is
  10581. set to 1, and added default (off) setting in tiffconf.h. This
  10582. should eventually be set by the configure script somehow.
  10583. The original work on all these 2-4GB changes was done by
  10584. Peter Smith (psmith@creo.com).
  10585. * Modified tif_win32.c to support 2-4GB seeks.
  10586. * tentatively changed toff_t to be unsigned instead of signed to
  10587. facilitate support for 2-4GB files.
  10588. * Updated a variety of files to use toff_t. Fixed some mixups
  10589. between toff_t and tsize_t.
  10590. Fri Jan 28 10:13:49 2000 Frank Warmerdam <warmerda@gdal.velocet.ca>
  10591. * Largely reimplemented contrib/addtiffo to avoid temp files,
  10592. updating the TIFF file in place. Fixed a few other bugs to.
  10593. * Set tif_rawdatasize to zero when freeing raw data buffer in
  10594. TIFFWriteDirectory().
  10595. * Enabled "REWRITE_HACK" in tif_write.c by default.
  10596. * Fix bug in tif_write.c when switching between reading one directory
  10597. and writing to another.
  10598. * Made TIFFWriteCheck() public, and added TIFFCreateDirectory()
  10599. Wed Jan 5 12:37:48 2000 Frank Warmerdam <warmerda@gdal.velocet.ca>
  10600. * Added TIFFmemory(3t) functions to libtiff.def.
  10601. Tue Jan 4 13:39:00 2000 Frank Warmerdam <warmerda@gdal.velocet.ca>
  10602. * Added libtiff/libtiff.def to TIFFILES distribution list.
  10603. Mon Dec 27 12:13:39 EST 1999 Mike Welles <mike@onshore.com>
  10604. * Created lzw compression kit, as a new module (libtiff-lzw-compression-kit).
  10605. * Altered descriptions in tools to reflect "by default" lzw not supported
  10606. * Updated index.html to note lzw compression kit.
  10607. Tue Dec 21 14:01:51 1999 Frank Warmerdam <warmerda@gdal.velocet.ca>
  10608. * Added fax3sm_winnt.c to distribution list in Makefile.in.
  10609. Tue Dec 21 11:04:45 EST 1999 Mike Welles <mike@onshore.com> *** 3.5.4 release ***
  10610. * Aadded Pixar tag support. Contributed by Phil Beffery <phil@pixar.com>
  10611. * Made one more change to tif_dir.c for removal of LZW compression. Also added notice
  10612. when LZW compression invoked.
  10613. * Changed default compression in tools to TIFF_PACKBITS, and changed usage descriptions
  10614. in tools to reflect removal of LZW compression
  10615. Mon Dec 20 18:39:02 EST 1999 Mike Welles <mike@onshore.com>
  10616. * Fixed bug that caused LZW (non) compression to segfault. Added
  10617. warning about LZW compression removed being removed, and why.
  10618. * Added nostrip to install in tools/Makefile.in so that debugging
  10619. symbols are kept.
  10620. Tue Dec 7 12:04:47 EST 1999 Mike Welles <mike@onshore.com>
  10621. * Added patch from Ivo Penzar <ivo.penzar@infolink-software.com>,
  10622. supporting Adobe ZIP deflate. Untested.
  10623. Sat Dec 4 15:47:11 1999 Frank Warmerdam <warmerda@gdal.velocet.ca>
  10624. * Made Packbits the default compression in tools/tiff2rgba.c instead
  10625. of LZW.
  10626. Tue Nov 30 14:41:43 1999 Frank Warmerdam <warmerda@gdal.velocet.ca> *** 3.5.3. release ***
  10627. * Added tif_luv to contrib/djgpp/Makefile.lib.
  10628. Tue Nov 30 14:15:32 EST 1999 Mike Welles <mike@onshore.com>
  10629. * Added zip creation to release makefile target
  10630. * Added html for TIFFWriteTile.3t man page.
  10631. Tue Nov 30 09:20:16 1999 Frank Warmerdam <warmerda@gdal.velocet.ca>
  10632. * Added some changes to tif_write.c to support rewriting existing
  10633. fixed sized tiles and strips. Code mods disabled by default, only
  10634. enabled if REWRITE_HACK is defined for now.
  10635. Mon Nov 29 11:43:42 1999 Frank Warmerdam <warmerda@gdal.velocet.ca>
  10636. * Added TIFFWriteTile.3t man page.
  10637. Sun Nov 28 20:36:18 1999 Frank Warmerdam <warmerda@gdal.velocet.ca>
  10638. * Added notes on use of makefile.vc in build.html, and fixed
  10639. email subscription address.
  10640. 199-11-28 Mike Welles <mike@onshore.com>
  10641. * Fixed apocalypse-inducing y2k bug in contrib/ras/ras2tiff.c
  10642. * Did some casts cleaning up to reduce compiler warnings in tif_fax3.c,
  10643. from Bruce Carmeron <cameron@petris.com> -- modifications of
  10644. changes made by Frank (sun cc still complained on cast).
  10645. * Added tiffconf.h to install target per request from Bill
  10646. Radcliffe <billr@corbis.com>: "We need a way for ImageMagick to
  10647. know features have been compiled into the TIFF library in order to
  10648. handle things properly".
  10649. Sat Nov 27 16:49:21 1999 Frank Warmerdam <warmerda@gdal.velocet.ca>
  10650. * fixed various VC++ warnings as suggested by Gilles Vollant
  10651. <info@winimage.com>.
  10652. Wed Nov 24 12:08:16 1999 Frank Warmerdam <warmerda@gdal.velocet.ca>
  10653. * Modified TIFFquery.3t man pages info on TIFFIsByteSwapped() to
  10654. not imply applications are responsible for image data swapping.
  10655. 1999-11-22 Mike Welles <mike@onshore.com>
  10656. * HTML-ized the man pages, added to html/man
  10657. * Removed LZW Compression to comply with Unisys patent extortion.
  10658. 1999-09-29 Mike Welles <mike@onshore.com>
  10659. * Corrected one remaining 16 -> 32 bit value in tif_fax3.c,
  10660. From Ivo Penzar <ivo.penzar@infolink-software.com.
  10661. * Added patch from Ivo Penzar to have TiffAdvanceDirectory handle
  10662. memory mapped files. <ivo.penzar@infolink-software.com>
  10663. 1999-09-26 Mike Welles <mike@onshore.com> *** 3.5.2 release ***
  10664. * Corrected alpha versioning.
  10665. * Removed distinction between alpha and release targets in Makefile.in.
  10666. * added release.stamp target, which tags cvs tree, and updates
  10667. "RELEASE-DATE"
  10668. * added releasediff target, which diffs tree with source as of
  10669. date in "RELEASE-DATE"
  10670. * Ticked up version to 3.5.2 (alpha 01 -- but I think we'll moving
  10671. away from alpha/non-alpha distinctions).
  10672. * updated html to reflect release
  10673. 1999-09-23 <warmerda@CS46980-B>
  10674. * Set O_BINARY for tif_unix.c open() ... used on cygwin for instance.
  10675. * Added CYGWIN case in configure.
  10676. Fri Sep 17 00:13:51 CEST 1999 Mike Welles <mike@onshore.com>
  10677. * Applied Francois Dagand's patch to handle fax decompression bug.
  10678. (sizes >= 65536 were failing)
  10679. Tue Sep 14 21:31:43 1999 Frank Warmerdam <warmerda@gdal.velocet.ca>
  10680. * Applied "a" mode fix to tif_win32.c/TIFFOpen() as suggested
  10681. by Christopher Lawton <clawton@mathworks.com>
  10682. Wed Sep 8 08:19:18 1999 Frank Warmerdam <warmerda@gdal.velocet.ca>
  10683. * Added IRIX/gcc, and OSF/1 4.x support on behalf of
  10684. Albert Chin-A-Young <china@thewrittenword.com>
  10685. * Added TIFFReassignTagToIgnore() API on behalf of
  10686. Bruce Cameron <cameron@petris.com>. Man page still pending.
  10687. Wed Aug 25 11:39:07 1999 Frank Warmerdam <warmerda@gdal.velocet.ca>
  10688. * Added test target in Makefile, test_pics.sh script and pics/*.rpt
  10689. files to provide for a rudimentary testsuite.
  10690. * Added contrib/tags back from old distribution ... fixed up a bit.
  10691. 1999-08-16 <warmerda@CS46980-B>
  10692. * Added simple makefile.vc makefiles for building with MS VC++
  10693. on Windows NT/98/95 in console mode. Stuff in contrib/win* make give
  10694. better solutions for some users.
  10695. Mon Aug 16 21:52:11 1999 Frank Warmerdam <warmerda@gdal.velocet.ca>
  10696. * Added addtiffo (add overviews to a TIFF file) in contrib. Didn't
  10697. put it in tools since part of it is in C++.
  10698. 1999-08-16 Michael L. Welles <mike@kurtz.fake>
  10699. * Updated html/index.html with anon CVS instructions.
  10700. Mon Aug 16 13:18:41 1999 Frank Warmerdam <warmerda@gdal.velocet.ca>
  10701. * pre-remove so link before softlink in LINUXdso action in
  10702. libtiff/Makefile.in to avoid failure on LINUXdso builds other than
  10703. the first.
  10704. * Fixed problem with cvtcmap() in tif_getimage.c modifying the
  10705. colormaps owned by the TIFF handle itself when trying to fixup wrong
  10706. (eight bit) colormaps. Corrected by maintaining a private copy of
  10707. the colormap.
  10708. * Added TIFFReadRGBATile()/TIFFReadRGBAStrip() support in
  10709. tif_getimage.c.
  10710. * CVS Repository placed at remotesensing.org. ChangeLog added.