BUG: fftpack: fix data overwriting in FFT routines (#1353)
BUG: fftpack: fix data overwriting in FFT routines (#1353)

The _fix_shape helper routine in some cases returns slices of the input
array, which does not create copies. In those cases, one should not set
overwrite_x=1.

ndchorley/scipy,Shaswat27/scipy,njwilson23/scipy,anielsen001/scipy,kleskjr/scipy,aeklant/scipy,haudren/scipy,niknow/scipy,rgommers/scipy,jseabold/scipy,person142/scipy,matthewalbani/scipy,befelix/scipy,teoliphant/scipy,anntzer/scipy,vanpact/scipy,vigna/scipy,newemailjdm/scipy,felipebetancur/scipy,petebachant/scipy,andim/scipy,gertingold/scipy,mgaitan/scipy,cpaulik/scipy,jseabold/scipy,behzadnouri/scipy,trankmichael/scipy,woodscn/scipy,Newman101/scipy,e-q/scipy,nmayorov/scipy,chatcannon/scipy,maniteja123/scipy,FRidh/scipy,argriffing/scipy,jonycgn/scipy,ndchorley/scipy,efiring/scipy,dch312/scipy,mdhaber/scipy,andyfaff/scipy,Eric89GXL/scipy,vberaudi/scipy,Kamp9/scipy,Dapid/scipy,kleskjr/scipy,cpaulik/scipy,perimosocordiae/scipy,e-q/scipy,tylerjereddy/scipy,gfyoung/scipy,nonhermitian/scipy,mdhaber/scipy,juliantaylor/scipy,Stefan-Endres/scipy,woodscn/scipy,jonycgn/scipy,jjhelmus/scipy,gertingold/scipy,sauliusl/scipy,jonycgn/scipy,aeklant/scipy,dch312/scipy,pbrod/scipy,jsilter/scipy,andyfaff/scipy,apbard/scipy,maciejkula/scipy,FRidh/scipy,anntzer/scipy,jakevdp/scipy,Gillu13/scipy,nvoron23/scipy,haudren/scipy,Kamp9/scipy,vanpact/scipy,mhogg/scipy,kalvdans/scipy,minhlongdo/scipy,WillieMaddox/scipy,josephcslater/scipy,apbard/scipy,richardotis/scipy,nonhermitian/scipy,sonnyhu/scipy,ndchorley/scipy,mingwpy/scipy,argriffing/scipy,rgommers/scipy,FRidh/scipy,grlee77/scipy,arokem/scipy,aarchiba/scipy,sargas/scipy,gfyoung/scipy,juliantaylor/scipy,arokem/scipy,pyramania/scipy,mgaitan/scipy,trankmichael/scipy,minhlongdo/scipy,anntzer/scipy,jamestwebber/scipy,woodscn/scipy,maniteja123/scipy,lukauskas/scipy,chatcannon/scipy,maciejkula/scipy,vigna/scipy,zxsted/scipy,aman-iitj/scipy,piyush0609/scipy,jakevdp/scipy,andim/scipy,piyush0609/scipy,aeklant/scipy,vhaasteren/scipy,Shaswat27/scipy,zerothi/scipy,zaxliu/scipy,sauliusl/scipy,anielsen001/scipy,pbrod/scipy,fernand/scipy,minhlongdo/scipy,mortonjt/scipy,vberaudi/scipy,dch312/scipy,ilayn/scipy,WillieMaddox/scipy,mortada/scipy,gef756/scipy,WarrenWeckesser/scipy,rmcgibbo/scipy,giorgiop/scipy,gdooper/scipy,zxsted/scipy,mgaitan/scipy,giorgiop/scipy,pschella/scipy,endolith/scipy,perimosocordiae/scipy,rmcgibbo/scipy,nvoron23/scipy,sauliusl/scipy,pschella/scipy,lukauskas/scipy,Srisai85/scipy,scipy/scipy,fernand/scipy,nmayorov/scipy,anielsen001/scipy,raoulbq/scipy,witcxc/scipy,mortonjt/scipy,matthew-brett/scipy,bkendzior/scipy,fernand/scipy,andyfaff/scipy,jjhelmus/scipy,Dapid/scipy,sriki18/scipy,minhlongdo/scipy,futurulus/scipy,Stefan-Endres/scipy,sonnyhu/scipy,pbrod/scipy,njwilson23/scipy,endolith/scipy,Eric89GXL/scipy,endolith/scipy,Stefan-Endres/scipy,ortylp/scipy,niknow/scipy,larsmans/scipy,fredrikw/scipy,surhudm/scipy,ChanderG/scipy,sonnyhu/scipy,mingwpy/scipy,witcxc/scipy,richardotis/scipy,dominicelse/scipy,gertingold/scipy,pizzathief/scipy,surhudm/scipy,ndchorley/scipy,dominicelse/scipy,aarchiba/scipy,ales-erjavec/scipy,argriffing/scipy,nvoron23/scipy,minhlongdo/scipy,ndchorley/scipy,mdhaber/scipy,maniteja123/scipy,bkendzior/scipy,jsilter/scipy,efiring/scipy,lukauskas/scipy,ChanderG/scipy,matthew-brett/scipy,vberaudi/scipy,pizzathief/scipy,lhilt/scipy,WarrenWeckesser/scipy,ogrisel/scipy,haudren/scipy,giorgiop/scipy,sonnyhu/scipy,matthewalbani/scipy,pyramania/scipy,Newman101/scipy,person142/scipy,larsmans/scipy,hainm/scipy,zaxliu/scipy,aarchiba/scipy,gdooper/scipy,ortylp/scipy,Eric89GXL/scipy,minhlongdo/scipy,andyfaff/scipy,surhudm/scipy,zaxliu/scipy,mhogg/scipy,apbard/scipy,anielsen001/scipy,endolith/scipy,Stefan-Endres/scipy,rmcgibbo/scipy,haudren/scipy,jsilter/scipy,zxsted/scipy,surhudm/scipy,juliantaylor/scipy,jonycgn/scipy,gfyoung/scipy,larsmans/scipy,giorgiop/scipy,WillieMaddox/scipy,petebachant/scipy,anntzer/scipy,befelix/scipy,gef756/scipy,mortonjt/scipy,pnedunuri/scipy,sonnyhu/scipy,nonhermitian/scipy,behzadnouri/scipy,Srisai85/scipy,rmcgibbo/scipy,piyush0609/scipy,jonycgn/scipy,fernand/scipy,pizzathief/scipy,FRidh/scipy,person142/scipy,ortylp/scipy,cpaulik/scipy,jseabold/scipy,hainm/scipy,Stefan-Endres/scipy,mikebenfield/scipy,pnedunuri/scipy,arokem/scipy,gef756/scipy,raoulbq/scipy,futurulus/scipy,perimosocordiae/scipy,ogrisel/scipy,gef756/scipy,behzadnouri/scipy,scipy/scipy,gertingold/scipy,mortada/scipy,njwilson23/scipy,Srisai85/scipy,pizzathief/scipy,mikebenfield/scipy,jor-/scipy,e-q/scipy,felipebetancur/scipy,tylerjereddy/scipy,jor-/scipy,niknow/scipy,zxsted/scipy,bkendzior/scipy,mingwpy/scipy,piyush0609/scipy,fredrikw/scipy,jor-/scipy,trankmichael/scipy,zerothi/scipy,Kamp9/scipy,kleskjr/scipy,vigna/scipy,person142/scipy,pbrod/scipy,jakevdp/scipy,haudren/scipy,Dapid/scipy,aman-iitj/scipy,niknow/scipy,fredrikw/scipy,jakevdp/scipy,Kamp9/scipy,Eric89GXL/scipy,newemailjdm/scipy,mingwpy/scipy,petebachant/scipy,dch312/scipy,kleskjr/scipy,kalvdans/scipy,Srisai85/scipy,josephcslater/scipy,arokem/scipy,efiring/scipy,ChanderG/scipy,gdooper/scipy,andyfaff/scipy,gef756/scipy,futurulus/scipy,gdooper/scipy,andyfaff/scipy,petebachant/scipy,behzadnouri/scipy,kleskjr/scipy,ales-erjavec/scipy,aman-iitj/scipy,juliantaylor/scipy,kleskjr/scipy,ilayn/scipy,mortada/scipy,mtrbean/scipy,jseabold/scipy,matthew-brett/scipy,trankmichael/scipy,ogrisel/scipy,newemailjdm/scipy,mtrbean/scipy,vberaudi/scipy,larsmans/scipy,vhaasteren/scipy,argriffing/scipy,vigna/scipy,Dapid/scipy,nvoron23/scipy,witcxc/scipy,zerothi/scipy,richardotis/scipy,matthewalbani/scipy,lhilt/scipy,WarrenWeckesser/scipy,pnedunuri/scipy,nonhermitian/scipy,trankmichael/scipy,Shaswat27/scipy,bkendzior/scipy,andim/scipy,aeklant/scipy,larsmans/scipy,vanpact/scipy,pizzathief/scipy,cpaulik/scipy,josephcslater/scipy,woodscn/scipy,anntzer/scipy,sargas/scipy,andim/scipy,sriki18/scipy,piyush0609/scipy,nonhermitian/scipy,ales-erjavec/scipy,pnedunuri/scipy,gertingold/scipy,tylerjereddy/scipy,fredrikw/scipy,sargas/scipy,Gillu13/scipy,ogrisel/scipy,endolith/scipy,mtrbean/scipy,scipy/scipy,sauliusl/scipy,aman-iitj/scipy,Newman101/scipy,witcxc/scipy,chatcannon/scipy,WarrenWeckesser/scipy,pyramania/scipy,rgommers/scipy,trankmichael/scipy,zxsted/scipy,Shaswat27/scipy,teoliphant/scipy,zerothi/scipy,sriki18/scipy,chatcannon/scipy,maciejkula/scipy,vberaudi/scipy,Eric89GXL/scipy,grlee77/scipy,aman-iitj/scipy,mdhaber/scipy,jor-/scipy,newemailjdm/scipy,grlee77/scipy,mgaitan/scipy,lhilt/scipy,mortonjt/scipy,raoulbq/scipy,nvoron23/scipy,jjhelmus/scipy,dominicelse/scipy,sriki18/scipy,apbard/scipy,ChanderG/scipy,Shaswat27/scipy,arokem/scipy,zaxliu/scipy,fredrikw/scipy,rmcgibbo/scipy,pbrod/scipy,ilayn/scipy,giorgiop/scipy,jjhelmus/scipy,vanpact/scipy,mtrbean/scipy,mortonjt/scipy,WillieMaddox/scipy,vhaasteren/scipy,vhaasteren/scipy,larsmans/scipy,hainm/scipy,matthewalbani/scipy,apbard/scipy,mikebenfield/scipy,mortada/scipy,rgommers/scipy,dch312/scipy,aman-iitj/scipy,woodscn/scipy,lukauskas/scipy,FRidh/scipy,aarchiba/scipy,teoliphant/scipy,pnedunuri/scipy,mortonjt/scipy,maciejkula/scipy,dominicelse/scipy,richardotis/scipy,maniteja123/scipy,hainm/scipy,piyush0609/scipy,sauliusl/scipy,pbrod/scipy,lukauskas/scipy,ortylp/scipy,Kamp9/scipy,efiring/scipy,Stefan-Endres/scipy,mdhaber/scipy,pyramania/scipy,kalvdans/scipy,argriffing/scipy,felipebetancur/scipy,Eric89GXL/scipy,futurulus/scipy,e-q/scipy,grlee77/scipy,pyramania/scipy,jakevdp/scipy,matthew-brett/scipy,behzadnouri/scipy,gfyoung/scipy,kalvdans/scipy,rmcgibbo/scipy,pschella/scipy,chatcannon/scipy,jamestwebber/scipy,vberaudi/scipy,mdhaber/scipy,felipebetancur/scipy,perimosocordiae/scipy,jamestwebber/scipy,e-q/scipy,ilayn/scipy,sriki18/scipy,sargas/scipy,hainm/scipy,anielsen001/scipy,mtrbean/scipy,FRidh/scipy,josephcslater/scipy,surhudm/scipy,pschella/scipy,jonycgn/scipy,niknow/scipy,argriffing/scipy,fredrikw/scipy,anielsen001/scipy,andim/scipy,petebachant/scipy,mtrbean/scipy,juliantaylor/scipy,bkendzior/scipy,Gillu13/scipy,mikebenfield/scipy,lhilt/scipy,lukauskas/scipy,ales-erjavec/scipy,person142/scipy,felipebetancur/scipy,scipy/scipy,endolith/scipy,futurulus/scipy,teoliphant/scipy,lhilt/scipy,Gillu13/scipy,fernand/scipy,vanpact/scipy,Newman101/scipy,kalvdans/scipy,niknow/scipy,perimosocordiae/scipy,zxsted/scipy,richardotis/scipy,jjhelmus/scipy,felipebetancur/scipy,nmayorov/scipy,aeklant/scipy,befelix/scipy,newemailjdm/scipy,gef756/scipy,jsilter/scipy,aarchiba/scipy,mortada/scipy,woodscn/scipy,grlee77/scipy,ortylp/scipy,matthewalbani/scipy,mhogg/scipy,jamestwebber/scipy,sonnyhu/scipy,nmayorov/scipy,jor-/scipy,zerothi/scipy,maniteja123/scipy,witcxc/scipy,hainm/scipy,WarrenWeckesser/scipy,mgaitan/scipy,mgaitan/scipy,efiring/scipy,tylerjereddy/scipy,vanpact/scipy,tylerjereddy/scipy,raoulbq/scipy,mhogg/scipy,mhogg/scipy,Newman101/scipy,ChanderG/scipy,Shaswat27/scipy,mortada/scipy,njwilson23/scipy,Kamp9/scipy,WillieMaddox/scipy,Srisai85/scipy,mikebenfield/scipy,petebachant/scipy,jamestwebber/scipy,Dapid/scipy,fernand/scipy,chatcannon/scipy,dominicelse/scipy,anntzer/scipy,raoulbq/scipy,cpaulik/scipy,matthew-brett/scipy,Dapid/scipy,rgommers/scipy,maciejkula/scipy,newemailjdm/scipy,ales-erjavec/scipy,Gillu13/scipy,jseabold/scipy,Srisai85/scipy,vigna/scipy,ales-erjavec/scipy,cpaulik/scipy,zaxliu/scipy,sriki18/scipy,maniteja123/scipy,jsilter/scipy,pschella/scipy,teoliphant/scipy,efiring/scipy,befelix/scipy,ChanderG/scipy,raoulbq/scipy,mingwpy/scipy,WillieMaddox/scipy,surhudm/scipy,nmayorov/scipy,andim/scipy,mingwpy/scipy,nvoron23/scipy,gfyoung/scipy,perimosocordiae/scipy,ilayn/scipy,WarrenWeckesser/scipy,Gillu13/scipy,sauliusl/scipy,vhaasteren/scipy,pnedunuri/scipy,mhogg/scipy,jseabold/scipy,josephcslater/scipy,zerothi/scipy,haudren/scipy,ilayn/scipy,richardotis/scipy,njwilson23/scipy,behzadnouri/scipy,scipy/scipy,ndchorley/scipy,Newman101/scipy,ortylp/scipy,njwilson23/scipy,scipy/scipy,giorgiop/scipy,vhaasteren/scipy,sargas/scipy,zaxliu/scipy,ogrisel/scipy,gdooper/scipy,futurulus/scipy,befelix/scipy